![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Well #1 the XHTML is giving you problems, you have some HTML in your XHTML. I would suggest you use |
|
Now to your problem. You don't need border-collapse: collapse; applied to all the table cell, just to the table. So level the rule for .itemtable but remove in .namedata, .itemheader, .data |
#3
| |||||
| |||||
|
|
Why? Why do you need XHTML? Just causes problem for IE. |
|
It's not the padding it's the border-collapse: collapse applied to the TDs |
| http://wowstreet.ajs.com/test1.html In my firefox (2.0) the gray background of the text overlaps the table border by about 4 of 5 pixels, but you might have to make your browser window narrower to get this effect if you're using a very wide window. It looks like it may be triggered by the wrapping of the text in the first column. That's in quirks mode, padding are margins are calculated differently. Not a true comparison. |
|
You CSS has a number of conflicting settings. If tables are collapsed there there is no border-spacing for example. |
|
Here is a much simplified version and works as you expected. Note the shortcut properties and the order of the values, especially on "font" |
#4
| |||
| |||
|
| http://wowstreet.ajs.com/test1.html Should the table that I referenced, above render with the gray overlapping the table border or no? It seems like a bug for that to ever happen, but I'm ready and willing to hear otherwise. |
#5
| |||
| |||
|
|
On Dec 10, 4:27 pm, Aaron Sherman <AaronJSher... (AT) gmail (DOT) com> wrote: http://wowstreet.ajs.com/test1.html Should the table that I referenced, above render with the gray overlapping the table border or no? It seems like a bug for that to ever happen, but I'm ready and willing to hear otherwise. And just for grins I tried the same in html4/strict: http://wowstreet.ajs.com/test2.html The developer toolbar plugin for Firefox tells me that this is well- formed, standards compliance mode HTML. Same overlap of cell walls. I'm having a very hard time figuring out how anything in that very simple file with no external CSS could possibly be causing this, other than by triggering a bug in table layout for FF. Oddly enough it seems to do the same in an ancient version of Mozilla that a friend of mine had handy |
#6
| |||
| |||
|
|
It may the same code (and the same bug) in there. It looks like a bug to me. |
#7
| |||
| |||
|
|
On Dec 10, 4:27 pm, Aaron Sherman <AaronJSher... (AT) gmail (DOT) com> wrote: http://wowstreet.ajs.com/test1.html Should the table that I referenced, above render with the gray overlapping the table border or no? It seems like a bug for that to ever happen, but I'm ready and willing to hear otherwise. And just for grins I tried the same in html4/strict: http://wowstreet.ajs.com/test2.html The developer toolbar plugin for Firefox tells me that this is well- formed, standards compliance mode HTML. Same overlap of cell walls. I'm having a very hard time figuring out how anything in that very simple file with no external CSS could possibly be causing this, other than by triggering a bug in table layout for FF. Oddly enough it seems to do the same in an ancient version of Mozilla that a friend of mine had handy, but Safari renders it just fine. Dunno about IE. |
#8
| |||
| |||
|
|
the strange thing is the markup that I posted does work in FF as you wish. Not sure why my CSS FF honors the padding and yours here it does not. |
#9
| |||
| |||
|
|
Jonathan N. Little wrote: the strange thing is the markup that I posted does work in FF as you wish. Not sure why my CSS FF honors the padding and yours here it does not. Yours doesn't have white-space:nowrap on the td. BTW, once that is included, the cell content shifts around unexpectedly depending on where white space is added. I was suspicious of the white-space:nowrap, but had other things, |
![]() |
| Thread Tools | |
| Display Modes | |
| |