Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - CSS Problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CSS Problems

 Post Reply Post Reply Page  12>
Author
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Topic: CSS Problems
    Posted: 14 May 2007 at 5:11am
Hey guys! Long time, no chat... I've been busy lately.

Anyway, I just started integrating CSS into my webpages and keep coming across an annoying problem. I have my stylesheet save into a file called "css.css" and I include it into my webpage using the standard:

"<link href="/css.css" rel="stylesheet" type="text/css" />"

The problem comes along with my "body" tag in the stylesheet. For some reason, the body tag doesn't apply at all when it's included with the stylesheet. But if I manually code it into the webpage, it works like a charm.

This is probably a pretty stupid noob mistake, but I can't figure it out.

Thanks in advance.
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2007 at 6:48am
well if it isn't the "Great Creator of the Neverending Thread" :)
 
can you post the body style code that you have in the CSS document?
 
it should look something like this
 

BODY {
 font-size: 10px;
 font-family: Arial, Verdana;
 color: #000000;
 background: #FFFFFF;
}
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2007 at 2:27am
body {
background-color:#000000;margin:0
;}


This tag works if I hard code it directly into the page, but not in the CSS file with all the other attributes.
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2007 at 3:04am
that's quite odd, as it appears to be coded correctly. do you have a link to where i can take a look?
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2007 at 4:22am
yea sure...

http://www.pmorganphoto.com/default2.asp is the page in question and http://www.pmorganphoto.com/css.css is the css file.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2007 at 2:22pm
Hm. I had a look myself and it works fine for me. It does read your body entry.
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2007 at 7:54pm
lol... Yes it does read perfectly fine now that I look at it in internet explorer. Damn you firefox! Any ideas as to why firefox isn't reading it correctly then?
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2007 at 10:11pm
Yeah delete the
 
<style type="text/css">
<!--
 
and it's closing tags. You don't need them in a CSS file.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.