changing color of rounded corners button with CSS

后端 未结 2 1249
春和景丽
春和景丽 2020-12-22 08:00

thanks a bunch in advance!

i was able to make a rounded corner button using CSS. i like to be able to mouseover the button, and the entire thing changes its color, n

2条回答
  •  旧巷少年郎
    2020-12-22 08:48

    I replaced the outer div with a link and added a little bit of CSS.

    HTML

    
     
     
    Home

    CSS

    .nav_menu {
     text-align: center;
     color: #353535;
     font-size: 20pt;
     font-family: Verdana, Geneva, sans-serif;
     float: left;
     width: 33%;
     text-decoration: none;
    }
    /* For rounded boxes */
    .top_menu {
     display:block
     overflow: hidden;
    }    
    .top_menu * {
     display:block;
     height:1px;
     overflow:hidden;
     font-size:.01em;
     background:#AAAAAA
    }    
    .top_menu1 {
     margin-left:3px;
     margin-right:3px;
     padding-left:1px;
     padding-right:1px;
     border-left:1px solid #AAAAAA;
     border-right:1px solid #AAAAAA;
     background:#AAAAAA
    }
    .top_menu2 {
     margin-left:1px;
     margin-right:1px;
     padding-right:1px;
     padding-left:1px;
     border-left:1px solid #AAAAAA;
     border-right:1px solid #AAAAAA;
     background:#AAAAAA
    }
    .top_menu3 {
     margin-left:1px;
     margin-right:1px;
     border-left:1px solid #AAAAAA;
     border-right:1px solid #AAAAAA;
    }
    .top_menu4 {
     border-left:1px solid #AAAAAA;
     border-right:1px solid #AAAAAA
    }
    .top_menu5 {
     border-left:1px solid #AAAAAA;
     border-right:1px solid #AAAAAA
    }
    .top_menufg {
     background:#AAAAAA
    }
    a.nav_menu:hover b, a.nav_menu:hover div  {
     background-color: #888888;
     cursor: pointer;
    }
    /* For rounded boxes */
    

提交回复
热议问题