Zroid
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Zroid
-
-
Sorry, forgot to say that its an external css sheet file....Zroiddon 't you forget tag <style type="text/css"> .... </style> ??? -
Hi,I have a rather frustrating problem with a background that simply will not display under css but does from html using the same picture. So far I have :- checked the path- checked that the pic file is not corrupt- tried a jpeg instead of a png file- tried removing various other bits of code in the body{} including the fixed background and repeat.The problem being that if the css sheet goes down the site is unreadable due to the background being so dark. I'm sure it is something quite simple :)This is the site: WebpageAt the moment I am using:
to get around the problem and which works fine.The code in the css is currently commented out but normally it would be (I'll give the full css file incase something else is causing the problem):<body background="images/background3.png">
Any help would be much appreciated :)Zroidbody { font-family: Arial, Verdana, Tahoma, Helvetica; font-size: 12pt; color: white; background-image: url('images/background3.png'); background-attachment: fixed; background-repeat: repeat-x; width: 100%; margin-left: auto; margin-right: auto; margin-top: 1px; margin-bottom: 1px; } img { border: thin solid #000000; }h2 { font-family: Tahoma, Arial, Verdana, Helvetica; color: #EE0000; } h3 { font-family: Arial, Verdana, Tahoma, Helvetica; font-style: italic; color: #1A3076; } h4 { font-family: Arial, Verdana, Tahoma, Helvetica; color: white; }h5 { font-family: Arial, Verdana, Tahoma, Helvetica; color: black; } td { padding: 5px; border-style: solid; border-width: 1px; border-color: black; } ul { list-style-type: square; } table { }a:link {color: yellow}a:visited {color: yellow}a:hover {color: red}a:active {color: yellow} .indexdiv { margin-left: auto; margin-right: auto; margin-top: 5px; text-align: left; color: blue; width: 732px; background-color: #000000; border: thin solid #D6D6D6; } .Homecontentsdiv { background-color: #0F2B73; font-size: 12pt; text-align: left; margin-top: 6px; margin-bottom: 6px; margin-left: auto; margin-right: auto; color: white; width: 704px; padding: 15px; border: thin solid #D6D6D6; }.contentsdiv { text-align: left; margin-top: 6px; margin-bottom: 10px; margin-left: auto; margin-right: auto; color: black; width: 704px; border: thin solid black; background-color: #E7E7E7; padding: 15px; }.contactdiv { text-align: center; width: 730px; color: yellow; font-size: small; font-weight: bold; background-color: #000000; border: thin solid #D6D6D6; margin-bottom: 10px; margin-left: auto; margin-right: auto; }
Background pic not displaying via css
in CSS
Posted