padding-left for the 2nd image only


I would like to padding-left for image2.gif only. How do I do it in the CSS?
Who is Participating?
Chris StanyonCommented:
Add a class and use that for styling.

<div class="test1">
  <li class="test2">Nav item 1</li>
  <li class="test2">Nav item 2 <img src="image1.gif" /><img class="last" src="image2.gif" /></li>

img.last { padding-left: 100px; }

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.