how do you link static pages in rails to your css files? [closed]


Tags: css,ruby-on-rails

Problem :

i have my css files where they need to be, now how to i link them to the html, i know i cant use traditional ways like just using a link tag, any help would be great



Solution :

put your css files in assets/stylesheets then add

<%= stylesheet_link_tag "application", :media => "all" %>

into your html tag (should be in layouts/application.html.erb)


    CSS Howto..

    How would use span to create different styles between selected characters and the rest?

    How to display a tree in HTML/CSS? nested left-floating divs and wrapping

    How to display fieldset text and button inline on small screens?

    How to make a CSS element extend beyond all borders of containing div?

    How to hide a segment of my website using PHP

    Quick beginner CSS, how to “scope” styles?

    zindex + jquery: How to make my menu appear over the jquery script?

    the tab's content shows abnormal under IE7

    css menu active sub links to show on parent link

    How to prevent the backdrop of bootstrap modal dialog from covering the whole screen?

    how to many class share 1 css method in CSS

    How can I bold specific HTML rows and columns with CSS or HTML?

    How to get started with Compass/Sass on Mac – Invalid CSS error?

    How to get a css stylesheet value that is not interpreted by the browswer?

    SASS: normalize.css works, but does not show up in compiled CSS file?

    How to change the background color of a div in HTML/CSS

    HTML/CSS: How can I float the 'a href' elements to the left without them leaving the div element that they are inside in?

    how to show JS alert on open of each tab of the slider?

    PhoneGap: How to get iPad specific CSS to work?

    How to Change Css coding with a link [closed]

    How do you indent subsequent lines of text using

    How to use div classes to get my blocks to line up?

    Polymer 1.0 how can I style a paper-input:disabled?

    how to keep conditional CSS statements for internet explorer in Express (Node.js) template

    How to lazyload svg image given in css?

    How can I stop divs getting pushed down?

    How to hide this element using CSS or JQuery

    CSS Selectors - How to apply a defined class on the selector's event

    CSS - Superfish, how to float 4th level of dropdown

    How to set class on div that is inside of repeater in code behind?