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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:34:37+00:00 2026-06-11T09:34:37+00:00

I am trying to make something which resembles a pizza maker. Essentially, all I’m

  • 0

I am trying to make something which resembles a pizza maker.

Essentially, all I’m trying to do is add a translucent image on-top of another image.

I thought I could achieve this via CSS and the z-index property but I am having some issues.

The picture’s are overlaying just fine, but I can not get them to be positioned in the center of the table cell for the life of me.

Here is what I have come up with. But the positioning moves the pictures out of the table cell.

 <table style="width:400px" border="1">
        <tr>
                <td align="center">
                 <div style="position: fixed; z-index:100">   
                    <asp:ImageButton ID="imgbtn_pizzabase" ImageAlign="Middle" ImageUrl="~/SiteImages/pizza_test.png" runat="server" />
                </div>
                <div style="position: fixed; z-index:5000"> 
                    <asp:ImageButton ID="ImageButton1"  ImageAlign="Middle" ImageUrl="~/SiteImages/findme.png" runat="server" />
                </div> 

               </td>
        </tr>
.
.

.

  • 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-11T09:34:38+00:00Added an answer on June 11, 2026 at 9:34 am

    You don’t need z-index. Use absolute positioning. The element that is later in the DOM, is going to be on top.
    Also, don’t use tables to position elements. That’s just bad practice. Tables are for tabular data, which a pizza isn’t (I think).

    So in this fiddle, I got a ‘plate’ which is used as a container. On (in) the plate are divs for each layer. I’ve used a background color and an opacity, but you could use background images (or just img tags) just as well.

    Note that the plate has position: relative. A position is needed to force the layers to be absolutely positioned within the plate. That way, you can easily move the plate around and the pizza will move with it. If you need to, you can put the plate in a table cell, so you can show a table of pizza’s. The css in the fiddle will automatically fix that for you.
    You can horizontally center the plate in its parent by giving it a margin: 0 auto, that way it is centered in the parent cell.

    http://jsfiddle.net/GolezTrol/nyzrT/1/

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

Sidebar

Related Questions

I am trying to make something that will enable all controls if a SubString
Hi, i'm trying to make a application in QT which calculates something and output
I'm trying to make something where doing a pinch rotates an image, using the
I am trying to make something like a Java style Enum, which I'm calling
Im trying to make something like this http://demos.99points.info/facebook_wallpost_system/ which is a comment system. I
Im trying to make something similar to twitpic.com's email submission feature. Their address schema
Ok I am trying to make something to ask you random multiplication questions. Now
I'm trying to make something pretty simple, but I simply suck at regular expressions.
I'm currently in a .NET4 Windows Forms Application. I'm trying to make something like
I am trying to build a Retirement Calculator as a chance to make something

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.