How To Do This? [Please Help]

Discussion in 'HTML & Website Design' started by BlueEew, Mar 17, 2010.

  1. #1
    [​IMG]

    How do I display data like this in a web-page?

    The 80 x 80 pixel Blue Box is where a Image would go. The three other little colors under the above Image are just three lines of Text. How to do this with the 10 px gap between height and width?

    Can anyone help me please?
     
    BlueEew, Mar 17, 2010 IP
  2. Basti

    Basti Active Member

    Messages:
    625
    Likes Received:
    6
    Best Answers:
    3
    Trophy Points:
    90
    #2
    You could use div´s, so for example

    use this for line one of the images. for line 2 you simply change the div class to img1 and duplicate the css part and to .img1

    
    <div class="img">
    <img src="imageurl" alt="" /><br />
    text<br />
    text<br />
    text<br />
    </div>
    
    Code (markup):
    repeat this code under each other and put the following in css
    
    .img {
    float: left;
    padding: 5px;       // just 5px as this will produce 5px around each div
    }
    
    Code (markup):
     
    Basti, Mar 17, 2010 IP
  3. BlueEew

    BlueEew Well-Known Member

    Messages:
    2,434
    Likes Received:
    79
    Best Answers:
    1
    Trophy Points:
    150
    #3
    Thanks. :)
     
    BlueEew, Mar 17, 2010 IP