Results 1 to 2 of 2

Thread: 2 elements in 1 container inline with similar containers

  1. #1
    eljhongo Guest

    2 elements in 1 container inline with similar containers

    This seems simple in my head but I have been going nuts all day now. I have knowledge of CSS/HTML but apparently not enough. Lol... What I am doing is dynamically loading some images into a gallery. The images display inline and are scrolled left and right. All is well. Now I need to add text below each image, the problem then becomes that the images either stack up or the text display inline with the images. I have put the image and text within a container but that still doesn't work. Please help. Thank you for any and all help.

  2. #2
    Join Date
    Nov 2009
    Location
    Sofia, Bulgaria
    Posts
    5
    Hi.. i don't know, i'm too lazy to trying it, but just a try...

    Code:
    div#container { width:???; float: left;}
    div#container p { float:left; text-align:left;} <- and some font styles..
    Code:
    also try with or without -> div#container img { clear: both; display:block;}
    or try putting <br /> after the <img>.. and before the <p>

Similar Threads

  1. Spry Menu stacked in Div Container and also in table
    By bitsmn in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 16 Nov 2009, 12:05 PM
  2. fixed elements on a centered layout
    By jschnyderite in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 29 Apr 2009, 12:50 PM
  3. Page container and Image layer troubles
    By creat3tertiary in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 12 Aug 2008, 11:35 AM

Posting Permissions

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