How can I prevent scaffold.css from overriding my own css?

I can not understand. This is probably trivial, but I'm extremely new to rails.

Thanks in advance if you can help!

Answer:

I went to the generated file, which adds the title to my pages and changes the attached css file to my own.

+7
source share
4 answers

The question of not using scaffold.css may be what you are looking for?

Rails scaffold without css file?

0
source

In Rails 3.1, it will work differently, since only the application style is enabled by default.

Since there is a list of all the following, as mentioned here: Rails 3.1 To load css in a specific order , you just need to reorder this list or add the file to a specific position.

0
source

This is not the most beautiful css, but in css you can add “! Important” after the statement to cancel all the “normal” css statements. This way you will use something line by line:

border:0px !important; 

in your css.

-one
source

You have a CSS file with the correct style that you want to apply for the latter.

Or as others suggested you could add! important for the css in question if you cannot change the loading order of the css files.

 body { color:#FFFFFF!important; } 
-one
source

All Articles