Bullet point images - Problem with text alignment

This is a discussion on "Bullet point images - Problem with text alignment" within the Web Page Design section. This forum, and the thread "Bullet point images - Problem with text alignment are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 15th, 2005, 20:39
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Bullet point images - Problem with text alignment

Has anyone encountered a problem with text alignment when using images for bullet list-style-image?

As shown in the image below, the text is aligned on the base. I have text-align set to middle which corrected to problem in IE (suprisingly) But in FF and Opera the problem remained.


I have all the padding and margins set to 0 and even adjusting these does very little.

Any suggestions for the best way to approach using image bullets please
Reply With Quote

  #2 (permalink)  
Old Aug 15th, 2005, 20:59
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
tried setting the text (or bullet image) to vertical-align: middle?
Reply With Quote
  #3 (permalink)  
Old Aug 16th, 2005, 04:34
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Is the bullet the same pixel size as the text? This can offset it as well I know in FF.
Reply With Quote
  #4 (permalink)  
Old Aug 16th, 2005, 07:39
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
add 3 pixels of white space to the top of the image.
Reply With Quote
  #5 (permalink)  
Old Aug 16th, 2005, 10:17
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Hi

The vertical-align is set to middle but only corrected it in IE.

Tried putting some white space at the top but the text stayed along the base.

I think the best idea is reducing the size of the bullet image, but the image quality and size looks rubbish.

CSS is great but I cant help thinking customising image bullet points is amaturish
Reply With Quote
  #6 (permalink)  
Old Aug 16th, 2005, 11:08
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,950
Blog Entries: 7
Thanks: 7
Thanked 3 Times in 3 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Hi Andy, one way round this problem is to use the image as the background which you can force the positioning of...

Something like this:-
background: transparent url(images/bullet.gif) no-repeat 5px 4px;

Obviously play with the px values until you are happy. oh, and set the list-style-type to none.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #7 (permalink)  
Old Aug 16th, 2005, 15:09
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Rob

That seams to be the best solution. Thanks
Reply With Quote
Reply

Tags
bullet, point, images, problem, text, alignment

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alignment problem in IE Lchad Web Page Design 16 Feb 10th, 2007 00:30
Text Alignment on second line of Bullet point adeking Web Page Design 2 Jul 31st, 2006 20:38
Text alignment Towbar Introduce Yourself 2 May 15th, 2006 23:16
Alignment problem..basic liquid Web Page Design 3 Mar 2nd, 2004 07:49


All times are GMT. The time now is 13:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43