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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need Help Aligning Site
Old 09-13-2010, 10:59 AM Need Help Aligning Site
Junior Talker

Posts: 2
Name: Vince Piscitelli
Trades: 0
I have a project that I have to complete for my class but it always
looks different on different computers.

The site is here http://ptecwebdesigners.com/vpiscite...ign/index.html

I want it to be centered with the red div on the right side and the white div
on the left.

Any help would be appreciated.
vince1990 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-13-2010, 02:24 PM Re: Need Help Aligning Site
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The reason it's moving around is because you've used position:absolute and that's not the best route to take at all - unless your assignment tells you to do that.

You should read our stickie on the subject - http://www.webmaster-talk.com/css-fo...r-website.html
__________________
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 09-13-2010, 02:35 PM Re: Need Help Aligning Site
Junior Talker

Posts: 2
Name: Vince Piscitelli
Trades: 0
What position should I have it as?
What code should I use? I'm trying to have the green, white,
and red divs in that order like the Italian flag. It obviously
looks different on other computers and I'm getting really frustrated
with this in general.
vince1990 is offline
Reply With Quote
View Public Profile
 
Old 09-13-2010, 03:11 PM Re: Need Help Aligning Site
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The point is, most of the time you don't need positioning at all. It's better to learn to use the normal document flow than to nail things in place with absolute positioning - which is buggy still in IE.

Put a "wrapper" div around the portion of your page that you want to have centered, and give it the desired width. Your code would look something like this:

Quote:
<div id="wrapper">
<div id="nav"></div>
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
</div><!-- end wrapper -->
In your css, your #wrapper would look something like this:

Quote:
#wrapper{
position: relative;
width: 800px;
margin: 0 auto; /*top and bottom margin is zero, auto centers it */
overflow: auto; /*clears floats inside it */
}
The columns should be floated.
__________________
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 09-13-2010, 08:00 PM Re: Need Help Aligning Site
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
exactly as ladynred said..

if you have time to redo... try this... remake the site without a single position:absolute; tag. I looked at it at a glance and see no where you'll need it..
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
Old 11-08-2010, 02:24 AM Re: Need Help Aligning Site
dezijee001's Avatar
Novice Talker

Posts: 9
Trades: 0
Thanks for sharing... I am also facing this problem in one of my website.
__________________

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


Please login or register to view this content. Registration is FREE
dezijee001 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need Help Aligning Site
 

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