View previous topic :: View next topic |
Author |
Message |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 4:02 am Post subject: CSS Help |
|
|
Anyone know what is wrong with this? Without this on my website (new template - not yet online) the background doesn't show up as gray... but with it, the text that I enter also shows up at the top of the page... Here is the CSS code... VERY simple...
Code: |
<style type="text/css">
body {
background: #CCCCCC;
color: #CCCCCC;
}
</style>
|
|
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Aug 26, 2005 4:16 am Post subject: |
|
|
I don't think you have it setup correctly , here's what I use.
Code: |
<style type="text/css">
body { background-color: #CCCCCC; }
</style>
|
|
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 4:16 am Post subject: |
|
|
TRUSTpunk wrote: | I don't think you have it setup correctly , here's what I use.
Code: |
<style type="text/css">
body { background-color: #CCCCCC; }
</style>
|
|
OK, thanks... I'll try it :D |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 4:23 am Post subject: |
|
|
Still not working. Here is the code for that section of the page:
Code: | <?php
ob_start("ob_gzhandler");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>P3NET</title>
<meta name="generator" content="Hand-Coded by P3>
<style type="text/css">
body { background-color: #CCCCCC; }
</style>
</head>
<body>
<body bgcolor="#CCCCCC">
<table border="0" width="100%" align="center">
<tr>
<td align="center"><img src="images/logo.gif" alt="" />
</table>
<hr bgcolor="#CCCCCC">
<table border="0" width="100%" cellpadding="4" cellspacing="0" height="300">
<tr>
<td width="150" valign="top" bgcolor="#999999">
<?php include('nav.php'); ?>
<td valign="top" bgcolor="#CCCCCC">
|
In the process of uploading a printscreen |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 4:24 am Post subject: |
|
|
Here is the Printscreen:
(Yes, It is hosted on imageshack because my server is down for maintance...)
 |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 2:29 pm Post subject: |
|
|
Anyone?? Come on people... HELP!! :D |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Fri Aug 26, 2005 2:34 pm Post subject: |
|
|
Code: | <style type="text/css">
body {
font-family: Tahoma; font-size: 10px; color: #999999; margin:0px;padding:0px;
scrollbar-face-color: #222222;
scrollbar-highlight-color: #555555;
scrollbar-shadow-color: #333333;
scrollbar-3dlight-color: #77777;
scrollbar-arrow-color: #cfcfcf;
scrollbar-track-color: #111111;
scrollbar-darkshadow-color: #333333;
}
body {font-family: Tahoma; font-size: 10px; color: #999999; text-align: justify}
a:link, a:active, a:visited {color: #999999; text-decoration: underline}
a:hover {color: #FF0000; text-decoration: bold}
</style> |
I use this, maybe it will help. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Fri Aug 26, 2005 2:37 pm Post subject: |
|
|
Code: | <style type="text/css>
body { background-color: #CCCCCC; }
</style> |
Fault finding, great fun!!!
You missed off a " after text/css, even though your code above says its there i visited the not so concealed url to your server and looked at the code. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 2:38 pm Post subject: |
|
|
The Inquisitor wrote: | Code: | <style type="text/css>
body { background-color: #CCCCCC; }
</style> |
|
Fault finding, great fun!!!
Isn't it?
Quote: |
You missed off a " after text/css. |
I can't believe I missed that... |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Fri Aug 26, 2005 2:40 pm Post subject: |
|
|
IMO thats the first rule of fault finding of CSS/HTML, check you have all the " and the correct </tag> for each one. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 2:43 pm Post subject: |
|
|
I guess I just didn't copy that tag right... The second " is here... I'll try your CSS method. |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 2:49 pm Post subject: |
|
|
Still not working...... |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Fri Aug 26, 2005 2:51 pm Post subject: |
|
|
Well we cant help unless you post the source... _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Fri Aug 26, 2005 3:53 pm Post subject: |
|
|
p3 wrote: | Still not working...... |
Your page source still shows the second " is missing. |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Fri Aug 26, 2005 11:27 pm Post subject: |
|
|
It works now. Thanks!!! |
|
Back to top |
|
 |
|