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.
|
|
|
|
|
![]() |
||
Positioning images when used in lists
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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! |
|
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
|||
|
|||
|
Tried that, doesn't help.
|
|
#5
|
|||
|
|||
|
Yes cat you are right, just add extra space on the top of the image. Then:
![]() heres the site i built a few months ago which uses the above: http://www.ctech3000.com/what_you_get.asp |
|
#6
|
|||
|
|||
|
Many thanks for your replies - adding extra pixels to the top of the .gif worked a treat.
|
|
#7
|
|||
|
|||
|
told ya!
|
![]() |
| Tags |
| positioning, images, used, lists |
| Thread Tools | |
|
|
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 |