Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

[Resolved] div layer and textlink help needed

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
Thanks but it didn't work. The text is still not positioned correctly.
 
0
Close
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
Close
0
Close
0
Close
oh yeah. I'll let you know when i figured it out. sorry
 
0
Close
0
Close
I'm sorry. I figured it out. Thank you everyone.
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back