View Single Post
Old 11-01-2015, 10:52 AM   #1
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
In CSS, * or body?

Hi guys,

Just by curiosity: in CSS is it better to use, for example:

Code:
* {
    margin: 0;
    text-indent: 0;
    padding: 0;
}
or put it in the the <body>:

Code:
body {
    margin: 0;
    text-indent: 0;
    padding: 0;
}
I mean, is it more in the semantic line or relevant/effective to use one instead of the other?

Incidentally what is the purpose of using, in an epub chapter, an empty <div>? A trick for some eReaders? You know, something like that:

Code:
<body>
<div>
  <h1>Title</h1>

  <p>blaba...</p>
</div>
</body>
Arios is offline   Reply With Quote