![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
If you can set width and height something like this should work: position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: 1.2em; width: 15em; text-align: center; See alsohttp://www.student.oulu.fi/~laurirai/www/css/middle/ |


#12
| |||
| |||
|
|
On Oct 29, 5:41 am, Ben C <spams... (AT) spam (DOT) eggs> wrote: If you can set width and height something like this should work: position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: 1.2em; width: 15em; text-align: center; See alsohttp://www.student.oulu.fi/~laurirai/www/css/middle/ Thanks Ben. Actually, text will be "Loading..." ![]() I tried your suggestion, it's working fine in Opera but not IE7 ![]() http://auriance.com/docs/tmp/xhtml.div.html I read the article (pretty good). The problem in my case is that height is variable... |
#13
| |||
| |||
|
|
If it's just one line-- "Loading..."-- then I was thinking you could set the height to about 1.2em. That should be about the right size. Otherwise you need a table, and if you want it to work in IE, that means a <table>. |

![]() |
| Thread Tools | |
| Display Modes | |
| |