homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Is color:#000000 required, or can I just remove it?

Msg#: 4402487 posted 10:07 pm on Dec 30, 2011 (gmt 0)

Hello all,

Can I omit the definition of the text color, since my text color is black?

I run a hobby forum based on the vBulletin forum software. It has been modified quite a bit, and I always look for ways to remove unnecessary code, even if it's just a few bytes.

I'm now looking at the following:

body {
font:13px verdana, geneva, arial, helvetica, sans-serif;

Is it OK for me to remove the color:#000 part, or does it have to stay for some reason?



WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

Msg#: 4402487 posted 12:20 am on Dec 31, 2011 (gmt 0)

If users have changed the default settings in their browsers, then black might not be the default. If you define the background color, then you should probably define the text color as well, just to be sure that you're not setting a background color that conflicts with the end user's default text color.


Msg#: 4402487 posted 2:34 pm on Dec 31, 2011 (gmt 0)

Thanks Fotiman. I'm going to leave it as is.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved