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
site alignment without tables
Old 07-31-2006, 07:05 PM site alignment without tables
Burnsie's Avatar
Skilled Talker

Posts: 81
Trades: 0
Hi
I want to remove the tables from my site but am having trouble with the opening hurdle! I can find plenty of articles on this but none seem to give me what I'm after. I want my pages to align to the centre of the screen and to be a set width (say 760px). I think i could work it all out if i was aligning to the left but I want it centred! What do i use as the starting hanger to get everything in the middle? I have aligned, floated and certred but all to no avail. If this is really tricky i may capitulate and align it to the left but this is not what I wanted. Please help!

Cheers
Burnsie
Burnsie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-31-2006, 07:10 PM Re: site alignment without tables
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It's not that tricky

You do this:
body{
margin: 0;
padding: 0;
text-align: center --- centers #wrapper in IE


#wrapper {
background: url(images/ss_pagebg.jpg);
margin: 0 auto; /* this centers the overall design in standards-compliant browsers
padding: 0;
width: 760px;
text-align: left;
position: relative; /* this gives the div positioning so that an absolutely positioned div (AP Div) can be placed within it. Otherwise, the AP Div would be placed relative to the body element (or the last positioned parent element). */
}
__________________
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 08-01-2006, 10:19 PM Re: site alignment without tables
Burnsie's Avatar
Skilled Talker

Posts: 81
Trades: 0
hi
Brilliant! that was just what I was looking for. It's easy when you know how!!
Cheers
Burnsie
Burnsie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to site alignment without tables
 

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