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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:29:16+00:00 2026-06-03T11:29:16+00:00

I have a div with text inside <p> tags, and a PNG image. I

  • 0

I have a div with text inside <p> tags, and a PNG image.
I want the image to be to the left of the div with the text overlapping. I have tried using the z-index but had little success.

HTML code:

<div class="caption">
    <img src="images/stain.png" id="stain">
    <p>The BA New Media course which I am studying is run by the Institute of Comminications Studies (ICS) at The University of Leeds. The Institute of Communications Studies is an internationally renowned centre for teaching and research in communications, media and culture. Their research is multidisciplinary and has particular strengths in the areas of cultural industries, international communication and political communication. <a href="http://ics.leeds.ac.uk/about/" target="_blank"><strong class="more">Read More...</strong></a>
</div> 

CSS code:

.caption {
    width:80%;
    display:block;
    margin:auto;
    margin-top:5%;
    z-index:5;
}

#stain {
    z-index:1;
}
  • 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-03T11:29:19+00:00Added an answer on June 3, 2026 at 11:29 am

    if i understand your requirements, you could make your image the <div> backgorund image.. in css like this:

    .caption {
        background-image: url(images/stain.png);
        background-repeat:no-repeat;
        width:80%;
        display:block;
        margin:auto;
        margin-top:5%;
    }
    

    and remove the <img> tag from the <div>

    Like the example in my comment.

    [edit]
    Or if you need more control, use position: relative css etc:

    css:

        .caption {
            width:80%;
            display:block;
            margin:auto;
            margin-top:5%;
        }
    
        img.floaty {
          display:inline;
             float: left;
        }
    
        .blurb {
           position: relative;
            top:20px;
            left: -50px;
        }
    

    html:

    <div class="caption">
        <img class="floaty" src="images/stain.png" id="stain" />
        <p class="blurb">The BA New Media course which I am studying is run by the Institute of Comminications Studies (ICS) at The University of Leeds. The Institute of Communications Studies is an internationally renowned centre for teaching and research in communications, media and culture. Their research is multidisciplinary and has particular strengths in the areas of cultural industries, international communication and political communication. <a href="http://ics.leeds.ac.uk/about/" target="_blank"><strong class="more">Read More...</strong></a></p>
    </div>     
    

    For example.

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

Sidebar

Related Questions

I have old text inside a div. I want that text to fly out
I have a div with a width of 200px. There is text inside that
i have a click event for $('#blah div'). div has text inside of it
I have a div which has some text, but according to different situations this
I have a div, containing text and a few links. I want to trigger
I have a div on the left hand side, and text on the right
I have a few <li> tags inside a <div> like this: <li> <a href=link1>
I have a div, inside which there is a some text and a number
If I have some javascript/jQuery acting on a particular div inside tags (for an
I have a div , inside different <h> tags. I would like to apply

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.