Positioning images when used in lists

This is a discussion on "Positioning images when used in lists" within the Web Page Design section. This forum, and the thread "Positioning images when used in lists are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Aug 11th, 2004, 15:58
Junior Member
Join Date: Mar 2004
Location: United Kingdom
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Positioning images when used in lists

Hi - Any ideas on how to position an image (used instead of an bullet point) in a <ul> list item.

The problem being that the image seems to be out of line with the text. I have altered the font size to try to accommodate but this did not work.

I have already used a background image within the class so cannot go down that route.

Here is the CSS for the list item on the left hand nav box entitled 'Intranet':
ul#c1list li.title{
background-image:url(images/yellow_c1title1.gif);
background-repeat:repeat-y;
border-top:1px solid #FF9900;
border-left:1px solid #ff9900;
padding:0px 0px 0px 10px;
margin:0px;
font-size:2em;
font-weight:bold;
font-family:"Comic Sans MS", Arial;
color:#990000;
background-color:#efef90;
list-style-image:url(images/intranet_home.gif);
list-style-position:inside;}

And here is the url: (you can see the images on most of the list items in the left and right nav boxes are all over the place in IE6 - so any hints would be gratefully received)

http://www.hastings.ac.uk/yellow/index.asp

Btw, thanks Kulegamr for replying to my 'Submit button' query - it worked!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Aug 11th, 2004, 16:57
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
It can't currently be done. Future versions of CSS might support doing it, but for now you're out of luck. The one workaround I've heard is adding extra space to the top/bottom/etc of the image being used - but I tried that and it didn't work for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Aug 11th, 2004, 20:04
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,192
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
does padding on the list item, also affect the bullet?

I'm thinking top/bottom padding
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Aug 11th, 2004, 21:30
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Tried that, doesn't help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Aug 12th, 2004, 08:27
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Yes cat you are right, just add extra space on the top of the image. Then:
Code: Select all
ul {
	list-style-image: url(images/bullet.gif)
and your image should be like this (notice the white space at the top):


heres the site i built a few months ago which uses the above:
http://www.ctech3000.com/what_you_get.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Aug 17th, 2004, 15:30
Junior Member
Join Date: Mar 2004
Location: United Kingdom
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Many thanks for your replies - adding extra pixels to the top of the .gif worked a treat.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Aug 17th, 2004, 15:53
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
told ya!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
positioning, images, used, lists

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
Positioning Text, Links and Images DregondRahl Web Page Design 4 Jun 7th, 2007 11:34
Positioning images rubyfruit Web Page Design 25 Mar 31st, 2007 14:37
Lists? PicoDeath Web Page Design 2 Dec 2nd, 2006 22:43
Positioning images? Brocula Web Page Design 3 Oct 15th, 2006 11:12
Positioning images next to input box AdRock Web Page Design 2 Jul 27th, 2006 12:19


All times are GMT. The time now is 03:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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