View Single Post
Old 12-21-2015, 05:02 AM   #17
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,151
Karma: 315558334
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by ProDigit View Post
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>
pdurrant is offline   Reply With Quote