css - Absolute Position Element Within Centered Div -
i have div centered using auto margins. 900px wide. have login button want position above it, can't figure out how left , right stays in constant place relative div. want inside right edge of div.
first set centered div position relative
#centered-div{position: relative; width: 900px; margin: auto;}
then set login button position absolute
#login{position: absolute; left: 0; top: 50px;}
Comments
Post a Comment