Position Divs
- Started
- Last post
- 7 Responses
- HAMT
Hello,
I was wondering if anyone could help me with positioning 3 divs so they align horizintally.
I have been trying to do it but I am stuckhere it is the link so you know what I mean
http://www.hamtstudio.com/test/
Thanks in advance
- heavyt0
which 3 divs?
- nodh0
try
http://www.w3.org/TR/CSS2/
http://www.csszengarden.com/to align divs horizontally you should play with the top/bottom properties ...
- HAMT0
heavyyt
the divs box1 box2 box3?
- stewart0
http://www.csszengarden.com/
is totally messed up on my mac. can i still trust them?
- HAMT0
I went to check some of the sites and some of them are really nice!
I was on XP so I dont know how they would look in a mac
- Fuckstus0
hey bro,
yeah this is always big trouble. you can position them absolutely but then they are out of the flow which fucks up the rest of the page. i would float them which i have noticed that you did except you dont have float specified for box 2 and 3... you need to do that. but even if you do do that the third box might drop to the next line. so my suggestion is to give a bit of a side margin to each div and leave the right margin at 0px for box 3. that should do it.
rock the fuck on.
- HAMT0
Hey rocker!
Yeah I worked it out. And you are right the position:abosulute does everything go out of synch. I found that some time ago.What I did was to give margin to 0 to box 2 & 3 and give them float:left; to the 3 of them.
I took clear:both; out of the boxes div I am really sure if I need that of not
Thanks fuckstus
And rock on yeah!