Ego One - Pure | Fresh | First
Would you like to react to this message? Create an account in a few clicks or log in to continue.

We're Moving. So, we've disabled new registrations on this forum. The forum will not officially be released until 8 PM Pacific Standard Time (Friday, Sept, 9th, 2010)~ http://www.ego-one.net/

View previous topic View next topic Go down  Message [Page 1 of 1]

Jalokim

Jalokim
Manager
Letter press text effect with CSS3 3f87b13cI bet we've all seen the new fad in town, or at least in the web graphics world.

Letter press or slight indent text is now very modern and brings out some really cool effects with your typography. Here are some examples of letterpress. The examples are from deviantart.com which uses a large variety of rendered letter pressed typography.

Letter press text effect with CSS3 Dvs10


Well NO more do we need to create images. CSS3 can help us. Today I'm going to explain ,step by step how to get somewhat of a letterpress effect with css text shadow.

This is what we are going for:
Letter press text effect with CSS3 Untitl12


The whole idea of this letterpress is to create a slight shadow that is perfectly shading the background.

First you need to apply the letterpress effect to your div class or id.

Code:
#div id{
text-shadow: 0px 1px 2px #hexcolor code;

Now as we all know
the first pixel size defines the x-offset , in our case its 0 we don't want the shadow to be move horizontally.

The next is the y-offset this we need to keep as close to our text as possible thats why its set to 1.

The third is out blur size... we don't want a giant blur we need a slight fade. So its set to 2 pixels.

Now here is the tough part.
The color of the shadow has to perfectly shade the text.
Using photoshop or other image editors you can test and try out the best shadow version for your letterpress.

I suggest recreating the backgound in your photoshop, type in some text,

Letter press text effect with CSS3 Q10

apply dropshadow as you'd normally do .. then set the drop shadow to color burn at around 50% percent.

Letter press text effect with CSS3 W10

This gives the idea shade.

Just grab a color picker and select the color, apply it to your CSS.

Letter press text effect with CSS3 Feqf10

And TA DA you have an almost perfect letter press effect.

Letter press text effect with CSS3 Ew10

Of course this works best on dark text, with a white or grey shadow.
Remember if you have bright text, use color burn to find out the shade... if you using a dark text you need a light shadow.

Guest posting activated




MrMega

Post Mon Aug 17, 2009 5:19 pm by MrMega

This is magnificent. I could never make an image like that until now. Thank you Jalo & CSS3 Smile

KingOfSports

Post Mon Aug 17, 2009 6:03 pm by KingOfSports

That looks really cool!!!! (Too bad I don't have Photoshop =P)

Jalokim

Post Mon Aug 17, 2009 6:06 pm by Jalokim

you don't need photoshop.
its just there to pick the perfect shading color.
you can use any program, or type in your own hex color code

Niels

Post Tue Aug 18, 2009 6:13 pm by Niels

Fantastic Tutorial, I'll use this later Wink.

Cyberlord

Post Mon Aug 31, 2009 3:49 pm by Cyberlord

nice tutorial....i am surely gonna use this

Zonda333

Post Mon Aug 31, 2009 5:25 pm by Zonda333

Nice tutorial, i'll remember this for when I need it Smile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum




Site powered by Forumotion
Copyright 2006-2013 | JalokimGraphics | Ego-One
<!-- <script type="text/javascript"> var vglnk = { key: '0d80ae9fe71cec9484f682bd59232f9e' }; (function(d, t) { var s = d.createElement(t); s.type = 'text/javascript'; s.async = true; s.src = '//cdn.viglink.com/api/vglnk.js'; var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r); }(document, 'script')); </script> <div id="Forumactif_Video"></div> <script type="application/javascript"> //<![CDATA[ var slmadshb = slmadshb || {}; slmadshb.que = slmadshb.que || []; slmadshb.que.push(function() { slmadshb.display("Forumactif_Video"); }); //]]> </script> <script type="text/javascript">window._taboola = window._taboola || []; _taboola.push({flush: true});</script> <!-- BEGIN 1425605 - etoxic - FR - CDB - PCK - sticky footer - 728x90--> <div id="criteo_sticky"> <script type="text/javascript"> function CreateStickyFooterContainer(e) { var t = document.getElementById(e); t.style.position = "fixed", t.style.zIndex = "2147483646", t.style.bottom = "0", t.style.left = "0", t.style.padding = "0", t.style.borderColor = "rgb(196, 196, 196)", t.style.width = "100%", t.style.backgroundColor = "rgba(245, 245, 245, 0.54902)", t.style.borderStyle = "solid", t.style.borderWidth = "1px"; var o = document.createElement("a"); t.appendChild(o), o.style.backgroundColor = "rgb(221, 221, 221)", o.style.backgroundImage = "url('//static.criteo.net/images/criteo/publishertag/close.png')", o.style.backgroundRepeat = "no-repeat", o.style.backgroundPosition = "center", o.style.display = "block", o.style.position = "absolute", o.style.left = "0", o.style.top = "-24px", o.style.width = "23px", o.style.height = "24px", o.style.borderBottomColor = "#6d6c71", o.style.cursor = "pointer", o.onclick = function() { t.style.display = "none" }; var l = document.createElement("div"); l.id = "cto_sticky", l.style.margin = "0 auto", l.style.display = "table"; t.appendChild(l); return l.id }; Criteo.events.push(function() { if(!isMobile){ Criteo.Passback.RenderAd(CreateStickyFooterContainer("criteo_sticky"), function(){ var slotid = "criteo_sticky"; var div = document.getElementById(slotid); div.removeAttribute("style"); }); } else{ var slotid = "criteo_sticky"; var div = document.getElementById(slotid); div.style.display = "none"; } }); </script> </div> <!-- END CRITEO TAG --></body></html><strong><a href="https://www.forumotion.com/" target="_blank">Free forum</a></strong>&nbsp;|&nbsp;<span class="gensmall">&copy;</span><a href="https://www.forumotion.com/phpbb" target="_blank">phpBB</a>&nbsp;|&nbsp;<a name="bottom" href="https://help.forumotion.com/" target="_blank">Free forum support</a>&nbsp;|&nbsp;<a href="/abuse?page=%2Ft399-letter-press-text-effect-with-css3&amp;report=1" rel="nofollow">Report an abuse</a>&nbsp;|&nbsp;<strong><a href="https://www.forumotion.com" target="_blank">Forumotion.com</a></strong>Derp