How to resize hyperlink control locations on a web page using Java Script and CSS ?
Posted on 2013-05-12
I have some web pages with hyperlinks at the top of the web pages in my website, which serve as the website navigation. On each page in my Java Script, I customize the location of the hyperlinks using Java script and CSS. Example :
document.getElementById('CredentialsLink').style.marginLeft = "885px";
document.getElementById('CredentialsLink').style.marginRight = "67px";
document.getElementById('RenterLink').style.marginRight = "75px";
The problem is that the links will align differently if the browser is even slightly resized (Ctrl ++, or CTRL -- are examples)
Also the locations will be slightly different in different web browsers. How can I make it so that my links are located in a standard location on the page, even if the page is resized?