IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Centered Div Layout Issues

, Float Right item not vertically aligned with text


fffanatics
no avatar
Privileged Member
*********
Group: [HOSTED]
Posts: 936
Joined: 14-April 05
From: West Chester, PA
Member No.: 5,636



Post #1 post Sep 9 2007, 11:04 PM
Hey everyone. I am writing an all div layout for my friends website and i just cant seem to get all the fields aligned properly. I can get all my images to be aligned and look great until i put any text on the site. For example, my box that will contain links and such has 3 parts: top, middle and bottom. Each of these have 3 parts: left, middle and right. To program the 3 parts of each row, i use 3 divs which are all floated based on their position. However, as soon as I put text in the middle area, the right image is moved down to a new line. The sample site is located at http://www.fffanatics.trap17.com/bus/profile.html. Please let me know if you have any advice or suggestions on how to fix this. Thanks a ton
Go to the top of the page
+Quote Post
rayzoredge
no avatar
That Guy Who Doesn't Know What He's Talking About
*********
Group: Members
Posts: 949
Joined: 26-January 06
From: New Durham, NH
Member No.: 17,651
myCENT:73.00



Post #2 post Sep 9 2007, 11:24 PM
What really helps out when debugging is putting borders on your DIVs just to help visualize what's going on.

What I'm seeing is that your "background" DIVs are being pushed to the right because your text flow isn't above where you really want it. With that particular DIV, you need to set your width so that it doesn't overflow the DIV, and then use a background for that DIV to match the rest of the image.

Or you could just use that image and position your text using absolute/relative positioning over the image itself.
Go to the top of the page
+Quote Post
jlhaslip
no avatar
Insert Custom Title Here
*******************
Group: [MODERATOR]
Posts: 4,900
Joined: 24-July 05
From: Linux, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:56.50



Post #3 post Sep 10 2007, 02:53 AM
[google] clear floats html[/google]
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   60 JasperIk 6,405 20th October 2009 - 02:28 AM
Last post by: iG-
No New Posts 2 encryptedwrath 456 30th October 2008 - 07:18 PM
Last post by: encryptedwrath
No New Posts   2 garbage 1,129 19th June 2006 - 04:55 PM
Last post by: garbage
No New Posts   0 Trystim 3,490 20th September 2004 - 02:52 PM
Last post by: Trystim
No new 14 aerin 7,507 4th November 2004 - 10:15 PM
Last post by: gta
No New Posts   4 BoSZ 9,034 21st October 2004 - 09:43 PM
Last post by: Jeremie
No New Posts   1 faceofdie 6,096 17th November 2004 - 06:47 PM
Last post by: serverph
No New Posts 10 serverph 1,410 15th July 2007 - 12:47 AM
Last post by: homespeaker
No New Posts   0 Vacant 2,884 25th December 2004 - 09:33 PM
Last post by: Vacant
No New Posts   8 Graeme 990 2nd July 2007 - 12:31 PM
Last post by: Graeme
No new 47 finaldesign 13,893 22nd April 2005 - 09:58 PM
Last post by: finaldesign
No New Posts   10 darran 1,502 10th February 2009 - 04:11 AM
Last post by: novoAlias
No New Posts   8 googlue 4,143 27th January 2005 - 08:10 AM
Last post by: googlue
No New Posts 1 mahesh2k 4,316 19th February 2005 - 03:59 PM
Last post by: Klas2B
No New Posts   8 encryptedwrath 850 2nd January 2009 - 08:45 AM
Last post by: triplebtalk


 



RSS Open Discussion Time is now: 5th November 2009 - 08:49 PM

Web Hosting Powered by ComputingHost.com.