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

  • Home
  • SEARCH
  • 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 8393689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:51:55+00:00 2026-06-09T19:51:55+00:00

Im just getting in to web dev (mainly an iOS, Java, c# programmer). I

  • 0

Im just getting in to web dev (mainly an iOS, Java, c# programmer). I have a simple problem bt it is anoying.

<div id="banner">
    <img src="Styles/Banner.jpg" alt="banner" />
   <div id="bannerText">
    User ID
    </div>
</div>

I have a banner which is a simple image (.jpg) and I want to overlay some text. The problem is positioning the text over the banner. I dont realy want to use apsolute positioning. I would like to have both the image and the text centered. The problem is I ony seem to be able to overlap the text over the image when using apsolute positioning, which will be effected if the window is resised. Whats the best/simplist way to do this.


Just Like to thank all of you for being so helpful. GC

  • 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-09T19:51:57+00:00Added an answer on June 9, 2026 at 7:51 pm

    Live demo

    Hey now i think you should want to this

    HTML

    <div id="banner">
        <img src="http://rapidgator.net/images/pict-download.jpg" alt="banner" />
       <div id="bannerText">
        User ID
        </div>
    </div>
    

    Css

    #banner{
    position:relative;
      background:green;
      padding:10px;
    }
    img{
    vertical-align:top;
    }
    #bannerText{
    position:absolute;
      top:20px;
      left:10px;
      background:red;
    }
    

    Demo

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

Sidebar

Related Questions

I am just getting in to the more intricate parts of web development. This
What are your tricks on getting the caching part of web application just right?
Just getting into the NoSQL stuff so forgive me if this is a simple
A lot of newer sites have neat-o sign up forms. I do c++/java dev,
Just getting into PHP web development. I've got an HTML form where a user
I just configured my web application to use IIS rather than ASP.NET dev server
Just getting into the PhoneGap development on the Mac. I have a .NET service
I'm just getting started with Visual Studio (2010 Beta) and have some basic questions
I just wrote a new web part and now I am getting this error
I'm just getting started with the Salesforce Web Services API and I'm surprised that

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.