On Wed, Jan 14, 2009 at 05:56:31PM -0500, Erik Bray wrote: > > On Wed, Jan 14, 2009 at 5:26 PM, Jennifer A. Drummond <[email protected]> wrote: > > > > Hi, everybody. I'm seeing a strange styling behavior when I try to wrap > > wiki headers in a !#div whose borders are visible, like if I'm putting a > > background color on something, or trying to put a border around it. Try > > the following code: > > > > {{{ > > #!div style="background: #bcf" > > == Header inside div == > > Sample text > > }}} > > > > It seems that the left margin of the page is actually a bit to the right > > of where the headers start, and headers behave as if they've got a > > margin-left of about -2em relative to that line. So my div ends up not > > covering everything it should. > > > > I can't see any negative margin tricks in trac.css, though, and I can't > > figure out how to fudge the div to make it encompass the whole header. I > > tried giving the div itself a negative margin, and that doesn't seem to > > change the display in any way. > > > > Any thoughts are welcome, either on how to fix this in the Trac code or > > how to work around it in my wiki syntax. Thanks! > > I see what you mean. This would explain it: > .wikipage { > padding-left:18px; > } > > .wikipage h1, .wikipage h2, .wikipage h3 { > margin-left:-18px; > } > > There's your negative margin trick. Not sure how best to proceed > though. You might want to open a ticket for this if there isn't one.
Done. I'd looked and not found anything much about problems with #!div or header rendering, so I created #7970. Thanks for the quick confirmation that I'm not crazy, and for the CSS-diving; I saw the basic header definitions at the top of trac.css and didn't go further. I'm tempted to hack my local stylesheet to remove the indent completely until I can figure out how to make it compatible with #!div blocks. Anyone else have a better idea? =-=-> Jenn Drummond // [email protected] Project Developer, Connexions Project (cnx.org) Rice University --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
