• Article Written 
  • on 03.03.2010
  •  at 11:50 AM
  •  by admin

How to Create Inset Text with CSS3

Many exciting new functions and features are being thought up for CSS3. Today we are going to create inset test with CSS3. That property will support Firefox, Opera, Chrome and Safari. Inset text being text that has been pushed into the background, almost like a reverse embossed effect. I hope that, you will find a quite useful inspiration for your next design project. Thanks!


[ad#co-1]
heading-inset-text-css3

This Text Shadow property is not supported by IE. View Demo

Let us know your thoughts? If you found any other tutorials that you want to share with us,feel free to let us know by dropping in a comment.

Example

heading-inset-text-css3-exa

Step #1 Css Structure

first we create a Simple Css code

[code lang="css"]
*{
 padding:0; margin:0;
}
body{
 background:#222;
}
[/code]

[code lang="css"]
#container{
margin:0 auto;
background:#333333;
}
[/code]

[code lang="css"]
h2 {
color:#000;
text-shadow:-1px 1px 1px #4A4947;
font:36px bold Arial, Helvetica, sans-serif;
margin:0 0 0 0;
padding:0 0 10px 0;
}
[/code]

[code lang="css"]
p{
text-shadow:-1px 1px 1px  #4A4947;
font:bold 18px Arial, Helvetica, sans-serif;
color:#000;
padding:0 0 10px 0;
line-height:162.5%;
}
[/code]

Step #2 Html Structure

now we create a Simple Html code

[code lang="htmlstrict"]

Heading

Et ut ac sociis natoque montes! Porta lundium sed, tempor ac porta, parturient turpis. Ac, ut eros egestas, adipiscing penatibus sit lacus mattis parturient, placerat.

Et ut ac sociis natoque montes! Porta lundium sed, tempor ac porta, parturient turpis. Ac, ut eros egestas, adipiscing penatibus sit lacus mattis parturient, placerat.

[/code]

View Demo

Follow us on Twitter, or subscribe to the Developers Paradise+ RSS Feed for the best web development tutorials on the web.

Promote Us

  • Add to Mixx!
Ace Hosting India

Tags: ,