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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:35:56+00:00 2026-05-12T05:35:56+00:00

I am creating a web page, where I have an image that I want

  • 0

I am creating a web page, where I have an image that I want to place in the center. On the top of that image I want to have input boxes, labels, and a submit button.

I am trying to use this CSS

img.center
{
    z-index:-1;
}

but this does not work. When I change the code to

img.center
{
    position:absolute;
    left:0px;
    top:0px;
    z-index:-1;
}

it makes the image go behind. But then as I used left:0px and top:0px … it puts the image at location 0,0. But I want the image to stay in the center.

To keep the image in the center, I have added this: <div align="center">.

Is there any way, I can keep the image in the center and make it go behind the boxes, labes, and buttons too?

My HTML page looks like this (I tried to have a background image for my div tag, but no image is appearing on top of it):

<html>
<head>
<title>Question of the Week</title>
<style type="text/css">
    body
    {
        background-image:url('images/background.jpg');
        background-repeat:repeat-x;
    }

    .container
    {
    background-image:url('images/center.jpg');
    background-repeat:no-repeat;
    }
    td.cntr {padding-top:50px;}
</style>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td><div align="left"><img src="images/logo.jpg"></div></td>
                    <td></td>
                    <td><div align="right"><img src="images/right_logo.jpg"></div></td></tr>
            </table>
        </tr>
        <tr>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="cntr">
                        <div id="container">
                            <input name="box" type="textbox" />
                            <input name="box" type="textbox" />
                            <input name="submit" type="submit" />
                        </div>
                    </td>
                </tr>
            </table>
        </tr>
    </table>
</body>
</html>
  • 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-12T05:35:57+00:00Added an answer on May 12, 2026 at 5:35 am

    Well, put your image in the background of your website/container and put whatever you want on top of that.

    Your container defined in HTML:

    <div id="container">
       <input name="box" type="textbox" />
       <input name="box" type="textbox" />
       <input name="submit" type="submit" />
    </div>
    

    Your CSS would look like this:

    #container {
        background-image:url(yourimage.jpg);
        background-position:center;
        width:700px;
        height:400px;
    }
    

    For this to work though, you must have height and width specified to certain values (i.e. no percentages). I could help you more specifically if you wanted, but I’d need more info.

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

Sidebar

Related Questions

I am creating a web page where I have an input text field in
I have a URLConnection, that access a web page. URL url = new URL(https://domain);
I have a web application that creates directories. The application works fine when creating
I've created a web page that lets you input some information and then draws
I am creating a web page which will have a Select element with a
I'm creating a web page that user can send pm , receive it,add contact,response
I have a C# ASP webpage that is creating a KML document, and it's
I am creating web page using asp.net. Is it possible to remove/hide the browsers
I'm creating a web page, and I can't (with html code) add a draw
When creating a new item - Web Form using Master Page I get a

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.