|
Sarah
 |
11th March 2006 - 10:19 pm |
|
http://sewwy.com/temp/test/header.php
why the HELL does the sidebar div keep travelling down the page the more i add to the main dif on the right!? :'( |
|
Lillemor
 |
11th March 2006 - 10:33 pm |
|
Hm ... I'm not sure how to explain this, but I don't think you've "defined" it to be put next to the main div. So the sidebar div turn up under the main div, like things usually do when you don't "tell" them to do something else. The "float" thing doesn't do that, it only put the "box" of text to the left. |
|
Sarah
 |
11th March 2006 - 10:41 pm |
|
How would i go about fixing that, lillemor? :X |
|
Lillemor
 |
11th March 2006 - 10:50 pm |
|
You could put this in your css (under the #main/sidebar):
position:absolute;
left:000px;
and put a value in where it says 000. But you should do that for each div then. Like both for the main div and for the sidebar div. That will make the divs static. They will remain at so or so many pixels from left no matter what screen resolution you have. That could of course be a bad thing if you want the layout to be centered in all resolutions. I don't know how to do it in any other ways. Or another way of doing it is using tables, but I believe tables are no-no these days.
I'm sorry, I'm probably not helping much, but it's been years since I was "into" web designing, so I'm a bit rusty. :P |
|
Sarah
 |
11th March 2006 - 10:51 pm |
|
Yeah, Lillemor, i dont want to use absolute because it won't actually centre properly otherwise.. I don't know why what i have isn't working, because my current layout is almost entirely the same, and it's working fine.
:( |
|
Manda
 |
11th March 2006 - 10:52 pm |
|
Um im no expert.. but uhh ^^.. maybe you should use adobe imageready to get a table code, thats what i do for my table layouts.. i dunno im stupid >_< |
|
Linda
 |
11th March 2006 - 10:55 pm |
|
You could try reading this tutorial: http://www.tutorialtastic.co.uk/page/three_column_css_tableless_layout it's for 3 columns but I'm sure you can fiddle to make it 2. Div layouts are such a pain in the ass. |
|
Sarah
 |
11th March 2006 - 10:59 pm |
|
nvm.. i fixed it. Some stupid problem with the padding. blah. |
|
Sarah
 |
11th March 2006 - 11:00 pm |
|
thanks linda, i'll use that in the future. :) |
|
Jenny
 |
11th March 2006 - 11:25 pm |
|
Aha, yeah, remember to minus values if you use paddings and margins. :) |
|
Manda
 |
11th March 2006 - 11:28 pm |
|
Well... i like that layout :D |
|
Reply to thread
|