CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 26th, 2012, 10:33 PM
kasunt kasunt is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 1 kasunt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 56 sec
Reputation Power: 0
New Member - Aligning sprite in List element

I have this list menu and I want to display arrows for each of the items so when you hover over the item the arrow changes the color. So far my problem seems to be aligning this arrow vertically centered compared to the text. As you can see from the screenshot it is slightly off. Ignore the missing space between the arrow and the hyperlink.

http://i.imgur.com/2XCHZ.png

HTML,

Code:
    <li ><a class="clear-block" href="http://wordpress.local/archives/category/announcements" title="View all posts filed under Announcements">
     <span class="tt">Announcements <strong>(1)</strong></span>
     <span class="c1"></span>
    </a></li>
    <li ><a class="clear-block" href="http://wordpress.local/archives/category/c-sharp" title="View all posts filed under C#">
     <span class="tt">C# <strong>(1)</strong></span>
     <span class="c1"></span>
    </a></li>
    <li  class="extends"><a class="clear-block" href="http://wordpress.local/archives/category/c-plus-plus" title="View all posts filed under C++">
     <span class="tt">C++ <strong>(1)</strong></span>
     <span class="c1"></span>
    </a>
       <ul class="sub-menu">
    	<li ><a class="clear-block" href="http://wordpress.local/archives/category/c-plus-plus/multiplexing-io" title="View all posts filed under Multiplexing I/O">
     <span class="tt">Multiplexing I/O <strong>(1)</strong></span>
     <span class="c1"></span>
    </a></li>
       </ul>
    </li>



CSS,

Code:
    .block ul.menu, .block ul.menu ul, .block ul.menu li, .block .box, .block .box .entry{
      margin:0;
      padding:0;
      list-style-type:none;
      line-height: normal;
    }
    
    .block ul.menu li, .block ul.box .entry{
      border-bottom:1px dotted #aaa;
      border-top:1px dotted #fff;
    }
    
    /* no border on 1st list item */
    .block ul.menu li.first,
    .block ul.menu li:first-child,
    .block ul.box .entry.first,
    .block ul.box .entry:first-child{border-top:0 !important;}
    
    .block ul.menu li.last,
    .block ul.menu li:last-child,
    .block ul.box .entry.last,
    .block ul.box .entry:last-child{border-bottom:0 !important;}
    
    .block ul.menu li .expand{display: none;}
    
    .block ul.menu li, .block ul.box .entry {
      position: relative;
      z-index: 5;
    }
    
    .block ul.menu li a {
      background:transparent url(../images/icons_old.png) no-repeat 4px -816px;
    }
    
    /* titles */
    .block ul.menu .tt {
      display:block;
    }
    
    .block ul.menu a:hover .tt{
      text-decoration:underline;
    }
    
    /* content - primary */
    .block ul.menu .c1{
      display:block;
      line-height: 150%;
      color:#333;
      text-decoration:none;
    }
    
    /* information block (left side) */
    .block ul.menu .base {
      overflow:hidden;
      display:block;
    }

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > New Member - Aligning sprite in List element

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap