|
|
|
|
![]() ![]() |
Sep 9 2007, 11:04 PM
Post
#1
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 937 Joined: 14-April 05 From: West Chester, PA Member No.: 5,636 |
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
|
|
|
|
Sep 9 2007, 11:24 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 428 Joined: 26-January 06 From: New Durham, NH Member No.: 17,651 |
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. |
|
|
|
Sep 10 2007, 02:53 AM
Post
#3
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,874 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
search: clear floats html
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 24th July 2008 - 04:52 AM |