Defaulting my stylesheet

This is a discussion on "Defaulting my stylesheet" within the Web Page Design section. This forum, and the thread "Defaulting my stylesheet are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 9th, 2006, 02:13
New Member
Join Date: Sep 2006
Location: California
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Defaulting my stylesheet

Is there a way to default my css code, so that it uses the default html coding and not the code i used to override it? For example, I overrode the ul li tags in my css so that the bullets are pictures, but now I want to use the default bullets. Hope that wasn't too confusing Thank you.
Reply With Quote

  #2 (permalink)  
Old Sep 9th, 2006, 12:27
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
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...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #3 (permalink)  
Old Sep 10th, 2006, 20:45
Reputable Member
Join Date: Jul 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Defaulting my stylesheet

I just ran in to this myself. I changed my UL and LI default styling to be completely different and then needed the default. I don't know what I was thinking changing the default like that, but it was a simple fix.

I've told myself from now on, that anytime I need something other then default, I will create a class for it.

Go back and change your pages so that all the current UL's get assigned a class of "ulphoto" or something, update your css to the "ulphoto" class tag and then you'll have your default UL back to use where needed.

Otherwise, you have to create a new class just for the default and there is no sense in doing that.
Reply With Quote
Reply

Tags
defaulting, stylesheet

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
cfinclude and defaulting... lockmac Other Programming Languages 3 Feb 22nd, 2008 03:22
Vanishing stylesheet galan98 Web Page Design 6 Jul 9th, 2007 15:48
external stylesheet doesn't display right Irvy Web Page Design 10 Dec 18th, 2006 19:41
Possible to detect which stylesheet in use? mar2195 JavaScript Forum 9 Nov 25th, 2006 11:43
need help with Roll over stylesheet. comaiwat Web Page Design 8 Sep 21st, 2004 02:34


All times are GMT. The time now is 16:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43