This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > September 2004 > <TD>, CSS and Firefox
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
<TD>, CSS and Firefox
|
|
| matt cook 2004-09-19, 7:16 am |
| I have having two problems with the <TD>, CSS, Firefox combination. I
would greatly appreciate any information on fixing them.
Firstly, none of the padding or margin values I apply to a <TD> have
any visual effect. Everything is fine in IE.
Secondly, I am trying to set the background-image of a particular <TD>
to an image, and that's not working either. Applying it to the parent
<TR> works, as does applying it to other <TD>s in the document. The
image will display if inserted with an img tag. There are no classes
applied to any of the cell's parents.
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220"><img src="images/header_small.gif" width="219"
height="60"></td>
<td background="images/cloudsandangles.gif"
class="cloudsandangles"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#1573FF"
background="../Site/images/bargrad.gif"></td>
</tr>
</table>
Again, everything is fine in IE (even without the <td background> )
| |
| kchayka 2004-09-21, 4:24 am |
| matt cook wrote:
> kchayka <usenet@c-net.us> wrote in message news:<2qtciaF1485roU1@uni-berlin.de>...
>
> And indeed, that is the case. Thank you!
FYI, in the future, you can find errors like this yourself if you
validate your code.
<URL:http://validator.w3.org/>
<URL:http://jigsaw.w3.org/css-validator/>
<URL:http://www.htmlhelp.com/tools/>
--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
| |
| matt cook 2004-09-24, 11:20 pm |
| kchayka <usenet@c-net.us> wrote in message news:<2qtciaF1485roU1@uni-berlin.de>...
> matt cook wrote:
>
> Maybe Firefox is following the specs where IE does not (big surprise),
> is ignoring the invalid class name, thus not applying those styles.
>
> <URL:http://www.w3.org/TR/CSS2/syndata.html#q4>
> "In CSS2, identifiers (including element names, classes, and IDs in
> selectors) [...] cannot start with a hyphen or a digit."
And indeed, that is the case. Thank you!
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|