![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, i have a <div id="main"> container that i want to be centered on the browser-window. so i gave it margin:0px auto; everything fine. now i want a second container positioned absolute in the <div id="main">, not in the browser-window. not possible, because <div id="main"> has no position:absolute;. if i give <div id="main"> the position:absolute; , it is not longer centered in the browser-window. but it should be centered also if someone resizes the window. Any workaround for that? |
#3
| |||
| |||
|
|
Hello, i have a <div id="main"> container that i want to be centered on the browser-window. so i gave it margin:0px auto; everything fine. now i want a second container positioned absolute in the <div id="main">, not in the browser-window. not possible, because <div id="main"> has no position:absolute;. if i give <div id="main"> the position:absolute; , it is not longer centered in the browser-window. but it should be centered also if someone resizes the window. Any workaround for that? |
![]() |
| Thread Tools | |
| Display Modes | |
| |