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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:04:42+00:00 2026-06-16T05:04:42+00:00

I am unsure on how to fix this.. http://jsfiddle.net/PaDvr/ I’d like the image to

  • 0

I am unsure on how to fix this..

http://jsfiddle.net/PaDvr/

I’d like the image to be place before the text, not on top of it.

the html:

<div id="photo">
<img style="-webkit-user-select: none" src="http://cdn.androidpolice.com/wp-content/themes/ap1/images/android1.png">
</div>
<div id="text" class="media-body">
    lorem ipsum bla blah...
    </div>​

the css:

#photo{
    border: 1px solid black;
    max-width: 100px;
    max-height: 200px;
    min-width: 266px;
    min-height: 286px;
    position: relative;
    left: 32%;
    top: 23px;
}​

what causes the image to be on top of the text?

  • 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-16T05:04:44+00:00Added an answer on June 16, 2026 at 5:04 am

    There are two problems here. The first is that your max and min width and height settings. The max height of the div should be at least as tall as the image, and taller than the min-height. See it here

    #photo {
      ...
      max-height: 404px;
    } 
    

    The second is that your relative positioning removes it from the regular document flow. The nature of relative positioning is such that moving it down 23px moves it 23px over whatever happens to be beneath it. One way to offset this would be adding a margin-bottom to the image that is equal to your relative offset. View on JSFiddle

    #photo {
      position: relative;
      left: 32%;
      top: 23px;
      margin-bottom: 23px;
    } 
    

    Though if you’re just trying to move the image down and over, I’d just use margins instead of relative positioning. View on JSFiddle

    #photo{
      ...
      margin-left: 32%;
      margin-top: 23px;
    }​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am unsure why this code will not work. When I click a button
Currently getting an undefined method and I am unsure how to fix this issue,
Unsure how to get this string to work correctly. Keeps making my page blank.
I'm a little unsure of how to ask this question, so I'll start as
Im unsure about this. Would having PHP ( or I guess any template language
I'm really unsure about how to handle this. What I think I need is
A little unsure of how to do this. I need to display a list
I am trying to check if a file is an image before I upload
Unsure if this should be on here or serverfault so apologies if I'm wrong.
I'm Not too sure on what this error is, from looking around, it must

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.