By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,407 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.