[Refdb-users] html output
Status: Beta
Brought to you by:
mhoenicka
|
From: Bruce D'A. <bd...@fa...> - 2004-01-27 04:39:34
|
On Jan 24, 2004, at 3:03 PM, Markus Hoenicka wrote: > Bruce D'Arcus writes: >> The underling HTML code is a little ugly, but the outward appearance >> is >> nice enough. All you really need is a way to get back some (X)HTML >> code that has formatted references, each of them wrapped in a div >> element with a class attribute. That way you can do all the styling >> with CSS. I'm even willing to help there if need be. I've actually > > Could you tell me what the HTML output should look like to improve the > styling with CSS? It should not be too hard to fix backend-html then. I'm not sure what it is that Matt likes about the interface he posted the url to, but one thing that's different is that the references are formatted like in a reference list. Other than that, you've got things working right because you're attaching class attributes to most of the code. However, if you look at this example: <h1 class='h1'>refdb reference list</h1> <h2 class='ID'>ID*:3 (2002)</h2> <p class='authors'>Russwurm,M.; Mergia,E.; Mullershausen,F.; Koesling,D.</p> <p class='title'>Inhibition of deactivation of NO sensitive guanylyl cyclase accounts for the sensitizing effect of YC-1</p> <p><em class='periodical'>J.Biol.Chem.</em> <em class='volume'>277</em><em class='issue'>(28)</em>:<em class='page'>24883-8</em><p class='citekey'>CITEKEY:Russwurm2002</p> <hr /> ...it would offer more CSS formatting flexibility if you had each record wrapped in a div element, e.g.: <h1 class='h1'>refdb reference list</h1> <div class="record"> <h2 class='ID'>ID*:3 (2002)</h2> <p class='authors'>Russwurm,M.; Mergia,E.; Mullershausen,F.; Koesling,D.</p> <p class='title'>Inhibition of deactivation of NO...</p> <p><em class='periodical'>J.Biol.Chem.</em> <em class='volume'>277</em><em class='issue'>(28)</em>: <em class='page'>24883-8</em><p class='citekey'>CITEKEY:Russwurm2002</p> </div> That would allow the top-and-bottom borders that in Matt's interface separate each reference. Also, those <em> elements probably ought to be span. That way the CSS definition could say whether it was italicized or not. While I've not experimented with it, I suppose it would offer even more flexibility to use spans throughout, such as where you're currently using p tags... Bruce |