Hi all,
If I want to have many divs with different padding, border, and colour
properties, should I just set those styles in line, ie:
<DIV style"...">
</DIV>
or should I define all the divs in a separate style sheet and link to it in the
header of my doc, ie:
<!--
#box1 {
border: 1px solid black;
background: white;
padding: 1em;
margin: 1em;
}
#box2 {
border: 1px dashed black;
background: red;
padding: 3em;
margin: 1em;
}
#box3 {
border: 2px solid yellow;
background: black;
padding: 0.5em;
margin: 0.5em;
}
..
..
..
#box99 {
....
}
It seems pointless to define the style of each box in the style sheet when each
is only used once, but is unique. I think it's appropriate to define major boxes
in the separate stylesheet if they are fundamental parts of your overall layout,
but not if they are just a little box you decide you need on-the-fly.
Sorry if this has been done to death.
--
Ben Thomas
Opinions, conclusions, and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by it.