Here is an example of the code:


      
Copy the code

CSS styles:

#tgBigox{
    position: relative;
    width:900px; margin:0 auto; height:30px; line-height:30px; padding-right:65px; overflow:hidden;
}
#tgGoox{
    position: absolute;
    height:30px; line-height:30px;
    top: 0px;
    left:0;
}
#tgGoox a{
    color:#fff;
    margin-left:8px;
    float:left;
}
#tgGoox a:hover{
    color:#57bc54;
}Copy the code


Did this article help you? Welcome to join the front End learning Group wechat group: