This is a discussion on "unordered list - strange behavior" within the Web Page Design section. This forum, and the thread "unordered list - strange behavior are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
unordered list - strange behavior
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
unordered list - strange behavior
hi,
I'm trying to construct an unordered list with custom bullets. However, the <li> elements appear one after the other (instead of one on top of the other like it should be). Maybe I have messed up the alignement, I don't know. CSS:
Last edited by Marc; Dec 6th, 2007 at 11:42. Reason: Split the html & css up into different boxes so it's easier to read. |
|
|
|
#2
|
||||
|
||||
|
Re: unordered list - strange behavior
Can we see the image called 'category-arrow.gif'?
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#3
|
|||
|
|||
|
Re: unordered list - strange behavior
This formats the <li>s as inline elements: they behave like text in a paragraph. Consequently, they will line up alongside each other, rather than start a new line. Take out that line of code, and it should work. |
|
#4
|
||||
|
||||
|
Re: unordered list - strange behavior
Haha.. That's what i get for not looking past the image line of code!!! DOH!
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#5
|
|||
|
|||
|
Re: unordered list - strange behavior
Marc, you mean: <HomerSimpson>D'oh!</HomerSimpson>
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#6
|
|||
|
|||
|
Re: unordered list - strange behavior
hi,
the image is just a stupid small image, but it's not the problem. I also tried removing the "inlined" attribute of <li> but it didn't help. Probably the css for <li> inherits some of the attributes from another element... What should be the "display" attribute? |
|
#7
|
|||
|
|||
|
Re: unordered list - strange behavior
Should be: { display: block }
|
|
#8
|
|||
|
|||
|
Re: unordered list - strange behavior
thanks
so I guess obviously it inherited the display from a parent node... Best, Pesho |
|
#9
|
|||
|
|||
|
Re: unordered list - strange behavior
uups, I have one more question:
I'd like to add a number on the right of every <li> Something like:
|
|
#10
|
|||
|
|||
|
Re: unordered list - strange behavior
Very likely.
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unordered list problem in FF | alexgeek | Web Page Design | 4 | Sep 10th, 2007 15:26 |
| Image bullets on unordered list | Kobrakai | Web Page Design | 4 | Aug 15th, 2007 18:27 |
| Strange form submit behavior in IE | Donny Bahama | PHP Forum | 3 | Apr 27th, 2007 19:36 |
| Unordered list under background image | AdRock | Web Page Design | 4 | Aug 7th, 2006 12:43 |
| CSS Unordered List Problem | relph2 | Web Page Design | 3 | Jan 7th, 2006 18:14 |