September 17, 2012
Create clean and professional CSS3 buttons
1 comment:
Author:
tec
at
9/17/2012 05:36:00 pm
Labels:
css3 button tutorial,
css3 buttons tutorial,
css3 gradient,
css3 only buttons,
professional css buttons
CSS3 buttons |
Today I will demonstrate how to create clean and professional looking CSS3 buttons but first of all lets discuss why it's so good?
CSS3 buttons look essentially the same as graphical buttons but take fewer time to load and render, are easy to make, easy to embed and can be easily modified by anyone with a text editor.
All major browsers now support CSS3 properties used here.
Lets begin.
Create a hyperlink and add class btn to it.
Now we are going to apply different CSS properties to this class to make it look like a button.
<a href="#mybutton" class="btn">My Button</a>
.btn{ }
Now watch closely. We are applying background gradient to our button. You can read more about gradients in CSS3 here.
.btn{ text-decoration: none; font: bold 13px Arial; color: #333333; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; }
Add some vertical and horizontal padding
.btn{ text-decoration: none; font: bold 13px Arial; color: #333333; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; padding: 5px; }
Add a border.
.btn{ text-decoration: none; font: bold 13px Arial; color: #333333; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; padding: 5px; border: 1px solid #DCDCDC; }
Adding box shadow for the effects
.btn{ text-decoration: none; font: bold 13px Arial; color: #333333; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; padding: 5px; border: 1px solid #DCDCDC; -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow: 0 1px 0 0 #FFFFFF inset; }
Add text shadow for more effects
.btn{ text-decoration: none; font: bold 13px Arial; color: #333333; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; padding: 5px; border: 1px solid #DCDCDC; -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow: 0 1px 0 0 #FFFFFF inset; text-shadow:1px 1px 0px #ffffff; }
Finally add hover effects. See we are again changing background gradient when cursor is brought over the button.
This is how the final button and final code looks like.
You can experiment with more CSS properties to make your button look different. For example use "border-radius" to give your button rounded corners.
You can experiment with more CSS properties to make your button look different. For example use "border-radius" to give your button rounded corners.
.btn{ text-decoration: none; font: bold 13px Arial; color: #333333; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; padding: 5px; border: 1px solid #DCDCDC; -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow: 0 1px 0 0 #FFFFFF inset; text-shadow:1px 1px 0px #ffffff; } .btn:hover{ cursor: pointer; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); background-color:#dfdfdf; }
September 16, 2012
[Video] Nokia Lumia 920 versus Samsung Galaxy S3 - comparing design and dimensions
1 comment:
Author:
tec
at
9/16/2012 09:43:00 am
Labels:
galaxy s3,
lumia 920,
lumiia 920 and s3 comparison,
nokia lumia vs galaxy android
Check out this quick comparison video by NordicHardware, comparing the design & size of Nokia’s recently announced flagship Windows Phone 8 handset Lumia 920 with hot selling Android smartphone Samsung Galaxy S3, .
Video URL: http://youtu.be/pSK99PGlC-0
Read More
Video URL: http://youtu.be/pSK99PGlC-0
September 06, 2012
Nokia Lumia 920 price in India
No comments:
Author:
tec
at
9/06/2012 01:15:00 am
Labels:
lumia 920 cost,
lumia 920 price,
lumia india,
nokia
Features:
Windows Phone 84.5-inch HD display
Pureview camera with 8 Megapixels
1.5Ghz Snapdragon S4 CPU.
NFC
Integrated wireless charging
32GB of storage
1GB of RAM.
Price:
No news on official release date and price yet but expect to see the Lumia 920 in stores around late October early November. Price will be updated when available.Price of Nokia Lumia 820 in India
No comments:
Author:
tec
at
9/06/2012 01:02:00 am
Labels:
lumia 820 price,
lumia india,
nokia,
Nokia Lumia 820
Features:
- A 4.3″ capacitive touch screen with 720* 1080p resolution.
- 8MP camera with 3264×2448 pixels resolution. The camera has addition features such as auto focus, LED flash and Geo-tagging.
- Windows phone 8 OS
- Runs on quad band 2G and 3G for HSDPA
- Bluetooth, micro USB 2.0, NFC
Price:
It will cost you about $559.Oracle to pay Google $1,130,350 in Costs
Oracle's API battle against Google is over. Oracle will have to pay Google $1,130,350 in costs for its swashbuckling lawsuit against Google, which it lost big time.
Instead of getting $6 billion, Oracle gets nothing and in addition has to pay over a million in Google's costs. The judge positively sneers at Oracle's argument that they shouldn't have to pay any costs.
http://www.groklaw.net/article.php?story=20120904211545683
Read More
Instead of getting $6 billion, Oracle gets nothing and in addition has to pay over a million in Google's costs. The judge positively sneers at Oracle's argument that they shouldn't have to pay any costs.
http://www.groklaw.net/article.php?story=20120904211545683
Subscribe to:
Posts (Atom)