html table rules=all, css border:none Mozilla1.6- incl draws still nasty interiour border

html table rules=all, css border:none Mozilla1.6- incl draws still nasty interiour border

Post by DU » Thu, 05 Feb 2004 01:32:46



<style type="text/css"> is needed to avoid a validation error.


FWIW, I think it should be
border:0px none;
because none applies to border-style.



Your code is contradictory and incoherent.
- You set border:none everywhere for table-cell and rules="all".
- You define border="1" and frame="void". If you don't want a table
frame, then why do you define a border for such frame?
- There is no <th> in your <tbody>: so why do you create a css rule for it?
- Vertical-align:middle is the default css declaration for table cells;
so there is no need to declare it.
- You define a cellpadding="5" and then redefine a padding for specific
cells: all this can only make the parsing and rendering longer, more
complex and subject to bugs.
You should either just use CSS properties or just define table
attributes when there is an opposition. Best is to use only CSS
properties since these are formating attributes.
Just eliminate sources of contradictions and confusion in your code by
restricting to css properties when their equivalent table attributes are
formating ones.

DU
 
 
 

html table rules=all, css border:none Mozilla1.6- incl draws still nasty interiour border

Post by Eric B. Be » Thu, 05 Feb 2004 03:05:41

DU < XXXX@XXXXX.COM > writes:


FWIW, section 8.5.3 (border-style) of CSS 2 states:

| none
| No border. This value forces the computed value of 'border-width' to be '0'.

I vaguely recall problems with Konqueror 2 though when a border is set
for a simple selector and overridden by a class with 'border: none;'
without declaring an explicit width of zero as well.


--
| ) 111010111011 | http://www.yqcomputer.com/
-(
| ) Distribute me: http://www.yqcomputer.com/