WordPress.org

Ready to get started?Download WordPress

Forums

help with categories (wp_cat_list) (8 posts)

  1. Brody
    Member
    Posted 8 years ago #

    Guys, help! Cannot figure out! I have 3 levels in my categories list. I want to have different styles for each (a column with different colours for certain levels). I searched everything, but the only thing i can see is that you can play with nested list styles, but you have certain restrictions. as an example of what i'm trying to do you can see menu on avid-edu.ru - if i'll use nested lists i cannot do at least the same width for all items... hope you can understand what i mean. thanks!

  2. VaamYob
    Member
    Posted 8 years ago #

    You can change the background color of the different nested levels with css.

  3. moshu
    Member
    Posted 8 years ago #

    You mean what is in the ?авигаци? (Navigation) part of that site?
    First: that's not a WP site. Second: The navigation section is all table.

    What is what you cannot do with styling nested lists?

  4. Brody
    Member
    Posted 8 years ago #

    Yes, thats right. Its not WP. They are using styles for A within DIV. What I cannot reach with CSS - hope its my lack of knowladge - i want to have something that looks like a table (as you say - its a table, but its not - it is DIVs) thats the effect i want to reach... with nested list i don't know how to do it :( the width for each level of nest is different, i cannot reach the same result as on avid-edu.ru.

  5. moshu
    Member
    Posted 8 years ago #

    On avid-edu.ru. it is table - check and read the source code!

    A good start: http://css.maxdesign.com.au/listamatic/
    see also: http://css.maxdesign.com.au/listutorial/sub_introduction.htm

  6. Brody
    Member
    Posted 8 years ago #

    Well, it is inside the table, but all the links are within divs... Ok, i'll try to read :)

  7. moshu
    Member
    Posted 8 years ago #

    I don't know what is sooo complicated.
    Now forgetting that Russian site, you have to set up your categories and subcategories and then take a look at your own source code to see what is the code generated by WP. Is it nested lists? Is it giving classes to lists? Then write your stylesheet accordingly.

  8. Brody
    Member
    Posted 8 years ago #

    Yeah, those are nested lists, and no - it is not giving classes, but link from Moshu explains everything, thanks! Sorry, it is not indeed a WP issues, its about my bad knowladge of css. well, thanks, know i see what was the problem. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags