CSS Help

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 4:02 am    Post subject: CSS Help Reply with quote

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 View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Aug 26, 2005 4:16 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 4:16 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 4:23 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 4:24 am    Post subject: Reply with quote

Here is the Printscreen:

(Yes, It is hosted on imageshack because my server is down for maintance...)
Back to top View user's profile Send private message Send e-mail
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 2:29 pm    Post subject: Reply with quote

Anyone?? Come on people... HELP!! :D
Back to top View user's profile Send private message Send e-mail
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Aug 26, 2005 2:34 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Aug 26, 2005 2:37 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 2:38 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Aug 26, 2005 2:40 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 2:43 pm    Post subject: Reply with quote

I guess I just didn't copy that tag right... The second " is here... I'll try your CSS method.
Back to top View user's profile Send private message Send e-mail
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 2:49 pm    Post subject: Reply with quote

Still not working......
Back to top View user's profile Send private message Send e-mail
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Aug 26, 2005 2:51 pm    Post subject: Reply with quote

Well we cant help unless you post the source...
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Aug 26, 2005 3:53 pm    Post subject: Reply with quote

p3 wrote:
Still not working......

Your page source still shows the second " is missing.
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Aug 26, 2005 4:50 pm    Post subject: Reply with quote

http://validator.w3.org/check?verbose=1&uri=http%3A//p3net.no-ip.org/template/

might give you a few hints...
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Fri Aug 26, 2005 11:27 pm    Post subject: Reply with quote

It works now. Thanks!!!
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group