View Single Post
Old 02-01-2017, 10:53 AM   #8
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
That depends on how the CSS is coded. I code my CSS so <p></p> does not add any extra space. I use a top and bottom margin of 0. Sono, the <p></p> does not have to add any space. Also, you can use a class to further define how the ToC entries are coded.
So you use:
<p class="someclass">something</p>
<p class="someclass">someone</p>
<p class="someclass">somewhere</p>

to duplicate the look of:
<p class="someclass">something<br/>someone<br/>somewhere</p>

interesting.

Although, as I said, I use something like:
<div class="someclass">
<p>something</p>
<p>someone</p>
<p>somewhere</p>
</div>

and define CSS:
div.someclass p {whatever}

There are multiple ways to make it look the same. The only real difference is how semantically correct you want it to be. I actually think dgatwood had the better argument that a <ul><li> is more semantically correct.

It's just very difficult to understand why you would tell someone their way is "poor coding" and yet you give them an example of equally poor coding without explaining your reasoning.

Cheers!
Turtle91 is offline   Reply With Quote