Skip to main content
GameDev.net gamedev.net
🔒 Locked

Noobish aspx question

Started by _Madman_ Aug 9, 2006 at 3:29 AM 1 replies 300+ views
Original Post
_Madman_
_Madman_
OK this is really funny, but I cant position login box in aspx page in center or the table cell, I set the table alignment to center and midle, but it seems to affect only text. Gogle is totaly not friendly for keywords login box, center, layout and such, can anyone please tell me a simple way to position aspx elements without adding unnecesary layers and such. Thank you!
______Madman
MrEvil
MrEvil
The CSS text-align property only applies to inline elements (i.e. text). To center a block box (e.g. a
) horizontally, set both its left and right margins to auto. (See the CSS2 spec section 10.3.3).

I think this should probably be in the Web Design forum... maybe.

EDIT: Another way is just to set display: inline-block on the login box (so that it is positioned as if it were a single inline box), but it's not well supported (it's a CSS 2.1 property)…
_Madman_
_Madman_
Thank you for the reply, now I just need to find how to set the margins. UI seems to allow only numerical values in pixels, percents and that like...

Sorry about wrong forum...

EDIT: Yay it worked!, Although I had to edit source manually, it seems to be impossible to set margins to auto in VS05
______Madman

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.