Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    I don't quite understand, could you make a screenshot or something :S

    XD

  • #3
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!


  • #4
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 10:31 PM.

  • #5
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    You want them inline and to fit on the page?

  • #6
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •