Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Use a DIV as a link



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Script-archive
View previous topic :: View next topic  
Author Message
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3590
Location: Sweden

PostPosted: Tue Nov 08, 2005 12:50 pm    Post subject: Use a DIV as a link Reply with quote

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>
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Script-archive All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap