Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Float image to right in an anchor in a list

Float image to right in an anchor in a list

Problem

Trying to get my Arrow image to stick to the right of the anchor

  • ► 3.1 jQuery
    • 3.1.1 Download
    • 3.1.2 Tutorial
  • 3.2 Mootools
  • 3.3 Prototype

CSS:

img .arrow 
{
    float: right;
}
Problem courtesy of: davey

Solution

img .arrow 

-> a child of an image tag with the class arrow - your current css

img.arrow

-> an image with the class arrow - probably what you really wanted to write

Solution courtesy of: Christoph

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Float image to right in an anchor in a list

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×