I need help with simple html code...

Discussion in 'HTML & Website Design' started by Emperor, Oct 12, 2007.

  1. #1
    I would like to know how to show two link images next to each other on my blog.
    To do this I would be using the widget option on wordpress. So basically what I'm looking for is the code that would enable me to show the images next to each other, not one on top of the other.
     
    Emperor, Oct 12, 2007 IP
  2. client3

    client3 Banned

    Messages:
    169
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    html or css which one you are using?
     
    client3, Oct 12, 2007 IP
  3. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The template uses CSS but I don't know how make it work on a widget. That's why I thought using HTML would be easier.
     
    Emperor, Oct 12, 2007 IP
  4. mikebrad0927

    mikebrad0927 Peon

    Messages:
    266
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can use css in your widget:

    <div stlye="float:left;">
    <a href="imagelink2"><img src="image2" /></a>
    </div>
    <div stlye="float:left;">
    <a href="imagelink2"><img src="image2" /></a>
    </div>
    Code (markup):
     
    mikebrad0927, Oct 12, 2007 IP
    Emperor likes this.
  5. mikebrad0927

    mikebrad0927 Peon

    Messages:
    266
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you may want to add <div style="clear:both;"> </div> to the end if it messes up your sidebar
     
    mikebrad0927, Oct 12, 2007 IP
  6. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the code. I'm going to try it out later on today to see how it looks.
     
    Emperor, Oct 12, 2007 IP