469,890 Members | 1,419 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

CSS file does not apply to border types (font/links work though)

I have a td element in my html file:
<td class="tableborder" width="735" bgcolor="#FFFFFF" valign="top">
If I put inside the HTML file it works fine but I want a central CSS
file.
<Style.tableborder{border-style: groove;border: 2;border-color:
#FF0000;}</style>


my CSS file which is linked in the html file:
<link href="churchCSS.css" rel="stylesheet" type="text/css">

in churchCSS.css I have:
..tableborder{border-style: groove;border: 2;border-color: #FF0000;}

Unfortunately the style is not picked up, while link styles and other
font styles DO work! I don't understand, please help i've looked
around a good bit.

Jan 19 '07 #1
1 1906
Vi*********@gmail.com wrote:
I have a td element in my html file:
<td class="tableborder" width="735" bgcolor="#FFFFFF" valign="top">

If I put inside the HTML file it works fine but I want a central CSS
file.
<Style>
Needs to be: <style type="text/css">
>.tableborder{border-style: groove;border: 2;border-color:
#FF0000;}</style>

my CSS file which is linked in the html file:
<link href="churchCSS.css" rel="stylesheet" type="text/css">

in churchCSS.css I have:
.tableborder{border-style: groove;border: 2; ...
2 what? Hobnobs? Slices of pizza? Meters?

You need a unit, such as 2px.
Unfortunately the style is not picked up, while link styles and other
font styles DO work! I don't understand, please help i've looked
around a good bit.
When errors are encountered, browsers are free to either try to
interpret, or ignore.

Suggest you check your work here:
http://jigsaw.w3.org/css-validator/validator.html

...and here for your HTML:
http://validator.w3.org/

--
-bts
-Motorcycles defy gravity; cars just suck
Jan 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Eugene Borukhovich | last post: by
reply views Thread by AwanJohnie | last post: by
15 posts views Thread by greenflame | last post: by
10 posts views Thread by Brian Henry | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.