Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-25-2012, 07:01 AM   PM User | #1
hollandac
New to the CF scene

 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hollandac is an unknown quantity at this point
Aligning Div and Text Horizontally

Hi everyone,

I'm having trouble aligning some text with divs on my portfolio website. Here 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!
hollandac is offline   Reply With Quote
Old 07-25-2012, 08:06 AM   PM User | #2
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
I don't quite understand, could you make a screenshot or something :S

XD
tempz is offline   Reply With Quote
Old 07-25-2012, 07:14 PM   PM User | #3
hollandac
New to the CF scene

 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hollandac is an unknown quantity at this point
Quote:
Originally Posted by tempz View Post
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!

hollandac is offline   Reply With Quote
Old 07-25-2012, 08:59 PM   PM User | #4
tech_user101
New to the CF scene

 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
tech_user101 is an unknown quantity at this point
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

Last edited by WA; 07-25-2012 at 09:31 PM..
tech_user101 is offline   Reply With Quote
Old 07-25-2012, 10:24 PM   PM User | #5
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
You want them inline and to fit on the page?
tempz is offline   Reply With Quote
Old 07-26-2012, 03:55 AM   PM User | #6
hollandac
New to the CF scene

 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hollandac is an unknown quantity at this point
Quote:
Originally Posted by tempz View Post
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.
hollandac is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:07 AM.


Advertisement
Log in to turn off these ads.