I just wanna center a div!
I just wanna center a div!
Out of context: Reply #36
- Started
- Last post
- 39 Responses
- ETM0
I am too lazy to read this all again, so if already mentioned I apologize, but just set your line height to the same value as your div height (or play with it a bit in that general range)... centered vertically. Horizontally is easy and mentioned, margin: auto; and as a fail safe, text-align:center;