WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 xtree scroll bar problems, Redtopia, February 19, 2004
     Re:xtree scroll bar problems, Erik Arvidsson, February 22, 2004
         Re:xtree scroll bar problems, Redtopia, February 23, 2004
         Re:xtree scroll bar problems, Redtopia, February 23, 2004
         Re:xtree scroll bar problems, Redtopia, February 23, 2004
     Re:iframe focus problem, iDRiS, February 22, 2004

Subject: Re:xtree scroll bar problems From: Redtopia Date: February 23, 2004

In the style that you defined, why is the bottom set to 0? I applied this style and both the vertical and horizontal scroll bars appear together at the same time, but only when the width is smaller than the content. Height has no effect. A vertical scroll bar doesn't appear when the content his vertically larger than the content.

From: Erik Arvidsson
Sent: Feburary 22, 2004
Subject: Re:xtree scroll bar problems

Since you have height 100% and top 20px the bottom edge will be 20px below the bottom. If you are using percentage heights the parent element must have a defined height as well.

You will most likely need to use JS to get the height correct since IE does not support both top and height. This works in CSS2 compatible browsers

#container {
position: absolute;
top: 20px;
bottom: 0;
left: 0;
width: 100%;
overflow: auto;
}

You might also consider adding an extra div around the original one and use padding-top to move the tree down a bit.

Vertical position in CSS really sucks.

erik





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX