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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:06:25+00:00 2026-05-31T23:06:25+00:00

How do I put centered textboxes inside each of the colored boxes in the

  • 0

How do I put centered textboxes inside each of the colored boxes in the image below?

Update: As requested, I’m adding my embarrassing attempt. I know it’s bad, but I don’t do design so I am kind of lost.

p.s. thanks for the down votes!

http://jsfiddle.net/Zrhe3/

table{width: 585px; height: 585px; background-image: url('https://i.stack.imgur.com/uknk9.png');} 
input{background-color: transparent; width: 100%; border-style:none; font-size: 32px;}

<table>
    <tr>
        <td></td>
        <td valign="bottom" align="center"><input type="number" id="number" value="1" /></td>
        <td></td>
    </tr>
    <tr>
        <td align="right"><input type="number" id="number"  value="2" /></td>
        <td></td>
        <td align="left"><input type="number" id="number" value="3" /></td>
    </tr>
    <tr>
        <td></td>
        <td valign="top" align="center"><input type="number" id="number" value="4" /></td>
        <td></td>
    </tr>
</table>​

hazwoper sign

  • 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-31T23:06:26+00:00Added an answer on May 31, 2026 at 11:06 pm

    You can find a solution over here http://jsfiddle.net/ZC2bd/46/ but I’m sure you haven’t looked for enough 😉 google is your friend

    HTML:

    <div id="background">
      <input id="top" type="text" />
      <input id="left" type="text" />
      <input id="right" type="text" />
      <input id="bottom" type="text" />
    </div>
    

    CSS:

    div#background{
        display: block;
        width: 597px;
        height: 597px;
        background-image: url('https://i.stack.imgur.com/uknk9.png');
    }
    #top{
        width: 150px;
        height: 25px;
        position: absolute;
        margin: 135px 0 0 224px;
    }
    #left{
        width: 150px;
        height: 25px;
        position: absolute;
        margin: 290px 0 0 70px;
    }
    #right{
        width: 150px;
        height: 25px;
        position: absolute;
        margin: 290px 0 0 380px;
    }
    #bottom{
        width: 150px;
        height: 25px;
        position: absolute;
        margin: 435px 0 0 230px;
    }​
    

    Concerning the HTML part it’s pretty explicit, there is one container which contains four inputs.

    In the CSS file, I’ve set your image in background of my container with fixed width and height.
    Then I’ve created four id’s for the inputs all with the property position set to absolute.

    The absolute attribute allows you to set the position of an element taking as reference the parent element, here the <div id="background">.
    So since you know its size you can position your elements with the margin prooperty.

    Hope it helps.

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

Sidebar

Related Questions

i wanted to know how to put two div right next each other centered
I want to put an centered image and a bottom centered text in a
We put common prefixes on related tables to assure they display next to each
Is it possible to put cursor vertically centered in textarea or editable div .
I want to put a background (width = 1250px) centered on page, but the
I trying to put the text of a JLabel under its icon (centered) at
I want to put a smaller circle inside an other bigger.(Not exactly circles but
I'm trying to put some content inside my TabItem, but I can't add a
Does Facebook in its gallery put image width and height in database? Using JavaScript,
I was able to put together a centered nav (as you can see in

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.