View Single Post
Old 04-06-2022, 01:34 PM   #12
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,590
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by JSWolf View Post
IMHO, it's easier to do the following...
Code:
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em;
}
.noindent {
  text-indent: 0;
 }
Then you don't have to figure out all the stuff that can come before an indented p as all you'll need is <p class="noindent">. Problem solved. Plus, it's easier to read the HTML code.
True, but I still like to have some clever stuff. Plus, I know I'd forget to use that class every now and again.

Last edited by hobnail; 04-06-2022 at 01:36 PM.
hobnail is offline   Reply With Quote