Home arrow Style Sheets arrow Page 3 - Langridge`s Image Replaceement Technique: A Final Look
STYLE SHEETS

Langridge`s Image Replaceement Technique: A Final Look


Welcome to the final part of a 12-part series on image replacement techniques. By means of a strong hands-on approach, this series helps you start using these methods so you can add a fresh, appealing look to different text-based elements of your web pages, without having to sacrifice the cleanness of their structural markup.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
December 16, 2009
TABLE OF CONTENTS:
  1. · Langridge`s Image Replaceement Technique: A Final Look
  2. · Review: Langridge’s image replacement method with H2 elements
  3. · Using Langridge's technique with hyperlinks
  4. · Tying the CSS styles to the structural markup

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Langridge`s Image Replaceement Technique: A Final Look - Using Langridge's technique with hyperlinks
(Page 3 of 4 )

As I did with other replacement methods covered in previous parts of the series, I’d like to demonstrate how to use Langridge’s approach for improving the visual presentation of a group of <a> elements. In this case, I’ll be utilizing the same background image for styling the pertinent links:

With that PNG image available, the next logical step is coding the set of CSS styles that implement Langridge’s method, right? Well, here they are:

.fancy_link {

display: block;

width: 200px;

height: 0;

padding-top: 50px;

background: url(fancy_link.png) top left no-repeat;

overflow: hidden;

}

From this code sample, it’s clear to see how easy it is to use the aforementioned image replacement method with all of the web page elements that have been assigned the prior “fancy_link” CSS class. Since in this case, the elements that need to be styled are <a> selectors, it’s necessary to create a brand new XHTML document that includes some of them, at least for illustrative purposes.

That’s exactly what I’ll be doing in the last segment of this tutorial. Therefore, to learn more about how this styling process will be accomplished, go ahead and read the lines to come.


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 1 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials