|
|
#1 (permalink) |
|
New Member
![]() Join Date: Jun 2007
Posts: 1
|
I have recently seen the light and have switched from tables to DIV tags for positioning elements. I am having one problem: When I used tables, I could easily center the table in the browser (when browser is re-sized), but am unable to figure out how to center the elements within DIV tags when viewing in a browser. Any assistance would be greatly appreciated.
|
|
|
|
|
|
#3 (permalink) |
|
Bronze Member
![]() |
ya, this sometimes doesnt work, so what you'll want to do is this
<div style="width:___px; position:relative; margin:0px auto;> </div> that makes it so the div is centered no matter what browser your using. (you'll need to enter your width there)
__________________
[SIGPIC][/SIGPIC] |
|
|
|
|
|
#4 (permalink) |
|
Bronze Member
![]() |
wait ya, haha, i didnt read the post correctly, lol, Suz is right just a basic text-align is necessary
__________________
[SIGPIC][/SIGPIC] |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|