Dynadot โ€” .com Registration $8.99

[Resolved] div layer and textlink help needed

Spaceship Spaceship
Watch

snike

Established Member
Impact
3
div layer and textlink help needed

I have this code in my site:
HTML:
<div id="subNav"  style="margin-top:-18px; margin-left: 20px;">
<a href="http://fdjklasjfak.com">lalala</a>
</div>

and the link is not clickable at all.
when i take out style="margin-top:-18px; margin-left: 20px;" the link becomes clickable but not positioned correctly. what is wrong? thanks.

edit: if you test the code it work but i dunno why it doesn't in my layout. btw javascript and innerHTML is used to call the links.

Code:
function displayMenu(currentMenu) {
var thisMenu = document.getElementById(currentMenu).innerHTML;
document.getElementById('subNav').innerHTML = thisMenu;
}
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
Try replacing:
Code:
 <div id="subNav" style="margin-top:-18px; margin-left: 20px;"> <a href="http://fdjklasjfak.com">lalala</a> </div>
with:
Code:
<div id="subNav" style="position: relative top:-18px; left: 20px;"> <a href="http://fdjklasjfak.com">lalala</a> </div>
 
0
•••
Thanks but it didn't work. The text is still not positioned correctly.
 
0
•••
I suggest providing a link to the page which you're talking about. That way, it will be easier for someone to help you.
 
0
•••
0
•••
0
•••
oh yeah. I'll let you know when i figured it out. sorry
 
0
•••
0
•••
I'm sorry. I figured it out. Thank you everyone.
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back