SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: list and image

  1. #1
    SitePoint Zealot Noodle7's Avatar
    Join Date
    Apr 2005
    Location
    Cape Town - South Africa
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    list and image

    Hi

    I created a nav bar which is a list and the one menu item in nav bar needs a trolley next to it, how does that work in a list ? How do I put just one pic next to just one menu item in a list instead of it being applied to all the menu items?

    Thanks
    First stop - Earth!

  2. #2
    SitePoint Zealot erikwebb's Avatar
    Join Date
    Dec 2003
    Location
    Atlanta, GA
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you just want to put it next to one, either make that item a difference class and use the list-style-image css property or just add a <img> tag.

    --Erik

  3. #3
    Object Not Found junjun's Avatar
    Join Date
    Mar 2002
    Location
    northern MI
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    list-style-image is the way to go when all you want to do is replace the default bullet in lists with your image:
    http://www.domedia.org/oveklykken/cs...ullet-list.php

  4. #4
    SitePoint Guru DCS's Avatar
    Join Date
    Apr 2002
    Location
    Arkansas
    Posts
    809
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by erikwebb
    If you just want to put it next to one, either make that item a difference class and use the list-style-image css property or just add a <img> tag.

    --Erik
    Or you can use id as well!

  5. #5
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by junjun
    list-style-image is the way to go when all you want to do is replace the default bullet in lists with your image:
    http://www.domedia.org/oveklykken/cs...ullet-list.php
    I find you get better control of positioning using background-image instead of list-style-image.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •