File Under: Cheat Sheets, CSS

Inline Stylesheet Code

If you want to use stylesheets to format one particular piece of content on a web page, you can apply an inline style.

Here’s the code:

<a href="" style="font: 9px Geneva, Verdana, sans-serif; padding: 0 1.0em 1px 0; border: 1px solid #000; background: #31757B; color: #fff; text-decoration: none; font-weight:bold" title="">
<span style="background: #000; border-right: 1px solid #000; color: #fff; padding: 1px 0.75em; margin-right: 0.1em; font-weight:bold;">Go To</span> Webmonkey!</a>