webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3589 Location: Sweden
|
Posted: Tue Nov 08, 2005 12:50 pm Post subject: Use a DIV as a link |
|
|
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: |
.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: |
<a href="http://www.devppl.com">
<div class="divlink">
Visit DEVPPL
</div>
</a> |
|
|