Re: Re: new CHM sample [7] is out

From: Date: Fri, 16 Aug 2002 17:40:37 +0000
Subject: Re: Re: new CHM sample [7] is out
References: 1 2 3 4  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-332@lists.php.net to get a copy of this message
> The problem is in the padding. > > code { > padding: 1px 1px 1px 2px; > background-color: #dcdcdc; > font-family: "Courier New", Courier, mono; > } > makes it look better for me on winXP. > How are the code blocks made? are they <p> or <div>? > it would be better to put all the code in a single div tag so we could have > a block of code instead of having each line have a different length > background color. It looks like it's set on the paragraph tag right now. OK, so it seems to be handled differently in IE5 and IE6. It seems that IE5 does use padding for the whole code block, but IE6 applies it to the lines of the block (as <code> is inline)... While I think about it now, it seems that the IE6 approach is more logical... What you asked was already answered in the letter you replied to (still included below)... The .informalexample and .example classes can be used to apply these, but that would also mean that the copy link will be rendered with the same backround (not a problem for me). Can you please test this out with moving the code {} properties to .example and .informalexample? > ><div class="informalexample"><div align="right" > >class="codelink"><a > >href="javascript:void(0);" onclick="copyExample('1')">copy > >to > >clipboard</a></div> <p><code id="example_1"><span > >class="ck">if > >(</span><span class="cd">$a </span><span > >class="ck">&gt; </span><span > >class="cd">$b</span><span class="ck">) {<br> } > ></span></code></div> > > > >So the example is in a div with informalexample or example class, > >then a div contains the new copy link, then a <code> contains the > >code, with spans for highlighting. Every newline is done by <br>s. Goba

« previous php.doc.chm (#332) next »