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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:20:08+00:00 2026-06-05T21:20:08+00:00

I have a white page with only a 500×250 textbox and an image. The

  • 0

I have a white page with only a 500×250 textbox and an image. The page is fluid.

I’m trying to center the textbox at the center of a page, while having a picture fixed to the bottom left of the screen. I partially achieve this with the following css:

.bottom-right { /* used to fix the image to the bottom of the screen */
    bottom: 0;
    right: 0;
    position: fixed;
}

#content {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50%;
    width: 500px;
    height: 250px;
    position: relative;
}

When I vertically resize the window, the image covers the textbox. I would instead like the text to go up.

  • 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-05T21:20:09+00:00Added an answer on June 5, 2026 at 9:20 pm

    If I’ve understood your question correctly, you need to have the “textbox” always over the image that’s fixed on the bottom-right corner.

    See this working Fiddle Example!

    CSS

    #content {
        width: 500px;
        height: 250px;
        position: absolute;          /* this is the key */
        z-index: 1;                  /* this is the key */
        left: 50%;
        top: 50%;
        margin: -125px 0 0 -250px;
    } 
    

    • CSS position:absolute;

      What this does is to place the element #content outside the normal document flow, thus not being affected by other elements or having impact on the layout of later siblings.

    • CSS z-index:1;

      What this does is to move the element up on the document stack, thus placing it over others with a lower value (the default stack level is 0).

    See the CSS absolute and fixed positioning – W3C Wiki for further details.

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

Sidebar

Related Questions

For while I have been trying to set the Page Scaling of Excel page
How can we change body ID while page loading? I have just developed an
Please have a look at this demo page that I cooked up a while
I have a script that takes a while. I'd like to display a page
I have a page with a script that does only 2 things: change the
I have an area on a white html page that I would like to
The current mockup UI only works (as expected) in Firefox. I have a white
I have a simple image upload script that uses SimpleImage.php (http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/) to resize and
I have to write integration test case for my one feature listing page and
For example, to access a page in my search folder, I have to write:

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.