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

From: Date: Fri, 16 Aug 2002 17:10:40 +0000
Subject: Re: Re: new CHM sample [7] is out
References: 1 2 3  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-331@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. -timmyg At 09:30 PM 8/15/2002 +0200, Gabor Hojtsy wrote:
Most everything works fine, but the Samples section of eac hentry appears to have the bottom of each line trimmed off. For example, I'm looking at the entry for htmlentities() ... At first blush, looks like a CSS problem. This happens with both of the included skins. I'm using IE6 on Win2k. Anyone else? Also, the context menu pops up in an unpredictable location.
Same here, IE6 on Windows XP. OK, can someone with CSS knowledge experiment with this. I have no XP and/or IE6 box to experiment here. One can set a custom skin using the preferences app (just browse to skins/greenlinks/skins.js and select it). This skin is the same as the inline Low skin, but with green links. The structure of an example looks like this: <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. The css rules for these are: code, .codelink
    font-weight: normal;
    width: 100%;
    margin-right: 10px;
    margin-left: 10px;
} code {
    padding: 5px 5px 5px 20px;
    background-color: #dcdcdc;
    font-family: "Courier New", Courier, mono;
} .codelink {
    font-size: 10px;
} .cs { color: #CC0000 } /* string */ .cc { color: #b8860b } /* comment */ .ck { color: #006600 } /* keyword */ .cd { color: #0000CC } /* default */ This may not be 100% the same in the greenlinks CSS, but those size differences should not affect display, so I don't think there are any problems in the CSS. Can someone please try some tweaks out using IE6 modifying the greenlinks skin. After you modify the skin you can press F5 to see the results in the app (if greenlinks is the active skin). Thanks for the help, Goba -- PHP CHM Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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