Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Wednesday, 17 July 2013

CSS properties


The following are the CSS properties arranged in the alphabetical order

A
align-content
align-items
align-self
animation
appearance
B
backface-visibility
background
border
border-collapse
border-image
border-radius
bottom
box-shadow
box-sizing
C
clear
clip
color
column-count
content
counter-increment
counter-reset
cursor
D
direction
display
F
flex
flex-basis
flex-direction
flex-flow
flex-grow
flex-shrink
flex-wrap
float
font
font-family
font-size
font-stretch
font-style
font-variant
font-weight
G
grid
H
hanging-punctuation
height
hyphens
J
justify-content
L
left
letter-spacing
line-height
list-style
M
margin
max-height
max-width
min-height
min-width
O
opacity
order
orphans
outline
overflow
P
padding
page-break
perspective
perspective-origin
pointer-events
position
Q
quotes
R
resize
right
S
scrollbar
T
tab-size
text-align
text-decoration
text-indent
text-overflow
text-shadow
text-stroke
top
transform
transform-origin
transform-style
transition
U
unicode-bidi
user-select
V
vertical-align
visibility
W
white-space
widows
width
word-break
word-spacing
Z
z-index
zoom

Box/DIV Shadows using CSS

Apply the following CSS for the shadow effect in the DIV's

.shadowdiv
{

-webkit-box-shadow: 0 0 5px 2px #000;
-moz-box-shadow: 0 0 5px 2px #000;
box-shadow: 0 0 5px 2px #000;

}
1st 0 is the horizontal offset of the shadow,this 0 will give shadow on both the left and right side of the div,Positive value like 2px will give shadow on right side and Negative value like -2px will give shadow on left side.

2nd 0 is the vertival offset of the shadow,this 0 will give shadow on both the top and bottom of the div,Positive value like 2px will give shadow on below and Negative value like -2px will give shadow on top.
  
5px is for the blur of the shadow.Higher the value,higher the Blurness.0 will give sharp shadow.  

2px is for spread radius or thickness of the shadow.positive increase the size and negative decrease size.

#000 is the color of the shadow.We can change to any color as required.

<html>
<head>
<style type="text/css">

.shadowdiv
{

width:200px;
height:200px; 
-webkit-box-shadow: 0 0 5px 2px #000;
-moz-box-shadow: 0 0 5px 2px #000;
box-shadow: 0 0 5px 2px #000;

}

</style>
</head>
<body>

<div class="shadowdiv">
Hi,This is an example div for the box shadow
<div> 

</body>
</html>
back to top