Div "position: ?"
- Started
- Last post
- 6 Responses
- aanderton
The "Div" has two meanings. One being a HTML reference. One simply relating to how stupid I feel about asking this.
Okay, so I'm trying to create one of those horizontal layouts. Where you scroll horizontally rather than vertically. However I'm struggling to get my div blocks not to jump underneath each other when the browser is resized.
I've tried playing around with positions but cannot work it out. The rest of the internet hasn't spread much light on the situation either.
If nobody understands what I mean I'll upload what I've done so far.
- olem0
please upload and show us a link. much easier that way... =)
- scenek0
maybe i misunderstand, but it sounds like you need oveflow: scroll
- aanderton0
http://www.aanderton.co.uk/v3/
Resize your browser (width) and the red box jumps below the left hand image, I want it to stay where it is and a horizontal scroll bar to be needed instead.
- bulletfactory0
one thing you can do is not float the welcome div.
have everything absolute (or even relative) positioned further to the right.
- acescence0
or you can make a container div with a really wide static width and float everything inside there. you can use javascript to resize the container to the appropriate width on page load to get rid of the extra space on the end.
- more dynamic this way - easier to update projectsbulletfactory
- aanderton0
Sorted guys, thanks for the help :)