Linked stylesheet problem

D

D

Hi

Seem to have a wierd problem I'm hoping some one will be able to
awnser. I have the following css:
<style type="text/css">
table.info {
color:#00FF00;
font-family: arial;
font-size: 14px;
border-width: 4px;
border-spacing: ;
border-style: Solid;
border-color:#004400;
border-collapse: collapse;
}
table.info td {
border-width: 0px;
padding: 2px;
}
</style>

It all works fine, how ever if I use <link rel="stylesheet"
type="text/css" href="style.css" /> then the text colour, font and size
works but none of the table border effects take effect. Any one know
why this would be? I'm useing IE6 SP2 to view the page.

Thanks
 
S

Stefan B Rusynko

If you css is in the file style.css remove the style html tags
Delete <style type="text/css"> and </style> from the .css file

Then apply it to your table using
<table class="info">
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi
|
| Seem to have a wierd problem I'm hoping some one will be able to
| awnser. I have the following css:
| <style type="text/css">
| table.info {
| color:#00FF00;
| font-family: arial;
| font-size: 14px;
| border-width: 4px;
| border-spacing: ;
| border-style: Solid;
| border-color:#004400;
| border-collapse: collapse;
| }
| table.info td {
| border-width: 0px;
| padding: 2px;
| }
| </style>
|
| It all works fine, how ever if I use <link rel="stylesheet"
| type="text/css" href="style.css" /> then the text colour, font and size
| works but none of the table border effects take effect. Any one know
| why this would be? I'm useing IE6 SP2 to view the page.
|
| Thanks
|
 
G

GrimD

When placing the the css in to the style.css file I do remove the HTML
tags and my table tag is correct as it works if I am using the css
embedded. It seems very strange to me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top