Results 1 to 5 of 5

Custom CSS bullet list style is appearing in ALL unorderd lists, even if they have...

This is a discussion on Custom CSS bullet list style is appearing in ALL unorderd lists, even if they have... within the Web Design forums, part of the Web Designing & Development category; ...other bullet types!? I have unordered lists that appear to have two types of bullet styles showing at the same ...

  1. #1
    Junior Member Array
    Join Date
    Jan 2008
    Posts
    1

    Default Custom CSS bullet list style is appearing in ALL unorderd lists, even if they have...

    ...other bullet types!? I have unordered lists that appear to have two types of bullet styles showing at the same time.

    I have a custom bullet that I made and I need to have some lists that have lowercase letters.

    The custom bullets work perfectly where they are needed but they also show up in the lists that have lowercase letters.

    I think it is because of my CSS:

    li {
    padding-left:25px;
    padding-bottom:15px;
    background:transparent url("http://www.geolearning.com/summit/images/summitbullet.gif") no-repeat;
    background-position:0 5px;
    }

    Please tell me how I can have multiple styles of unordered lists.

    I have tried things like

    li 1 {}
    and
    .li 1{}

    but they don't work.

    Please explain the answer clearly and completely- otherwise the directions are impossible to follow!

    Thank you!

  2. #2
    Junior Member Array
    Join Date
    Jan 2008
    Posts
    1

    Default

    Actually the CSS should be applied to the <ul> tag or the <ol> tag, not <li>. So for example, take the CSS you already have and wrap it around

    ul.custom { your css goes here}

    then create another class for the lowercase letter lists:

    ul.letter { whatever css you want here}

    notice also the syntax I've used for classes (based on what you provided, the syntax seems wrong).

    this should do the trick

  3. #3
    msc
    msc is offline
    Member Array msc's Avatar
    Join Date
    May 2009
    Location
    Manchester England
    Posts
    57

    Default Re: Custom CSS bullet list style is appearing in ALL unorderd lists, even if they hav

    Write div specific css code and you will easily get rid of this problem.
    Medical Specialists Blog [COLOR=Blue]| Do follow blog from UK with special focus on health and life style [/COLOR]
    Viagra UK [COLOR=Blue]| UK's first legal online clinic since 2001[/COLOR]

  4. #4
    Senior Member Array akash's Avatar
    Join Date
    Oct 2008
    Location
    Heaven (Earth)
    Posts
    500

    Default Re: Custom CSS bullet list style is appearing in ALL unorderd lists, even if they hav

    you are using the <li> tag for that. this is the wrong way. use <ul> tag for that. the right one is below..


    Code:
    ul{
        padding-left:25px;
    padding-bottom:15px;
        background:transparent url("http://www.geolearning.com/summit/images/summitbullet.gif") no-repeat;
        background-position:0 5px;
    }

  5. #5
    Senior Member Array msn90's Avatar
    Join Date
    May 2009
    Location
    india
    Posts
    146

    Default Re: Custom CSS bullet list style is appearing in ALL unorderd lists, even if they hav

    Quote Originally Posted by akash View Post
    you are using the <li> tag for that. this is the wrong way. use <ul> tag for that. the right one is below..


    Code:
    ul{
        padding-left:25px;
    padding-bottom:15px;
        background:transparent url("#") no-repeat;
        background-position:0 5px;
    }
    I agree with him you have used li instead of ul. That is the reason it is not working properly.



Similar Threads

  1. Replies: 5
    Last Post: 04-20-2011, 09:34 AM
  2. How to Build An Opt-In Mailing Lists?
    By SticKer in forum Advertising & Promotion
    Replies: 0
    Last Post: 03-13-2008, 11:57 AM
  3. Replies: 0
    Last Post: 03-13-2008, 11:49 AM
  4. Urban Style WordPress Theme
    By SticKer in forum Freebies
    Replies: 0
    Last Post: 06-15-2007, 03:00 AM

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
  •  
SEO Forum | Web Hosting Forum | Websites For Sale |