Media types available in Stylesheet

all all media type devices
aural speech and sound synthesizers
braille braille tactile feedback devices
embossed paged braille printers
handheld small or handheld devices
print printers
projection projected presentations, like slides
screen computer screens
tty media using a fixed-pitch character grid, like teletypes and terminals
tv television-type devices

How to Avoid ugly border around images & links using css

Every web developer would come across this issue. In Firefox, when you’d clicked a image or link there you’ll see a dotted border around the image or link. It makes ugly to the website. I googled around this issue & found a way to resolve it. If you see the image below you could easily identify the bug.

To resolve this issue just a single line css is enough.

<style type="text/css">
a:active, a:focus{outline: 0;}
</style>;

Courtesy:  mycodings.blogspot.com

Flip Image using CSS

img {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
transform: scaleX(-1);
-webkit-transform: scaleX(-1);
filter: FlipH;
-ms-filter: “FlipH”;
}

CSS most used font family

Andale Mono, monospace;
Arial, sans-serif;
Arnoldboecklin, fantasy;
Blippo, fantasy;
Bookman, serif;
Brushstroke, fantasy;
Comic Sans, Comic Sans MS, cursive;
Coronetscript, cursive;
Courier New, monospace;
Courier, monospace;
Fixed, monospace;
Florence, cursive;
Gill Sans, sans-serif;
Helvetica Narrow, sans-serif;
Helvetica, sans-serif;
Impact, fantasy;
Lucida, sans-serif;
Lucidatypewriter, monospace;
New Century Schoolbook, serif;
Oldtown, fantasy;
Palatino, serif;
Parkavenue, cursive;
sans-serif;
Times, serif;
Times New Roman, serif;
Zapf Chancery, cursive;

HTML cross browser transparency / opacity

.transparency{

opacity: 0.5;

/* works for IE 8 */
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=50)”;

/* works for IE 5-7 */
filter: alpha(opacity=50);

/* Netscape based like firefox*/
-moz-opacity: 0.5;

/* Safari */
-khtml-opacity: 0.5;

}

HTML Text Selection Color

/* Mozilla based browsers */
::-moz-selection {
background-color: #F0F0F0;
color: #000000;
}

/* Works in Safari */
::selection {
background-color: #F0F0F0;
color: #000000;
}

In-line Block for cross browsing

li {
width: 100px;
min-height: 150px;
display: inline-block;
vertical-align: top;
*display: inline;
margin: 15px;
zoom: 1;
_height: 150px;
border: 2px solid #000000;
display: -moz-inline-stack;
}

here is the list of html & css text properties

letter-spacing
word-spacing
line-height
vertical-align
text-transform
text-indent
text-align
text-decoration

here is the list of font properties available in HTML & CSS

font
font-style
font-size
font-variant
font-family
font-weight

differnt styles of HTML borders

border-style: solid;
border-style: double;
border-style: groove;
border-style: dotted;
border-style: dashed;
border-style: inset;
border-style: outset;
border-style: ridge;
border-style: hidden;