What extra code do I need please to make these two images be side by side

7 replies
  • WEB DESIGN
  • |
Hi
I have added these two images to my sidebar of my wordpressblog and they do work, but they are appearing underneath each other and I would like to have them side by side. However I cant work out what to add to make them appear left and right or where to add it. Any help would be really appreciated.


<a target="_new" href="http://EzineArticles.com/">
<img src="http://EzineArticles.com/featured/images/ea_featured_2.gif" border="0" alt="As Featured On EzineArticles">
</a>


< div style="text-align:center;">
<a href="http://aweber.com/?327380" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing_easy/125x125.gif" alt="AWeber - Email Marketing Made Easy" style="border:none;" /></a>
</div>

La dominatrix
#code #extra #images #make #side
  • Profile picture of the author Aronya
    Have you tried containing them in the same div?
    {{ DiscussionBoard.errors[1164210].message }}
  • Profile picture of the author mywebwork
    You currently seem to have the second image in it's own div tag. You could try placing them both within that same div (or within a span) and see if it works.

    The best way would be to create an entry for each image in your stylesheet. You could then position them both perfectly.

    A "cheap and dirty" (if you pardon the expression!) way is to place the images within a table with 1 row and 2 columns, each cell holding an image. This is kind of 1990's but it does work!

    Let me know if you need any assistance with this.


    Bill
    {{ DiscussionBoard.errors[1164223].message }}
    • Profile picture of the author Janet Sawyer
      Originally Posted by mywebwork View Post


      A "cheap and dirty" (if you pardon the expression!) way is to place the images within a table with 1 row and 2 columns, each cell holding an image. This is kind of 1990's but it does work!

      Let me know if you need any assistance with this.

      Bill
      1990's but it works most of the time.

      [side note: Dos 3.5 should never have been lain to rest ]
      {{ DiscussionBoard.errors[1164235].message }}
      • Profile picture of the author mywebwork
        Originally Posted by Janet Sawyer View Post

        [side note: Dos 3.5 should never have been lain to rest ]
        Agreed! My 286 is really choking trying to run Windows Vista!



        Bill
        {{ DiscussionBoard.errors[1164304].message }}
  • Profile picture of the author la dominatrix
    Thanks all ...Where would I be without this forum. Great job Bill solved the problem
    La dominatrix
    {{ DiscussionBoard.errors[1165527].message }}
  • Profile picture of the author aminjohar
    Hello. you just try this code:

    HTML Code:
    < div style="text-align:left;">
    a image 1 &nbsp; a image 2
    </div>
    {{ DiscussionBoard.errors[1179900].message }}

Trending Topics