Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Centered Div Layout Issues, Float Right item not vertically aligned with text
fffanatics
post 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
Go to the top of the page
 
+Quote Post
rayzoredge
post 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.
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

Group: [MODERATOR]
Posts: 3,874
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



search: clear floats html
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Layers With Text Appear(1)
  2. Add Text In Input-field(5)
  3. Code For This Table Layout?(6)
  4. Div Layout Problems(5)
  5. Glow Text(2)
  6. Word Wrap Text In Div.(14)
  7. Xhtml Forms Layout(8)
  8. Select All Text In A Form Field On Click(1)
  9. Header < H1> Layout Problem(13)
  10. Text Problem(6)
  11. Submitting A Form Timeout Issues(3)
  12. Help With Website Layout Correction For All Browsers(4)
  13. Help With Css/html Layout(5)
  14. Any Advice From Experts?(3)


 



- Lo-Fi Version Time is now: 24th July 2008 - 04:52 AM