fantomel Posted August 19, 2010 Share Posted August 19, 2010 Hello i`m trying to create a link for an image but seems i`m not getting anywhere can someone please help me? i got this code and i can't manage getting the desired result. thank you in advance. <div class="LoginRight"> <div class="IntraInCont"> <div class="Usita"></div> <div class="UsitaLink"> <a href="intra_in_cont.html" alt="Intra in Contul Tau">Intra in contul tau</a> </div> </div> <div class="Inregistrare"> <a href="inregistrare.html" alt="Inregistrare">Inregistrare</a> </div> </div> CSS: .LoginRight .IntraInCont { width: 200px; height: 100px; display: inline; position: absolute; top: 25px; } .LoginRight .IntraInCont .Usita { background: url(images/login_06.jpg) right top no-repeat; width: 18px; height: 16px; float: left; padding-left: 5px; margin-top: 2px; } .LoginRight .IntraInCont .UsitaLink { background-image:url(images/login_07.jpg); text-indent: -9999px; overflow: hidden; margin-top: 2px; margin-left: 23px; width: 104px; height: 16px; } .LoginRight .Inregistrare { background-image: url(images/login_03.jpg); width: 127px; height: 36px; float: right; margin-top: 20px; text-indent: -9999px; display: block; } Link to comment https://forums.phpfreaks.com/topic/211138-img-link/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.