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 9129409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:44:25+00:00 2026-06-17T07:44:25+00:00

I have an inline image in my div that is inline by using position:absolute

  • 0

I have an inline image in my div that is inline by using position:absolute (I can’t use other methods for inline because they cause the line-height to change.) These images flow out of the div and are sent to the next line… but the image doesn’t go down.. it is sent to the next line meaning it is sent to the far left of the div but it doesn’t move down in height so it’s almost like it stays on the same line but moves to the left? How can I fix this?

Example: (*Change the width of the last TWO images from 30px to 150px to see the effect I’m describing.) http://jsfiddle.net/ztKP5/2/


Code: (*Change the width of the last TWO images from 30px to 150px to see the effect I’m describing.)

<div style="font: 30px; border:1px solid black; width: 350px; height:350px; word-wrap: break-word;">

<font face='helvetica'>

Test test test test test test test test test test test test test test test test!!

<img src='http://home.comcast.net/~urbanjost/images/globe_west_2048.jpg' style='width: 100px; height: 75px; position:absolute;'>
<img src='' style='width:100px; height:2px;'> <!-- this is a spacer-->

<img src='http://home.comcast.net/~urbanjost/images/globe_west_2048.jpg' style='width: 30px; height: 75px; position:absolute;'>
<img src='' style='width:30px; height:2px;'> <!-- this is a spacer-->


</font>

</div>
  • 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-17T07:44:27+00:00Added an answer on June 17, 2026 at 7:44 am

    Wrapping the absolute positioned image in a div that was display:inline-block (… NOT display:inline) fixed the problem.

    Add an extra “!” after the “test” text to see here: http://jsfiddle.net/Z9rzx/2/

    Or add an extra “!” after the “test” text in the source code below to see the image go to the next line:

    <!--The second and fourth images are just spacers so that the next text, or image, or whatever will appear after the absolutely positions image instead of behind it... I could have used an in-line div or a span or anything...-->
    
    
    <div style="font: 30px; border:1px solid black; width: 350px; height:350px; word-wrap: break-word;">
    
    <font face='helvetica'>
    
    Test test test test test test test test test test test test test test test test!!!!!!!!
    
    <div style="width:100px; display:inline-block;">
      <img src='http://home.comcast.net/~urbanjost/images/globe_west_2048.jpg' style='width: 100px; position:absolute;'>
      <img src='' style='width: 100px; height:2px;'>
    </div>
    
    <div style="width:100px; display:inline-block;">
      <img src='http://home.comcast.net/~urbanjost/images/globe_west_2048.jpg' style='width: 100px; position:absolute;'>
      <img src='' style='width: 100px; height:2px;'>
    </div>
    
    test tast test test test test test test test test test test
    
    
    </font>
    
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem that always occurs when I'm using display: inline-block to display
One thing I have noticed on some sites is that they use one BIIIIIIIG
I have this jquery issue that seems to only break when using background image
I have a CSS/HTML list that is using an image as the background and
I have a simple HTML/CSS list that is displayed inline. I am using a
I have a problem using a small div that should hover over pics that
I have got some markup that looks like this: <div class=button> <span class=image></span> <input
I'm using Fancybox to display inline content (a div with an image linked to
I have an inline audio file to be played in android using html5. I
I have an inline TVF that accept a primary key of a table and

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.