Quote:
Originally Posted by ProDigit
So, if you have absolutely nothing to add in a css, what would you say, would be the utter minimum that a css file should exist out of?
Can you leave a css fine empty (zero bytes)?
|
If you're willing to leave the rendering entirely up to the rendering engine, you don't need to include any CSS at all. You can use an empty CSS file, or just not include a CSS file at all.
However, you should not then try to enforce any rendering by use of in-line HTML style commands. If you're going to do any formatting, you should do it in CSS for consistency.
That is, it's much better to have CSS of
p {
text-indent: 1em;
}
p.first {
text-indent: 0em;
}
and HTML of
<p class="first">First paragraph in my chapter</p>
<p>Next paragraph</p>
<p>Another paragraph<p>
rather than just HTML of
<p style="text-indent: 1em">First paragraph in my chapter</p>
<p style="text-indent: 0em">Next paragraph</p>
<p style="text-indent: 0em">Another paragraph<p>