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
Help with CSS positioning
Old 03-16-2008, 01:16 AM Help with CSS positioning
Super Talker

Posts: 107
Name: Sandy
Trades: 0
Hi Everyone,

I've been lurking around a couple boards and many of you on this board seem very knowledgeable and I'm hoping you can help me. I am taking a site from tables to CSS and I've been working on this at night after work since Tuesday night. I've run into many issues and have had many many trial and errors but this is the way we learn. I do understand now that positioning has to do with the parent div. i also found the answer to have my content area decrease/increase with any given text. I have tried many times with different mixes of changes and I cannnot get it. I do love a challenge but I know when to ask for help. Having said all this.... here is my issue.

I would like to decrease the size of the wrapper. I think it is too wide - maybe my logo div is too wide on the left. I would like to decrease the size of the content but I do need a bit of the wrapper showing on the right side. The last issue that I'm having is that at the bottom of the page, either my content is peaking through or my body is, I'm not sure. This is the site I'm changing:

http://thegenesiscenter.net/bio.html

Here is where I'm testing it:

http://www.sandysdesignline.com/genesis/biotest3.html
Also, if you notice, there are two images I have not put in yet. There is an image on the left of the content and another on the very bottom. I don't know if Beth is going to really want to incorporate those images either. I have tried to put those in and failed. My husband thinks that since we are going from tables to CSS that I shouldn't be so concerned with the width of my areas being EXACTLY like the old site.

Any suggestions would be greatly appreciated. Thank you for your time in advance.

This is edited.. I just put it through browsershots.org and it's worse than I thought. Back to the drawing board for me.

http://browsershots.org/http://www.s.../biotest3.html
__________________
Sandy K

Last edited by sandyk3; 03-16-2008 at 01:37 AM..
sandyk3 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2008, 12:50 PM Re: Help with CSS positioning
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
My husband thinks that since we are going from tables to CSS that I shouldn't be so concerned with the width of my areas being EXACTLY like the old site.
Good advice too. If you try to get pixel perfection across browsers, you'll drive yourself nuts. You can get very close, but there will always be slight differences due to the nature of all the browsers out there.

It looks fairly good in Firefox, with a few minor problems. IE6 however, is barfing it up - as usual .

A couple of comments:
Your text should be inside <p></p> or headings, you should never have text just sitting on a page.

If you do that, you'll be able to control spacing and you won't need all those <br> tags everywhere.

For your quote on the side, it might be best to stick it in it's own <div> and put it where you need it (and inside a paragraph).

Set your #wrapper to position:relative - it's often the only positioning you'll need and it's useful if you do need to use positioning for elements inside your #wrapper. They will be positioned relative to the #wrapper and not the body.

Get rid of the position:absolute on your logo box, use the normal document flow and learn to use floats. Absolute positioning can cause a LOT of headaches. I'd get rid of all that position:absolute, it's just not necessary.

IE6 (and below) does NOT support min/max width/height, so you'll have to feed it a fixed height (not recommended) or let it flow with it's content. Use conditional comments and a separate 'fixes' only css file to target IE's bad behavior.

The position:relative on the #bottom probably isn't necessary either.

Put your navigation in an unordered list, it's semantically correct and you'll have a bit more control over how it's displayed.

I would say the other thing you need to do is re-think the way you've got it laid out. This is a learning process when you go from tables to table-less layouts, you have to get away from that tables-slicing mindset.

On your layout, I would make that entire top section, the logo and your banner, a single 'slice', and put it at the top as a "header" div. It would look something like this:

wrapper
header (contain logo and banner, probably float the logo left)
sidebar (left column)
content
footer
/wrapper

If you use floats, you must also CLEAR your floats - some info here on float layouts:
http://css-discuss.incutio.com/?page=FloatLayouts
Clearing floats: http://css-discuss.incutio.com/?page=ClearingSpace
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-16-2008, 02:07 PM Re: Help with CSS positioning
Super Talker

Posts: 107
Name: Sandy
Trades: 0
Thank you LadynRed,

I'm going to try the things you suggested. I will be starting fresh with new html and css documents. I will post back a bit later to let you know how it goes.

Thanks again!
__________________
Sandy K
sandyk3 is offline
Reply With Quote
View Public Profile
 
Old 03-16-2008, 02:53 PM Re: Help with CSS positioning
Super Talker

Posts: 107
Name: Sandy
Trades: 0
So far so good... LOL.. not much done BUT I do have the logo and the banner contained within the banner div - one question... I've been trying to figure out how to put some space between them without having to create a jpg or gif.

Thanks again.
__________________
Sandy K
sandyk3 is offline
Reply With Quote
View Public Profile
 
Old 03-16-2008, 09:19 PM Re: Help with CSS positioning
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
To space things out, you use margins and padding
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with CSS positioning
 

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.21653 seconds with 12 queries