We’re on vacation now. No matter what I’ve learned in these holidays, but I surely did learn how to use Twitter – gaining as much information as I can – go on reading the links that have been tweeted. In the process, once I came across a website (actually I’ve forgotten the name, apologies) where I observed the “Find Us on…” page whose simple & aesthetic design caught me by surprise.
I can’t tell you exactly how the design was implemented but I was pretty much sure that no images were used on designing the page. So, since I’m also trying out some new features of CSS3 these days, I started to implement it my way and here’s the final outcome of it.

When you hover on the text, the links transition to their specified colors with a nice fading effect. Looks simple, doesn’t it? And, it is! Take a look at the final output of the project here.
So let’s get started – iSocialized!
Here, I’ve used the “direct approach”, specifying everything on the source itself. So, the source may look bit lengthy and weirder!
First of all the markup. Just create a basic one with a few <div> & the anchor (<a>) tags to your social (or anything you wish) sites. Let’s call this as index.html:
<!DOCTYPE html>
<html>
<head>
<title>iSocialized!</title>
<link href="scripts/style.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="header">
<span id="iSoc">iSocialize</span>
</div>
<div class="networks"><hr /><br />
<a id="twitter" target="_blank" href="http://twitter.com/iChandhan/">TWITTER</a><br />
<a id="fb" target="_blank" href="http://facebook.com/chandan.v.tagadur">FACEBOOK</a>
<a id="tumblr" target="_blank" href="http://chandanv.tumblr.com">TUMBLR</a><br />
<a id="wp" target="_blank" href="http://chandanv.wordpress.com">WORDPRESS</a><br />
<a id="pt" target="_blank" href="http://fusionconfusion.posterous.com">POSTEROUS</a>
<a id="gp" target="_blank" href="https://plus.google.com/109770672342455174302">GOOGLE+</a>
<a id="flickr" target="_blank" href="http://flickr.com/photos/chandanv/">FLICKR</a><br /><br /><br /><hr />
</div>
</div class="footer">
<span id="or"><b>or else you can just</b></span> <br />
<a href="mailto:chandanv89@gmail.com" id="mail"><span id="light">SEND ME</span> MAIL</a>
</div>
</body>
</html>
I’ve used three divs, two for the titles and another for the content. And few links to my social sites.
Now, its time for some styling! First, the common styles that are common to all the elements of the document:
body{
background : url("../images/texture.png");
margin : auto 10px;
padding : 50px;
text-align : center;
font-family : 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
text-shadow : 1px 1px 1px #bbb, -1px -1px 0px #fff;
min-width : 1000px;
}
I’ve used a light pattern as the background and everything else’s just as obvious as they look. With the text-shadow property, I’ve given the “letter-press” effect for the texts. The first set of values provides a dark-grey drop-shadow and the second set of values gives a white shadow, completing the 3D effect.
What I want is a few subtle effects. I’ve used the CSS transitions to achieve just that. Here’s the styling of our links:
a{
color : #eaeaea;
margin : 1px;
padding : 1px;
text-decoration : none;
text-transform : uppercase;
transition : all 0.75s ease-out;
-moz-transition : all 0.75s ease-out;
-o-transition : all 0.75s ease-out;
-webkit-transition : all 0.75s ease-out;
-ms-transition : all 0.75s ease-out;
-webkit-mask-image : -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,.4)), color-stop(50%, rgba(0,0,0,.7)), to(rgba(0,0,0,0.8)));
-moz-mask-image : -moz-linear-gradient(top,rgba(0,0,0,0.5),rgba(90,90,90,0.7));
-o-mask-image : -o-linear-gradient(top,rgba(0,0,0,.5),rgba(90,90,90,1));
-ms-mask-image : -ms-linear-gradient(top, rgba(0,0,0,.5),rgba(90,90,90,1));
-ms-mask-image : filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */
}
a:active{
text-shadow : none !important;
-o-text-shadow : none !important;
-moz-text-shadow : none !important;
-webkit-text-shadow : none !important;
}
The mask-image property is used to add a light, transparent gradient over the text. As of now, I’ve succeeded to get this working on just the webkit-based browsers, a sad thing
The :active clause is just to make sure that when a link is being clicked, there would be no text shadows for the links.
Till now, we’ve added effects common to all the elements. Now, what we are going to do is, apply the styling to individual links, such that each link has a different hovering color.
#twitter{
font-weight : lighter;
font-size : 170px;
line-height : 170px;
}
#twitter:hover { color: #2298CB; }
#fb, #tumblr { font-weight: lighter; font-size: 70px; padding-bottom: -20px; line-height: 10px; }
#fb { font-weight: 700; }
#fb:hover { color: #3B5998; }
#tumblr:hover { color: #2C4762; }
#wp { font-weight: 900; font-size: 106px; line-height: 120px; }
#wp:hover { color: #463; }
#pt,#gp,#flickr { font-weight: 100; font-size: 46px; line-height: 18px; padding-bottom: 20px; }
#pt { font-weight: 500; }
#pt:hover { color: #FFC575; }
#gp:hover { color: #c11; }
#flickr { font-weight: 900; padding-bottom: 40px; }
#flickr:hover { color: #e38; }
We are now done with the anchor tags and their styling. Let’s spice up our two titles.
hr{ width: 60%; color: #ddd; background-color: #fff; }
#iSoc, #or{
background : url("../images/texture.png");
position : relative;
font-family : "Myriad Pro", Calibri, Helverica, Arial, Sans-Serif !important;
font-size : 22px;
color : #777;
padding : 5px 30px;
padding-top : 10px;
top : 25px;
margin : 1px auto;
border : 1px solid #ddd;
border-top : 1px solid #fefefe;
border-left : 1px solid #fefefe;
border-bottom : none;
border-radius : 30px;
box-shadow : 1px 1px #ccc;
-o-box-shadow : 1px 1px #ccc;
-moz-box-shadow : 1px 2px #ddd;
-webkit-box-shadow : 1px 1px #ccc;
text-shadow : -1px -1px 1px #fff;
-moz-text-shadow : -1px -1px 1px #fff;
-o-text-shadow : -1px -1px 1px #fff;
-webkit-text-shadow : -1px -1px 1px #fff;
}
#or{ top: -24px; font-variant: small-caps; }
#mail{
font-size : 100px;
font-weight : 900;
text-shadow : inherit;
text-transform : uppercase;
}
#light { font-weight: 100; }
#mail:hover { color: #6cb; }
And some accessories! The following code specifies how the content looks when you make the text selection.
::selection {
background : #369EF7;
background-color: #369EF7;
color : white;
text-shadow : none !important;
-o-text-shadow : none !important;
-moz-text-shadow : none !important;
-webkit-text-shadow : none !important;
}
Tada, We’re done! Here’s the final stylesheet for the project.
body{
background : url("../images/texture.png");
margin : auto 10px;
padding : 50px;
text-align : center;
font-family : "Myriad Pro", Calibri, Helvetica, Arial, sans-serif;
text-shadow : 1px 1px 1px #bbb, -1px -1px 0px #fff;
min-width : 1000px;
}
a{
color : #eaeaea;
margin : 1px;
padding : 1px;
text-decoration : none;
text-transform : uppercase;
transition : all 0.75s ease-out;
-moz-transition : all 0.75s ease-out;
-o-transition : all 0.75s ease-out;
-webkit-transition : all 0.75s ease-out;
-ms-transition : all 0.75s ease-out;
-webkit-mask-image : -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,.4)), color-stop(50%, rgba(0,0,0,.7)), to(rgba(0,0,0,0.8)));
-moz-mask-image : -moz-linear-gradient(top,rgba(0,0,0,0.5),rgba(90,90,90,0.7));
-o-mask-image : -o-linear-gradient(top,rgba(0,0,0,.5),rgba(90,90,90,1));
-ms-mask-image : -ms-linear-gradient(top, rgba(0,0,0,.5),rgba(90,90,90,1));
-ms-mask-image : filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */
}
a:active{
text-shadow : none !important;
-o-text-shadow : none !important;
-moz-text-shadow : none !important;
-webkit-text-shadow : none !important;
}
#twitter{
font-weight : lighter;
font-size : 170px;
line-height : 170px;
}
#twitter:hover { color: #2298CB; }
#fb, #tumblr { font-weight: lighter; font-size: 70px; padding-bottom: -20px; line-height: 10px; }
#fb { font-weight: 700; }
#fb:hover { color: #3B5998; }
#tumblr:hover { color: #2C4762; }
#wp { font-weight: 900; font-size: 106px; line-height: 120px; }
#wp:hover { color: #463; }
#pt,#gp,#flickr { font-weight: 100; font-size: 46px; line-height: 18px; padding-bottom: 20px; }
#pt { font-weight: 500; }
#pt:hover { color: #FFC575; }
#gp:hover { color: #c11; }
#flickr { font-weight: 900; padding-bottom: 40px; }
#flickr:hover { color: #e38; }
hr{ width: 60%; color: #ddd; background-color: #fff; }
#iSoc, #or{
background : url("../images/texture.png");
position : relative;
font-family : "Myriad Pro", Calibri, Helverica, Arial, Sans-Serif !important;
font-size : 22px;
color : #777;
padding : 5px 30px;
padding-top : 10px;
top : 25px;
margin : 1px auto;
border : 1px solid #ddd;
border-top : 1px solid #fefefe;
border-left : 1px solid #fefefe;
border-bottom : none;
border-radius : 30px;
box-shadow : 1px 1px #ccc;
-o-box-shadow : 1px 1px #ccc;
-moz-box-shadow : 1px 2px #ddd;
-webkit-box-shadow : 1px 1px #ccc;
text-shadow : -1px -1px 1px #fff;
-moz-text-shadow : -1px -1px 1px #fff;
-o-text-shadow : -1px -1px 1px #fff;
-webkit-text-shadow : -1px -1px 1px #fff;
}
#or{ top: -24px; font-variant: small-caps; }
#mail{
font-size : 100px;
font-weight : 900;
text-shadow : inherit;
text-transform : uppercase;
}
#light { font-weight: 100; }
#mail:hover { color: #6cb; }
::selection {
background : #369EF7;
background-color: #369EF7;
color : white;
text-shadow : none !important;
-o-text-shadow : none !important;
-moz-text-shadow : none !important;
-webkit-text-shadow : none !important;
}
13.267515
76.455574
Like this:
Like Loading...