MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.

Closed Thread
Thread Tools Display Modes
Old 01-29-04, 12:10
unclematty's Avatar
unclematty unclematty is offline
Senior Member
Join Date: Dec 2002
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS Question..Why is it...

Why is it that this tag in my stylesheet does not control the background color of my body tag. (btw, my body tag looks like this <body>, its empty)

body ( margin: 0px 0px 0px 0px;
background-color: #ff0000

meanwhile, if i take that background-color property out and stick it in the body tag it will work, like this...

<body style="background-color: #ff0000;">

Any one know?

Sponsored links
Old 01-29-04, 12:45
Kodo's Avatar
Kodo Kodo is offline
Join Date: Jan 2002
Location: Syracuse NY, USA
Posts: 11,502
Thanks: 15
Thanked 69 Times in 47 Posts

it should be this

body {
margin: 0px;
background-color: #ff0000;

you used ( ) to surround your CSS values. need curly braces { }

you also don't need to do 0px 0px 0px 0px to tell it to zero out all four sides.
Just do margin: 0px; and it will take care of that.
"The American people will never knowingly adopt Socialism..." -Norman Thomas
Closed Thread

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
P2P Question mdowns Software 3 12-24-03 12:03

All times are GMT -5. The time now is 13:01.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds

All content Copyright source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger