...

View Full Version : CSS: 1 simple question for the CSS master!



Gant
08-11-2005, 04:25 PM
OK, I built a page:
http://www.bleacheatingfreaks.com/gant/misc/FSB

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.

HELP ME!

JamieR
08-11-2005, 05:11 PM
Why are you absolutley positioning everything?

Gant
08-11-2005, 06:00 PM
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?

Gant
08-11-2005, 09:54 PM
anyone know why I shouldn't? Especially when working with slices?

mindlessLemming
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' :)

Gant
08-11-2005, 10:52 PM
OK, it's been reconstructed using float. I think it's a lot cleaner and easier now :D

Thanx!

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:
http://www.bleacheatingfreaks.com/gant/misc/FSB/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum