...

View Full Version : Aligning Div and Text Horizontally



hollandac
07-25-2012, 07:01 AM
Hi everyone,

I'm having trouble aligning some text with divs on my portfolio website. Here (http://www.holland-design.com/branding.html) is the page in question.

I would like to align the top of the text on the left with the scrolling div on the right. Then the text/div would repeat again underneath it. I am not quite sure what is the best way to go about this. I have tried putting the text in its own div, but that didn't seem to work (or maybe I just did it wrong). It seems to work on the very first text/div pair, but then when I do it again underneath, the alignment gets messed up.

I would appreciate any insight on how to achieve this! Thank you!

tempz
07-25-2012, 08:06 AM
I don't quite understand, could you make a screenshot or something :S

XD

hollandac
07-25-2012, 07:14 PM
I don't quite understand, could you make a screenshot or something :S

XD

Here's a diagram explaining what I'm trying to do. Thank you for any help!

http://i82.photobucket.com/albums/j274/tazoteaie/example.jpg

tech_user101
07-25-2012, 08:59 PM
You can use float:left; for the div that you have written for your text.

To make your image div scrollable use iframe within that div. That should help :thumbsup:

tempz
07-25-2012, 10:24 PM
You want them inline and to fit on the page?

hollandac
07-26-2012, 03:55 AM
You want them inline and to fit on the page?

Yes! :) I would like the text/div pair in line, and then underneath it, another text/div pair, and then that keeps repeating.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum