CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 June 30th, 2009, 11:15 AM
swaddock swaddock is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: New England, USA
Posts: 73 swaddock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 13 m 40 sec
Reputation Power: 3
Send a message via AIM to swaddock
Unable to vertically align a custom bullet

I have a custome bullet for an LI...my issue is...when this displays, the bullet displays at the top of the line height. Is there a way to adjust this so that the bullet appears in center of the line height?

Reply With Quote
  #2  
Old June 30th, 2009, 04:37 PM
SlidingHorn SlidingHorn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Location: Painesville, OH (Cleveland)
Posts: 26 SlidingHorn User rank is Sergeant Major (2000 - 5000 Reputation Level)SlidingHorn User rank is Sergeant Major (2000 - 5000 Reputation Level)SlidingHorn User rank is Sergeant Major (2000 - 5000 Reputation Level)SlidingHorn User rank is Sergeant Major (2000 - 5000 Reputation Level)SlidingHorn User rank is Sergeant Major (2000 - 5000 Reputation Level)SlidingHorn User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 15 h 54 m 19 sec
Reputation Power: 0
Facebook MySpace
use vertical-align

Code:
.img {
   vertical-align: middle;
}

Reply With Quote
  #3  
Old July 1st, 2009, 10:27 AM
Skipt's Avatar
Skipt Skipt is offline
CSS Guru in Training
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2009
Location: Maryland, USA
Posts: 2,044 Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)Skipt User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 84 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 1 h 59 m 48 sec
Reputation Power: 1225
Send a message via AIM to Skipt
Facebook
I dont think that will work. You can try adding 10px of transparent space to the bullet images themselves. IE6 doesn't even support custom bullet images so instead of that try doing this:

Code:
ul li {
   list-style: none; /* Dropping the list style */
   background: url(the/image.jpg) no-repeat center left; /* Adding the bullet as a background instead */
}


Not tested.
__________________
"Quality of responses may vary. I reserve the right to change my mind for any reason what-so-ever without admitting I was wrong. I'd prefer to change your mind however, it's easier on my ego". - jwdonahue

Reply With Quote
  #4  
Old July 1st, 2009, 10:41 AM
swaddock swaddock is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: New England, USA
Posts: 73 swaddock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 13 m 40 sec
Reputation Power: 3
Send a message via AIM to swaddock
Quote:
Originally Posted by Skipt
I dont think that will work. You can try adding 10px of transparent space to the bullet images themselves. IE6 doesn't even support custom bullet images so instead of that try doing this:

Code:
ul li {
   list-style: none; /* Dropping the list style */
   background: url(the/image.jpg) no-repeat center left; /* Adding the bullet as a background instead */
}


Not tested.


Thanks!...I did just that....with a few tweaks. Works perfectly!...in all the browsers....with is SWEEEEEEEEEEEEET!

Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Unable to vertically align a custom bullet


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
Stay green...Green IT