web stats analysis

CSS Archive

How to remove extra margin-bottom from floted image?

Remove white space below image

How to remove image padding?

Type following css:

img {

display: block;

}

How to create attractive button step by step?

Use of CSS3 for making attractive button.

Here I try and making a attractive button:

In HTML Document:


<div>
<a href="#">Click Here</a>
</div>

I create div having a link (Name:Click Here)..Add below css:


.button
{
background-color:#e1e1e6;
width:400px;
height:100px;
border:1px solid black;
border-radius:5px;
}

I only created a box here inside which I have to create a button.


.btnred
{
position:relative;
top:36px;
left:35%;
text-decoration:none;
color:#fff;
background:#cb2727;
text-align:center;
padding:20px 30px;
width:115px;
border-radius:5px;
border:solid 1px #ec3838;
transition: all 0.1s;
-webkit-box-shadow: 0px 9px 0px #a81515;   /*for opera and safari*/
-moz-box-shadow: 0px 9px 0px #a81515;     /*for mozilla*/
-o-box-shadow: 0px 9px 0px #a81515;      /*for opera*/
-ms-box-shadow: 0px 9px 0px #a81515;    /*for I.E.*/
}
I set text-decoration to none that’s why link underline is removed. After that, I set color and background-color. Then, I set text-align and padding. The important step here is transition and box-shadow.

CSS3 transitions are effects that let an element gradually change from one style to another.

Add below css:


.btnred:active
{
-webkit-box-shadow: 0px 2px 0px #a81515;
-moz-box-shadow: 0px 2px 0px #a81515;
-o-box-shadow: 0px 2px 0px #a81515;
-ms-box-shadow: 0px 2px 0px #a81515;
position:relative;
top:43px;
}

Note:-Active selector is use to select and style the active link.A link active when you click on it

This button working is that decrese box-shadow and muve the position slightly down so that appears pressing down

How to Change the background color and position using css?

Change the background color and position using css.

Follow below css3:


div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:myfirst 5s;
-webkit-animation:myfirst 5s; /* Safari and Chrome */
}

@keyframes myfirst
{
0%   {background:red; left:0px; top:0px;}
25%  {background:yellow; left:200px; top:0px;}
50%  {background:blue; left:200px; top:200px;}
75%  {background:green; left:0px; top:200px;}
100% {background:red; left:0px; top:0px;}
}

@-webkit-keyframes myfirst /* Safari and Chrome */
{
0%   {background:red; left:0px; top:0px;}
25%  {background:yellow; left:200px; top:0px;}
50%  {background:blue; left:200px; top:200px;}
75%  {background:green; left:0px; top:200px;}
100% {background:red; left:0px; top:0px;}
}

Note:- This example does not work in Internet Explorer 9 and earlier versions.

How to give css3 imges transition Hover Effect?

css3 imges transition Hover Effect

Follow below css3:


div.box {
border-style: solid;
border-width: 1px;
display: block;
width: 100px;
height: 100px;
background-color: #0000FF;

border-corner-sheape:notch;
border-radius:10px;
}
div.box:hover {
background-color: #FFCCCC;
width:200px;
height:200px;

-moz-transition:width 5s, height 5s, background-color 5s, -moz-transform 5s;
-webkit-transition:width 5s, height 5s, background-color 5s, -webkit-transform 5s;
-o-transition:width 5s, height 5s, background-color 5s, -o-transform 5s;
transition:width 5s, height 5s, background-color 5s, transform 5s;
}

Css 3 imges transition Hover Effect,How to build hover and transition effects using css3?,Create modern CSS3 hover effects,
css transitions.

How to give Text-shadow, Photoshop like effects using CSS?

Text-shadow, Photoshop like effects using CSS

Using css give different effect in Text-shadow,Photoshop.

The text-shadow property is use to give different effect.

The text-shadow property is used as follows:

text-shadow: 3px 3px 3px #000;

The above css, following text with a shadow 3px right and below of the text, which blurs for 3px: for click below image.

If anyone not using those browsers, here is a reference image (from Opera 9.5):for click below image.

Note:- This feature is NOT new in CSS3; it was originally proposed in CSS2.

Safari had it from version 1, however!

The following works in Opera, Konqueror, iCab and Firefox 3.1a, and looks really cool (or, rather, the opposite!)for click below image.

And below the reference image click on it:
How to give Text-shadow, Photoshop like effects using CSS,
Text-shadow, Photoshop like effects using CSS,Shadow Effect In CSS,
CSS of Photoshop text effects ,Using CSS Text-Shadow to Create Cool Text
Effects,give different Text-Effects.

How to show and hide div using javascript ?

Show and hide div using javascript.

How to hide div tag using javascript ?

For Click Here To Download Code.

How to remove white space below image?

Try Following code in your css
img
{
vertical-align : text-bottom;
display : block;
}