• 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!



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.

Be Sociable, Share!
If you enjoyed this post, make sure you subscribe to my RSS feed!

Promote Us

  • Add to Mixx!
Ace Hosting India

Tags: ,

Untitled Document

7 Comments

  1. [...] User News if (typeof Meebo == ‘undefined’) { Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)}; (function(q){ var args = arguments; if (!document.body) { return setTimeout(function(){ args.callee.apply(this, args) }, 100); } var d=document, b=d.body, m=b.insertBefore(d.createElement(‘div’), b.firstChild); s=d.createElement(‘script’); m.id=’meebo’; m.style.display=’none’; m.innerHTML=”; s.src=’http’+(q.https?’s':”)+’://’+(q.stage?’stage-’:”)+’cim.meebo.com/cim/cim.php?network=’+q.network; b.insertBefore(s, b.firstChild); })({network:’tripwiremagazine_fu72bi’}); }How to Create Inset Text with CSS3 [...]

  2. [...] it out: http://aceinfowayindia.com/blog/2010/03/how-to-create-inset-text-with-css3/ Follow us on Twitter for even more updates!HOSTING PROMOGet a special 35% discount making it [...]

  3. I never knew about this, since my knowledge about css are only the basics. Thanks for sharing this, I will for sure try this one. Looking forward for your next post!

  4. Sorry, but I really don’t like the idea of doubling the content in the markup. There’s better than this, eg. JavaScript based.

  5. [...] How to Create Inset Text with CSS3 [...]

  6. 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. …

  7. Nice post! Here is another tutorial on inset text http://photoshoparchive.com/tutorials/wood-inset-text/index.php

Submit a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge