Special icons attached to special links

Special icons attached to special links

I thought I would share a little tip that just makes getting around sites easier and easier for the web content creator to maintain. If you find you have a lot of external sites you are linking to or links to PDFs it’s good practice to somehow tell people that information before they click. Otherwise they may download something they didn’t want to or are trying to find a way to get back to where they came from. It’s been considered good practice to add (PDF) or (DOC) at the end of a link but not everyone does it when you have multiple authors or they do it inconstantly with lower and upper case.


The code below shows how to add an external link icon and a special link icon if it’s a secure site or if it’s an email address. Note the code changes a little for when it’s a file type like a .DOC or a .PDF. You must also tell the CSS as in the example here how big your icon is so it doesn’t overlap the text. The very last part is important to tell the browser that if it isn’t any of these special things just leave it blank.

Here is an example link where this college needed a list of scholarships available. The inhouse links are for scholarships administered by the college but the ones with the icons are outside links that they are not responsible for. By doing the code below no modification to the HTML is necessary. The browser will read the CSS and figure out how to display the link.

#middlecol a[href^="http://"] {
    background: url(https://www.yourdomain.com/images/external.png) 
    center right no-repeat;
    padding-right: 13px;
}

#middlecol a[href^="https://"] {
    background: url(https://www.yourdomain.com/images/external.png) 
    center right no-repeat;
    padding-right: 13px;
}

#middlecol a[href^="mailto:"] {
    background: url(https://www.yourdomain.com/images/email.gif) 
    center right no-repeat;
    padding-right: 20px;
}


#middlecol a[href$='.pdf'] {
    background: url(https://www.yourdomain.com/PDFs/pdficon.gif) 
    center right no-repeat;
    padding-right: 20px;
	line-height:20px;

}

#middlecol a[href$='.doc'] {
    background: url(https://www.yourdomain.com/images/wordicon.gif) 
    center right no-repeat;
    padding-right: 20px;
	line-height:20px;

}

#middlecol a[href$='.docx'] {
    background: url(https://www.yourdomain.com/images/wordicon.gif) 
    center right no-repeat;
    padding-right: 20px;
    line-height:20px;

}

#middlecol a[href^="http://www.yourdomain.com"]  {
    background: none;
    padding-right: 0;
}

Pea babies

Yes we are some bleeding hearts as we have a couple of baby peacocks in the house! This one above had the unfortunate luck of getting under a horses foot. We found her crying by herself on the ground at night. They should be up in the trees at night so obviously she wouldn’t have lasted long that night if we hadn’t picked her up. We think she is a girl because even as a downy fluffy thing she was trying to feed and brood the other one rescued about that time below. Read more

Come experience the Delta through Art

The Delta Science Center and Mt. Diablo Audubon Society Art Show  features photography from local artist exhibiting Sacramento-San Joaquin Delta view, wildlife, plants and even a few insects.

The opening is this Saturday  at The Lynn House Gallery. The gallery is open Wednesdays and Saturdays, 1 pm to 4 pm.

On display will be my Blackbird “Rise Up” photograph.

Hope to see you there!

 

 

How to extract an image with hair

How to extract an image with hair

PSCS5 tip

Today I gave a little 30 minutes talk at REI for our local camera club I found on meetup.com 

This post is a recap of my talk for those who would like to try extracting an image with hair using photoshop CS5 and the steps written below. Please let me know if you have any questions about the process or would like me to explain anything further.

Read more

A little trip through the little town of Locke Ca

 

Locke, Ca was founded in 1915 according to it’s website by a group of Chinese immigrant merchents who wanted to establish a town of their own after a fire had broken out in nearby Walnut Grove. It was originally named Lockeport after George Locke, who owned the land that the town was built upon at a time when Chinese people were not allowed to own land. It is also been designated National Historic Landmark District  due to the historical significance of the only town being built by Chinese for Chinese. Much of the original decendents have moved on but many of the buildings remain in their original state (a school house, an import shop, grocery store etc.)

Below are some snapshots from my visit to the little town. Hope you enjoy!

 

Read more