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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---