External CSS

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
i currently just created an external .css file.. i have it linked to my .html file.. everything in my .css is working correctly except the {background-color: black} this is my full .css contents...

body {background-color: black}

table.left {color: white}

table.right {color: white}

table.center {color: white}

h1,h2,h3,h4,h5,h6 {color: white}

p {color: white}
-------------
well the only thing that does not work is the body {background-color: black} so my background displays as default white... but this worked fine before when the CSS was internal.. i was wondering whats causing this and how i can fix it if anyone knows... thanx ahead of time
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
how does your html code look? especially the body tag is of interest
 

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
<html>
<head>

<title>E.P.I.C. Team Website</title>

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


</head>

<body>

<table>
<tr>
<br />
<td valign="top" >
<table class="left" border="1" width="100%" >
<tr>
<td>
<b>Home</b><br /><br />
EPIC Paranormal Team<br />
EPIC D&D Team<br />
K&J Radio Roadshow<br />
About Epic Team<br />
Contact EPIC<br />
EPIC's Mailing List<br />
<br />
<br />
Want to join EPIC?<br />
Apply <u>Here</u>
<br /><br /><hr />
<b>EPIC Paranormal Team</b><br /><br />
Current Investigations<br />
Past Investigations<br />
Pictures<br />
Audio<br />
Video<br />
Future Investigations<br /><br /><hr />
<b>EPIC D&D Team</b><br /><br />
The DM<br />
The Players<br />
The Setting<br />
Artwork by Amie<br />
Pictures<br />
Video<br /><br />
Deathknell Campaign<br />
D&D Tools for DM's<br /><br /><hr />
<b>K&J Radio Roadshow</b><br /><br />
About The Show<br />
Kenny (Host)<br />
Josh (Host)<br />
Amie (Guest)<br />
Pictures<br />
Show Times<br />
</td>
</tr>
</table>
</td>
<td valign="top" >
<table class="center" border="0" width="100%">
<tr>
<td>
<h1 align="center">Welcome to the E.P.I.C. Team Homepage (Content Coming Soon)</h1>
<br />
<br />
<h2 align="center">Currently Under Construction</h2>
</td>
</tr>
</table>
</td>
<td valign="top" >
<table class="right" border="1" width="100%" >
<tr>
<td>
<b>Insert right Table<br />
Info Here</b><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>


</body>

</html>


of course also the files have not been placed on cpanel yet i am currently doing to work offline i was originally using internal CSS which then was transfered over to .css external file and everything went perfect except for that one background-color code
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
only thing i can think of is that a delcaration is overwriting the CSS file...

try this:

Code:
body {background: black}

or just change your body tag to:

Code:
<body bgcolor=black>

that will do the same thing that css does.
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
the weird thing is it should work... maybe you have the "wrong" cached in our browser?
could you provide a link so I can test?
 

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
sure although... you mean link to our page? if so i havent posted the newly updated external version... i still have the internal version posted on the page.. but heres the link http://www.epicteam.x10hosting.com/ also... to leafypiggy i understand what you mean.. before i was doing it internal but id perfer to do it external and i guess this is what i get lol but thanx for the help
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
I was kind of hoping for a link to the updated version yes :)
 

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
oh ok i havent even tinkered with using cpanel to insert a .css file and attaching it to the index.html i just insert inside the public_html folder with my index correct?
Edit:
should be up there now
Edit:
The files are now (html) name index.html and (css) is epichome.css both are in the Public_html directory should be displaying now if you go to the link http://www.epicteam.x10hosting.com/
Edit:
i think i did something wrong? lol
 
Last edited:

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
found the error... there's a spelling misstake...

in body tag it says: backgroud-color: should ofcourse be: background-color:
 

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
wierd i remember editing that earlier and inserting the n give me a sec let me try and well see what happens
Edit:
Yep that was the issue... thanx a ton although i could have swore i edited that earlier... sorry for all the trouble.. all that for one letter... picky codes are lol... thanx a bunch for correcting my simplemided mistake lol.. :D
 
Last edited:

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
yes, they are picky indeed

np, glad I could help
 
Top