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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:27:23+00:00 2026-05-30T10:27:23+00:00

OK, so this may be getting too complicated for CSS/HTML to handle, but I

  • 0

OK, so this may be getting too complicated for CSS/HTML to handle, but I may as well ask.

I have some dynamically placed images using the code from here.
What I would like to add to those images, is a text overlay with a transparent background.
Something like this.

I think the issue is to do with the floated images. Also possibly the fact that my images are also links. I’ve tried a lot of variations and guides, but just can’t seem to figure out why it’s not working. I don’t care about the images having opacity, I don’t think that’s affecting things. Current code gets the text next to the image. Example can be seen here.

HTML;

<div id="internal">
    <div id="row2">
        <a href="studies.php"><img src="images/gallery/studies/STUDY1.jpg" width="200" height="200" alt="Studies Gallery"/></a><h2><span>Some text.</span></h2>
        <div id="movers-row2">
            <div><a href="mediaunits.php"><img src="images/gallery/mediaunits/media1.JPG" width="200" height="200" alt="Media Units Gallery"/></a></div>
            <div><a href="freestandingfurniture.php"><img src="images/gallery/freestandingfurniture/furniture1.JPG" width="200" height="200" alt="Furniture Gallery"/></a></div>
        </div> <!-- end #movers -->
    </div> <!-- end #row -->
    <div style="clear: both;"></div>
</div> <!-- end #internal -->

CSS;

#internal
{
    width: 958px;
    height: auto;
    background-color: white;
    border: 1px solid #ccc;
}

#row2 {
    min-width: 480px;
    display: block;
    border: 0px;
}

#row2 a img {
    position: relative;
    background-color: black;
    opacity: 0.7; /* transparent */
    filter:alpha(opacity=70); /* IE transparent */
}

#row2 h2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    float: left;
}

#row2 span {
    color: white;
    font: bold 24px Helvetica;
    letter-spacing: -1px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

#movers-row2 {
    margin: -204px 0 0 200px;
    height: auto;
    overflow: hidden;
}

#movers-row2 div {
    width: 49.9%;
    float: left;
}

#movers-row2 div img {
    float: right;
} 
  • 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-05-30T10:27:24+00:00Added an answer on May 30, 2026 at 10:27 am

    Some people over at css-tricks.com helped me out with the solution;

    Solution

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

Sidebar

Related Questions

This may seem like a simple question but i am getting an error when
This may be a doozy, but does anyone have an idea how to: Pass
Coming from a C background, I may be getting too anal about this and
This may seem like a weird question but thought I would ask here before
I have researched this topic, but am afraid I have too little experience with
new Date(05-MAY-09 03.55.50) is any thing wrong with this ? i am getting illegalArgumentException
This may be a no-brainer for the WPF cognoscenti, but I'd like to know
This may seem like a daft question, but i was wondering about how to
This may be simple one, but 5 mins of Googling didn't give me the
This may be a simple fix - but I'm trying to sum together all

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.