View Full Version : I need some help!


Mysti
08-02-2005, 12:59 PM
Hi, i'm new, but i'm working on a layout atm but having trouble. you see, there are two boxes which need to be filled; 1. Links, 2. recent news. But in order to have the small contents fit properly i need height and width restrictions. Well i put in the restrictions, but it seems to just ignore the height!! :grouch: Am i doing something wrong?

<div id="links" style="position: absolute; z-index: 2; height: 220px; left: 20px; top: 145px; overflow: visible">

Please help me,
xxxx Mysti

iTom
08-02-2005, 01:33 PM
If there is more content than the box can hold it will resize, so put overflow: scroll. This means it will scroll inside the div.

Merike
08-02-2005, 01:43 PM
You probably have more content so it needs more height than specified? You need to either make the div scrollable or hide everything that exeeds fixed height.
Which is the case?

In addition to the post above if you don't want horisontal scroll then use overflow:auto; which creates scrollbars only when needed and where needed.

Mysti
08-02-2005, 02:11 PM
Oh thank you guys!! let's see if it works then ^^

Mysti
08-03-2005, 10:19 AM
Ok it worked, but can i get rid of the width showing scrollbar? Coz it looks bit odd..

http://i5.photobucket.com/albums/y161/LilSuicide/box1.jpg

Merike
08-04-2005, 10:37 AM
overflow:auto; as suggested in my previous post should work unless you have something wider in the box than the box itself

lefty
08-04-2005, 01:41 PM
You could also make the box a couple pixels wider.. it may get rid of that.