Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
I need help with a screen resizing issue
Old 08-27-2008, 04:54 PM I need help with a screen resizing issue
Experienced Talker

Posts: 37
Trades: 0
Hello,

http://www.chilidippers.com/test.html

http://www.chilidippers.com/main.css

I need help with this issue when the browser window is resized to a smaller size the can log will eventually dissappear from the screen eventhough everything stays centered. No scrollbars show up to scroll over either. Not sure if its an issue with the fact that I'm using a background tile that I want to expand with the resize of the window or if its a positioning issue with the can logo image. I have the image absolutely positioned. I'm trying to stay away from tables as much as possible but for some reason i have an easier time laying out with tables.

Thanks
cch068 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-27-2008, 07:15 PM Re: I need help with a screen resizing issue
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Everything seemed fine to me down to about 1000px width, which is about how wide your content is.

The problem is likely that you're using positioning for most everything. You really don't need to. Positioning is rarely needed at all in css layouts.

The way to center a site is to wrap a div around everything

<body>
<div id="wrapper">
all your code here
</div>
</body>

Then in your css:

div#wrapper {width:980px; margin: 0 auto}

How much width is up to you and it could be specified as % or any measurement you want, but you do need to include a width. The margin code above says the top and bottom margins are 0 and the left and right should be set automatically. The auto will center your wrapper div within the browser.

You also need to use a proper doctype for the above to work. Not using one sends IE into quirks mode.

Using the above you'd give your entire content are a margin-left to push it over. You might use positioning on your logo. If you do just set the wrapper div to be position: relative. Then when you use position: absolute on your logo it will be relative to the wrapper div and not the whole body. Your top and left on the logo will likely both be 0.

The one reason you might want positioning on the logo here is to use a z-index to sit it on top of the content.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-27-2008, 07:33 PM Re: I need help with a screen resizing issue
Experienced Talker

Posts: 37
Trades: 0
issue resolved. the can log was outside of the container div which was set at a fixed width less than that of the logo. changed the fixed with to accomodate the content and logo area and issue was resolved. Not sure why 100% width on the container area wasn't sufficient but it works
cch068 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I need help with a screen resizing issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.83899 seconds with 12 queries