It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming HTML Forum Script-archive

Use a DIV as a link

Share your completed scripts.

Use a DIV as a link

Postby webmaster on Tue Nov 08, 2005 12:50 pm

To minimize the code and loading time on your site, you can use a DIV intead of a button. Here's an example.

Add this so your CSS:
Code: Select all
.divlink {
   cursor:pointer;
   width:200px;
   height:20px;
   background-color: #EFEFEF;
   border: 1px solid #000000;
   padding: 5px;
   text-align: center;
}


And this in your HTML:
Code: Select all
<a href="http://www.devppl.com">
   <div class="divlink">
      Visit DEVPPL
   </div>
</a>
User avatar
webmaster
Site Admin
 
Posts: 2557
Joined: Tue Aug 17, 2004 2:07 pm
Location: Sweden

Return to Script-archive

Who is online

Users browsing this forum: No registered users and 0 guests