View Single Post
Old 02-26-2011, 09:38 AM   #98
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
I have a book with has <div rather than <p

I managed to get the noindent trick to work after a few false starts but what are the side effects of coding in <div rather then in < p for each paragraph please ?

should I attempt a drastic replace of div with p ?
Code:
</head>

<body class="calibre5">
  <p class="calibre3"><a class="calibre4" id="c38"></a></p>

  <div class="fmhT calibre11 sgc-1">
    38.
  </div>

  <div class="tx noindent">
    
 <b class="calibre9">H</b>URRY, ” ALEXSAID, avoiding looking at Jax in her half-naked condition. “Hoffmann is probably raising an alarm, getting together help. The last thing we need is to get trapped in here.”
  </div>

  <div class="tx">
UPDate - i thought noindent had worked - then I messed up & started over now it is not working again:
Code:
<h2 class="fmhT calibre11 sgc-1" id="heading_id_2">30</h2>

  <div class="tx noindent">
    <b class="calibre9">A</b>LEX DIDN’T REMEMBER OPENING HIS EYES. He didn’t remember waking. He merely became gradually aware that he was awake. After a fashion.
  </div>
.calibre9 {
font-weight: bolder;text-indent: 0
}
.noindent {text-indent: 0}
.tx {
border-bottom: 0;
border-top: 0;
display: block;
font-size: 0.88889em;
line-height: 1.2;
margin-bottom: 0.3em;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 1em
}

but when I move the above arrangement & place the .noindent defintion below the .tx definition like below, then it works _ I thought you'd said order did not matter in .css ???
.tx {
border-bottom: 0;
border-top: 0;
display: block;
font-size: 0.88889em;
line-height: 1.2;
margin-bottom: 0.3em;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 1em
}
.noindent {text-indent: 0}

Last edited by cybmole; 02-26-2011 at 09:55 AM.
cybmole is offline   Reply With Quote