I need to position three buttons using css. I am currently using margin-left: 20% for example. However when I change the browser window size the buttons move from their original location.
This is the link to my site: http://www.iamjoetaylor.co.uk
The other elements all stay in the right place, what do I need to do?
Thanks
“position: absolute” element’s coordinates and margins are computed from the closest parent element that had position absolute or relative. If there is no such element, then they are computed from the body element.
If you want to position buttons relatively to #wrapper element, then you need to set #wrapper’s position to relative.