• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 563
  • Last Modified:

padding-left for the 2nd image only

Hello

http://jsfiddle.net/surework/hj6ct/1/

I would like to padding-left for image2.gif only. How do I do it in the CSS?
0
surework1
Asked:
surework1
1 Solution
 
Chris StanyonCommented:
Add a class and use that for styling.

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


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

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now