WordPress.org

Forums

image problem with WordPress (6 posts)

  1. amitmohanty
    Member
    Posted 10 years ago #

    if i want to place two images side by side..i can't get it in CSS. the div tag enforces a line break.
    <div class="img-shadow" "style= align:left"> <img src="http://www.flickr.com/photos/766365_90d47ddf13_s.jpg" width="75" height="75">
    <img src="http://www.flickr.com/photos/766360_b988532841_s.jpg" width="75" height="75" alt="Smoldering Smile" /></div>
    </div>
    and the tag is defined in the wp-layout.css like this
    .img-shadow {
    text-align:left;
    margin-top:10px;
    margin-bottom:10px;
    margin-left:5px;
    }
    .img-shadow img {
    display: block;
    position: relative;
    background-color: #fff;
    border: 1px solid #a9a9a9;
    margin: 6px 6px 6px -6px;
    padding: 4px;
    }

  2. amitmohanty
    Member
    Posted 10 years ago #

    u might to have a look at here..the two images are on the bottom right
    http://amitmohanty.com/blog

  3. TechGnome
    Moderator
    Posted 10 years ago #

    It isn't the CSS, it's your style in the tag. You've got it set to align:left, so it does. It aligns the images to the left.
    TG

  4. amitmohanty
    Member
    Posted 10 years ago #

    oho..now i haev removed that tag...:( still it does not work

  5. lamb
    Member
    Posted 10 years ago #

    try not having the "space/return" between the two img tags?

  6. Root
    Member
    Posted 10 years ago #

    You could use float left for both images.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.