HI,
Is it possible to centre align a div with
It seems the auto is not applied, i'm assuming due to the absolute, but using absolute is the only way to float a hidden div over the top of existing content to create an on page popup form.
Well it's the only way I know, any one got a better way or how I can centre align the div.
Thanks.
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
Is it possible to centre align a div with
Code:
#mydiv {
position:absolute;
margin:0 auto;
display:none;
width:600px;
}
It seems the auto is not applied, i'm assuming due to the absolute, but using absolute is the only way to float a hidden div over the top of existing content to create an on page popup form.
Well it's the only way I know, any one got a better way or how I can centre align the div.
Thanks.
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!