WordPress.org

Ready to get started?Download WordPress

Forums

css not working for language header (2 posts)

  1. qwertyjjj
    Member
    Posted 1 year ago #

    I added the following css to wpml. It works changing the background to grey but not on this 1 page where 1 of the background languages stays white. Any ideas why?

    http://www.sidekicker.net
    [css]
    #lang_sel_list {
    background-color: rgb(248,248,248);
    width: 200px;
    margin: 0 auto;
    height: 19px;
    }
    #lang_sel_list ul {
    background-color: rgb(248,248,248);
    width: inherit;
    border: none;
    }
    #lang_sel_list li {
    background-color: rgb(248,248,248);
    float:left;
    width: 125px;
    text-align:center;
    border:none;
    }
    #lang_sel_list a, #lang_sel_list a:visited {
    background-color: rgb(248,248,248);
    border-width: 1px;
    margin-left: -1px;
    }
    #lang_sel_list a:hover {
    background-color: red;
    }
    #icl_lang_sel_widget li, #lang_sel_list ul, #lang_sel_list li {
    width: 100px;
    float:right;
    }

    [/css]

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Target the anchor tag as well, e.g;

    #lang_sel_list,
    #lang_sel_list ul,
    #lang_sel_list li,
    #lang_sel_list a,
    #lang_sel_list a:visited { background-color: rgb(248,248,248); }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.