RootsWeb.com Mailing Lists
Total: 1/1
    1. [FreeHelp] CSS - Linking to stylesheets
    2. Barry Carlson
    3. The accepted practice of having an off page stylesheet, requires a link to retrieve it, and the normal practice is - <link rel="stylesheet" type="text/css" href="my-styles.css" /> - but remembering the link format and then checking on what you need to do should you want to add a supplementary stylesheet for a specific page, can be tiresome. So, I've adopted the alternative method - <style>@import url(my-styles.css); @import url(extra-styles.css);</style> - and if the extra styles required are better just added to the page, then - <style> @import url(my-styles.css); body {font-family:tahoma,arial,font-size:0.9em} #container {margin:30px;} #content2 li {padding:5px 0 5px 0;} </style> - is the way to go. Just remember to treat the @import as a style and end its declaration with a semi-colon. Barry

    12/17/2010 12:14:26