I am using placehold.it to produce a square (When on the site I need it for the colors). See:
I would also like to have some text on each box. When I use the provided text input it becomes small and unreadable. So I attempted to put my own text on this image.
I tried following: How to position text over an image in css
Its CSS:
#container
{
height:400px;
width:400px;
position:relative;
}
#image
{
position:absolute;
left:0;
top:0;
}
#text
{
z-index:100;
position:absolute;
color:white;
font-size:24px;
font-weight:bold;
left:150px;
top:350px;
}
But If I put the checkbox in the container it stops working properly (it turns back into a normal checkbox).
If you could show me how to put text on each square/or what I am missing it would be great.