View Full Version : CSS: 1 simple question for the CSS master!
OK, I built a page:
GO ME! I'm learning CSS! Waiiiiiit one second. Why the hell does it have horizontal scrollbars? :mad:
I have failed :( I cannot figure it out.
08-11-2005, 05:11 PM
Why are you absolutley positioning everything?
because I don't know anybetter. Could you explain why I shouldn't?
I look at the slices. I say, I want this in the top left corner, and then I put it there. Makes sense when I make it. Suggestions?
anyone know why I shouldn't? Especially when working with slices?
08-11-2005, 10:39 PM
Sure, I know why :)
Absolutely positioned layouts are unforgiving and do not adapt well to different resolutions, font sizes or differing content length (eg: a pos:abs; footer won't clear the page's columns.)
Absolute positioning takes the element out of the page flow -- not really what you want for the entire layout.
Google: 'CSS float layout' and 'page flow CSS' :)
OK, it's been reconstructed using float. I think it's a lot cleaner and easier now :D
I now have 2 questions though:
1) How can I get the title image to be centered?
- it has to float:left or else the upperRight image drops to the next line.
2) View in firefox. You'll notice the bottom disappears. To fix this I can put background-position: bottom; in my footer, and then everything ALMOST works. But if I do that solution I just stated, IE will be 1 pixel off on the footer.
- Since IE is the majority of browsers, I'm going to leave it like this until it's figured out.
Link is same as before:
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.