html - Apply CSS to one page only and not all -
this question has answer here:
- page-specific css rails app [duplicate] 2 answers
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
Post a Comment