Making websites float

This is a discussion on "Making websites float" within the Web Page Design section. This forum, and the thread "Making websites float are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 15th, 2006, 20:23
New Member
Join Date: May 2006
Location: AB
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Making websites float

Hello,
I am trying to make my page "float" on the top of the background. When I say float I mean the main site sits in front of the background always in the middle. It is kind of hard to explain so I found some examples of what I'm looking for:

http://www.lunarpages.com/index.php
http://www.gatorhost.com/
http://www.thehosting101.com

As you look at the 3 pages above you will see that the main site sites in front of a different color background and always stays in the middle of your screen no matter what resolution. Does anybody know how I can do this?

Any help is appreciated.
Reply With Quote

  #2 (permalink)  
Old May 15th, 2006, 20:48
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: Making websites float

What you are looking for is essentially a fixed width design that is centered horizontally.

Simple put your design into a containing Div tag with an ID of 'container' and then apply the following CSS:-
[html]#container {
margin:0 auto;
text-align:center
}

Hope this helps.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #3 (permalink)  
Old May 17th, 2006, 18:51
New Member
Join Date: May 2006
Location: AB
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Making websites float

I tried following your directions and placed the following right below my
body tag:

<div id='container'>[html]#container {
margin:0 auto;
text-align:center
}</div>

That is the exact code that I tried to place. I'm not that great with html.
Could you tell me what I am doing wrong? Thanks for your help!
Reply With Quote
  #4 (permalink)  
Old May 17th, 2006, 18:58
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Making websites float

Take a look at this thread. A few posts down I explained how to do it.

http://www.webforumz.com/css-forum/6...vertically.htm
Reply With Quote
Reply

Tags
making, websites, float

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Css Float??? RZX Developer Web Page Design 4 Aug 13th, 2007 10:37
Going crazy with Float Sporky Web Page Design 7 Nov 30th, 2006 01:52
Problems with float:left float:right nvidiajoe Web Page Design 8 Nov 17th, 2006 20:24
IE6 Float masonbarge Web Page Design 8 Aug 16th, 2006 10:13
right float problem... c_martini Web Page Design 11 Aug 2nd, 2006 13:47


All times are GMT. The time now is 10:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43