Avatar of Camillia
CamilliaFlag for United States of America asked on

Text on top of an image

I have this image

<img src="images/slideshow/slide-2.png"  width="948" height="341" alt="Slide 2" />

Open in new window


I want to it in a div with a text on top of it. Is this doable? I tried this but didnt show up

<div style="padding:100px 250px 15px 250px; background: url (images/slideshow/slide-2.png) "> 
                <h2>Creating a community, one referral at a time</h2> 
                <img src="images/hipaa-logo.jpg"  alt="Slide 2" />
                </div>

Open in new window

ASP.NET

Avatar of undefined
Last Comment
Camillia

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
activematx

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Camillia

I see the image but not the text. I wonder if I need to play around with the CSS. I do see it in Chrome's "console" . It renders like this

<div id="container" style="position: absolute; top: 0px; left: -400px; display: none; z-index: 3; opacity: 1; width: 400px; height: 400px;">
                    <img id="image" src="images/slideshow/slide-2.png" alt="">
                 <p id="text">
                 Creating a community, one referral at a time
               </p>
              </div>

Open in new window

ASKER
Camillia

Found out what it is. It's one of the CSS tags. The 'text" one. I'll play around with it.
Thanks
activematx

Try changing the text color to black.  Is your image white?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER
Camillia

yes, that was one of the issues. It's working now. Thanks