...

View Full Version : Set a number in the middle of the box?



inVINCEable
07-08-2007, 12:40 AM
Sorry, I only know of the text-align:center property which is not working, I have a number 40 that I want right in the middle, equal padding on all sides, how can I do this? Thank you.

Jutlander
07-08-2007, 12:53 AM
Some code would be nice to see.

I presume that it is an image with the number 40?



img.center {
display: block;
margin: 0 auto;
}




<img class="center" src="path.ext">

inVINCEable
07-08-2007, 02:29 AM
Some code would be nice to see.

I presume that it is an image with the number 40?



img.center {
display: block;
margin: 0 auto;
}




<img class="center" src="path.ext">




Eh, it's not an image. Nevertheless I will try is. It's an number loaded via ajax.

Jutlander
07-08-2007, 08:49 AM
If it's a number then I don't see why text-align: center; shouldn't work.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum