Stretch your background to 100% with CSS
To scale your image to fit the viewer’s browser 100% just use the following code: body { background: url(your-image.jpg) center center no-repeat fixed; background-size: cover; -webkit-background-size:...
View ArticleCreate Fade-In Dropdown Menus Using Pure CSS
Here is the easiest way to create a slick, fade-in, style navigation drop down menu using nothing but CSS. This is a CSS3 trick using transitions and opacity. #nav ul ul { opacity:0; transition:opacity...
View ArticleChange the Default Text Selection Color with CSS
Another cool CSS3 declaration is ::selection. This overrides your browser-level or system-level text highlighting color with whatever color you choose. Not all browsers support this technique but...
View ArticleFixed Footer with CSS
Create a fixed footer with CSS. This can come in handy to display important messages to your users or even just to display a Twitter or Blog feed. CSS: #footer {position:fixed; left:0px; bottom:0px;...
View ArticleMake Blurry Text with CSS
You no longer need an image to make fun, blurry text. Simply make the text color transparent and then add a text shadow. .blurry { color: transparent; text-shadow: 0 0 5px #000; } Blurry Text!...
View ArticleUsing the :before CSS Selector
You can add text or Unicode before any element using CSS and the :before selector. Let’s add a phone icon with Unicode before a phone number with this CSS: .phone:before { content: "\2706"; } Now use...
View ArticleCSS3 Image Styles
This is my favorite new CSS3 trick. It makes working with images so much fun! Make your images circular, embossed, reflected, glow, rollover effects, etc… A few of my favorites Circle Image Morphing...
View ArticleAdd Text After PDF Links with CSS
Since all links typically look the same, a user could be clicking on a link that they assume is taking them to another web page but in fact it opens up a PDF which can surprise your visitor if they are...
View ArticleCreate a Fancy Ampersand with CSS
Here we’re creating a fancy ampersand with CSS. This example uses a cross-browser font, Baskerville, but you can use another font-family. Style & Design Use this HTML: Style <span...
View ArticleMake a Fancy Button with CSS
Making nice, clean buttons for your website is simple with CSS. First, give your button or input a class. Then in your CSS file add the following: .mybuttonclass { padding: 10px 15px; background:...
View Article
More Pages to Explore .....