html - Apply CSS to one page only and not all -


this question has answer here:

in rails have css file in app/asset/stylesheet/x.css. want apply in show.html.erb page in 1 controller.

that works correctly, css applied app's pages.

how apply css on show page? (i want separate css file html).

give outermost element of page id, e.g. <div id="show-page"> , in css use #show-page in selector each style want apply page, e.g.:

#show-page h1 {   color: blue; }  #show-page p {   font-size: larger; }  /* ...and on... */ 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -