View Single Post
  #2 (permalink)  
Old Sep 9th, 2006, 12:27
spinal007's Avatar
spinal007 spinal007 is offline
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,650
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: Defaulting my stylesheet

css rules are very simple to over-write.
first is source comes first, last in source comes last...
meaning the last definition is what you end up with.

Example:

default.css (on every page)
ul{ list-style:none; margin:10px 5px; }

tweaks.css (changes css slightly for specific page)
ul{ list-style: upper-alpha; }

what the browser ends up with is...
"ul{ list-style: upper-alpha; margin:10px 5px; }"
... without actually having to code it all together
Hope that helps...
Reply With Quote