Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to simply position images on the same line.

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #38385
    yourdairyman
    Member

    Hi, thanks for any help first off. I’m trying to position two images side by side (column next to column) in CSS. I’m linking to an external style sheet. I tried searching the web but none of the code I try works :/

    #104000
    #104046
    yourdairyman
    Member

    Yeah, I’m trying to position just two images next to each other without leaving to much empty space. Thanks for that site. Looks like you can test css and html code right inside, which seems immensely helpful. I’m trying to figure out the CSS code.

    #104047
    JPC776
    Participant

    Do you have a link to the page your are working on?

    #104050
    Mellowfellon
    Member

    Give us a link via bitly or some other url shortening devices :) It could be your struggling with code that is getting in your way.

    #104055
    yourdairyman
    Member

    Thanks! Here is what I’m working with:

    Here is the HTML part:

    And here is the CSS part:

    #leftplacement{
    width:100%;
    float:left;

    }

    #rightplacement{
    width:100%;
    float:right;
    }

    #104056
    yourdairyman
    Member

    Here is the HTML part:

    #104057
    yourdairyman
    Member













    #104058
    yourdairyman
    Member

    I’m not sure about “sidebar” as I’m working off some other code.

    #104061
    Senff
    Participant

    Remove the width:100%; from the DIVs declarations and they should end up on the same line (if the container has enough room, of course).

    #104064
    JPC776
    Participant
    #104066
    yourdairyman
    Member

    Oh, wow. It worked! Thank you so much. What was throwing me off now I see was setting the width. I read that you should always have a width set. But anyways, thank you!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘CSS’ is closed to new topics and replies.