WordPress.org

Ready to get started?Download WordPress

Forums

Background colour on category headings (5 posts)

  1. shadow
    Member
    Posted 9 years ago #

    Hi,
    Site: http://fools.os42.com
    I am not having a very successful time trying to play around with a background colour on the category headings in the menu. Can someone with knowledge in css point me in the right direction?
    Thanks muchly for any advice :)

  2. Minna
    Member
    Posted 9 years ago #

    Hey shadow,
    I may be thick (or tired), but I, at least, don't exactly understand what you mean :D

  3. shadow
    Member
    Posted 9 years ago #

    Hi Minna,
    It's probably my fault for not explaining myelf properly. Sorry.
    In my menu there are some category headings. At the moment they are sitting on a colourful backing which makes them a bit difficult to read, BUT I would like to either put a small image behind each heading or place a colour behind so that the words stand out a bit better.
    I hope that explains things a little more clearly...
    Any ideas how to add this to the css?

  4. shadow
    Member
    Posted 9 years ago #

    Thanks Minna. I have given all of these ideas a try but not having much success to be honest.
    Ideally, I would like to make some kind of opaque effect happen behind the category headings which should lift the text just enough to make it stand out a bit more clearly. But as to how to do this is beyond me right now..
    One thing I am pleased about so far is the gallery @ http://fools.os42.com/gallery1.php
    It's simple but effective.
    Anyway - it's definitely all a work in progress :)
    Thanks for taking the time to voice your ideas....

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Wrap it in a div:

  6. <div class="cat1">Categories</div>

      <?php wp_list_cats(); ?>

  7. Then style cat1 with a background colour.
    If you want to alter the actual textproperties, you can do that too this way, but the effects will cascade.
    The downside of this way is that if the colour goes past the last letter to the side, so ths span suggection above could be better ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.