FREE tutorial,solution,RSS Feeds on Operating Systems, Programming, Web Development, Applications, Databases, Networking, Hardware, Security, SEO Free Expertsforge Membership
Join us as Moderator
Submit Article to Expertsforge.com Submit Article My Expertsforge
 
RSS Feeds, Help Help RSS Feeds
bannertop
 

CSS Tutorial: Create Box style links with mouseover effect using CSS

jawahar
11/13/2007 11:01:29 AM, Views: 6271
The following CSS can be used to display the links in beautiful square blocks with a mouseover effect.

Just copy and paste the below code in a notepad or your favourite editor and save it as .html file and view it with a browser. You can take the styles(within the <style></style> tag) and insert into the head section of your web page or your .css file. The content inside the <body></body> is important, you must have the similar format in your web page.

You can play with the styles to customize it to match your requirement.

<html>
<head>
<title>CSS used in Pagination</title>
<style>
#pagin a
{
   font-family:Tahoma;
   font-size:11px;   
   display:block;
   float:left;
   cursor:pointer;
   color:#00c;
   text-decoration:none;
   display:inline-block;
   border:1px solid #ccc;
   padding:.3em .7em;
   margin:0 .38em 0 0;
   text-align:center
}
#pagin a:hover
{
   background:#f0f7e8;
   border:1px solid #83bc46
}
#pagin a.sel
{
   color:#333;
   font-weight:normal;
   background:#f0f7e8;
   cursor: default;
   border:1px solid #83bc46
}
</style>
</head>
<body>
<div id="pagin">
<a class="sel">1</a><a href="/a.asp">2</a>
<a href="/b.asp">3</a>
</div>
</body>
</html>
Next Steps:
Add this Tutorial to:
Blink Blink del.icio.ous Del.icio.us Digg Digg
Fark Fark Furl Furl Google Google
Reddit Reddit Simpy Simpy Spurl Spurl
Technorati Technorati Windows Live Win Live Yahoo Yahoo
Rate Me!
Avg Visitor Rating: Average Visitor Rating is 3.5 out of 5
Number of Ratings : 23 Votes
Rate:
Send Private MessageSend Message
Signup / Login To View the Solution or Provide Comments
Post Comment/Solution
Comment:*
        (Link Rules) 
  Use : [bold] for <b>; [/bold] for </b>; [italic] for <i>; [/italic] for </i>; [code] & [/code] for code
 
Categories
Options
CSS RSS Feed
Most Popular Tutorial
Most Popular Solution
No Records!
Top Rated
Top Rankers
Overall
1. jawahar (150)
Yearly -2008
No Rankings!
Expertsforge Sponsors
bnrtop