Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/joshual/public_html/wp-includes/plugin.php on line 571

Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /home/joshual/public_html/wp-includes/plugin.php on line 571

Warning: Cannot modify header information - headers already sent by (output started at /home/joshual/public_html/wp-includes/plugin.php:571) in /home/joshual/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 60

Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/joshual/public_html/wp-includes/plugin.php on line 571
Style links depending on url or file format | Joshua Lückers

Style links depending on url or file format

While browsing at Forrst I came across this piece of CSS.

a[href^="http://"] { color: blue; }
 
a[href^="mailto:"] { color: red; }
 
a[href$=".pdf"] { color: green; }

Styling links depending on their formats.

ajcates said:
For the sake of usability and consistency instead of changing the color on links based on their format I often times use this technique instead to add on little file icons.

Laat een reactie achter bij WyriHaximus Reactie annuleren