same properties for text in a table with css??

liunx

Guest
HI!<br />
<br />
How come you have to define for text in a table cell one by one the css properties? the div or span tag is not valid anymore for a text in another cell??<!--content-->Each cell in a table is isolated to give the user total freedom so to speak, if it was like setting up css it would take a considerable amount of time to tweek those few cells that you want different like changing alignment, size, content etc per cell... jaeman<!--content-->but you can set the CSS properties for ALL <td> tags, or for classes.<br />
<br />
<br />
as for CSS inheritance - since a <table> is a different structure within the <div>, then it is assumed it needs a new style.<!--content-->span {font:italic 12px arial;}<br />
<br />
that in your css stylesheet or in the header will affect all span tags, it will only affect one span tag when you use it inline, ie:<br />
<br />
<span style="font:italic 12px arial;"> this is the only text that will be styled by this css</span><!--content-->Written: 2003-09-05 19:10UTC<br />
<br />
<br />
<br />
The first block of my CSS is always something like:<br />
<br />
/* General rules to cover any font-family inheritance bugs. */<br />
<br />
body, form, h1, h2, h3, h4, h5, h6, input, li, ol, p, select, td, textarea, tr, ul {<br />
font-family: "trebuchet ms", arial, helvetica, sans-serif; font-weight: normal;<br />
}<br />
<br />
and includes stuff that I want to apply to the whole document.<!--content-->thanks for your help!<!--content-->
 
Back
Top