html question
html question
Out of context: Reply #7
- Started
- Last post
- 16 Responses
- lukus_W0
if your container div is fixed width, use the following method:
eg. if you had a div which is 300px x 200px ...
1. (position your div....) 'top: 50%; left: 50%'
2. (pull the div backwards & upwards, so that it's centered) 'margin-top: -100px; margin-left: -150px'- you can use the same technique with %; just specify yr width and margins in % instead of pxlukus_W