Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8048993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:39:24+00:00 2026-06-05T06:39:24+00:00

I try to work out, that the two p should be besides the image

  • 0

I try to work out, that the two p should be besides the image and the second p not under the image. It would be possible with float: left but this causes a lot of browser bugs (mainly under IE). How could I get my wished result with display: inline-block?

<div id="one">
    <img src="http://www.jcopro.net/wp-content/uploads/2011/12/ubuntu-logo1.gif" alt="" />
    <p>Content</p>
    <p>Content</p>
</div>

#one {
    display: inline-block;
    width: 800px;
    vertical-align: top;
}

#one img {
    display: inline-block;
    vertical-align: top;
    width: 100px;
}

#one p {
    display: inline-block;
    vertical-align: top;
    width: 600px;
    border: 1px solid gray;
}

Demo: http://jsfiddle.net/MK5E9/1/

Edit:
Okay I mis-described my problem: I don’t want to have the p in one row besides each other, I want to have them under each and both paragraphs besides the image.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:39:25+00:00Added an answer on June 5, 2026 at 6:39 am

    Yes, but you need the container to be wide enough to contain all 3 elements. The following works when shrinking you <p>s to 300px wide.

    Example

    EDIT, based one OP’s edit:

    Well, that’s what float was actually originally meant for. Floating images and allowing the correct flow of text around them. Example.

    If you wish for the image to be on a different “column”, meaning the text won’t flow around the image, but will start a new line at the line of the image, you need to limit the width of your elements. See here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to do that, but it does not work. <logic:present name=MEMBER > <bean:message
i try to use confirm box but it does not work after 'OK' pressing
Why this does not work in firefox i try to select the category and
I try to work with locale: In routes.rb I have: scope (:locale), :locale =>
i try to work with spinner on dialog public class data extends Dialog {
I am a newbie in Python. I try to work with server using Thrift
I try to create 4 child processes who will work simultaneously, but the output
I try several samples in the internet and none of them work - the
I try to register to C2DM but it doesn't work. I included com.google.android.c2dm in
I'm looking to try to make an efficient delete method to work on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.