pbrosset
1 Dec 2006, 8:13 AM
Hi all,
I'm having a problem when trying to style the html elements displayed in one of my panels (inside a region of a borderlayout).
It seems that whenever I set the following css style:
position: relative;
to whatever HTML element inside my panel and when I try to scroll down the panel, the element that was relatively positioned doesn't follow the movement of the page and behaves as if it was positioned using:
position: fixed;
I did a test with the following code:
HTML code:
<p class="pos">Duis pellentesque, odio eu tristique semper, est enim facilisis sem, non molestie orci lacus in tortor. Nulla facilisi. Nulla facilisi. Vivamus sit amet mi. Sed laoreet. Nunc libero erat, elementum ut, lacinia in, sagittis non, est. Quisque pulvinar dolor sed est.</p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse feugiat metus sit amet enim. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut est urna, tincidunt a, pretium ac, porttitor non, sem.</p>
CSS code:
p.pos
{
position: relative;
}
And I put this inside a contentPanel.
When I scroll down to reveal more content, the p.pos paragraph just stays exactly where it was as if in position fixed.
Any idea on that ?
Thanks a lot
I'm having a problem when trying to style the html elements displayed in one of my panels (inside a region of a borderlayout).
It seems that whenever I set the following css style:
position: relative;
to whatever HTML element inside my panel and when I try to scroll down the panel, the element that was relatively positioned doesn't follow the movement of the page and behaves as if it was positioned using:
position: fixed;
I did a test with the following code:
HTML code:
<p class="pos">Duis pellentesque, odio eu tristique semper, est enim facilisis sem, non molestie orci lacus in tortor. Nulla facilisi. Nulla facilisi. Vivamus sit amet mi. Sed laoreet. Nunc libero erat, elementum ut, lacinia in, sagittis non, est. Quisque pulvinar dolor sed est.</p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse feugiat metus sit amet enim. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut est urna, tincidunt a, pretium ac, porttitor non, sem.</p>
CSS code:
p.pos
{
position: relative;
}
And I put this inside a contentPanel.
When I scroll down to reveal more content, the p.pos paragraph just stays exactly where it was as if in position fixed.
Any idea on that ?
Thanks a lot