Please check this page: http://badadesigns.com/work438/
Here at the top of the page there are social media icons but they are not aligned to the right side of the page. When I am resizing the browser page then the alignment is changing.
I am really not sure what code is being used, but I think this is it:
#logincont {
width:330px;
float:left;
margin-left:1145px;
}
Can anyone please help me with the alignment so that it is fixed and set along the right side border of the page?
div
#logincont
is set tofloat:left
and has a hugemargin-left
which is unnecessary.It should be
float: right
without margin, like thisUpdate : If I understand correctly, you want the social media icons to be aligned on the right but not further than the content of the site.
Try this :
width is set to the width of the
#content
div, the content of#logincont
is aligned right and#logincont
itself is centered on the page withmargin: 0 auto
If you are trying to get all of the content to stay within view try fixing this:
You could try this:
Based on your requirements and the type of element you might need to add more properties.
Not sure what you’re looking for specifically, but try this: