我有這樣的CSS代碼更高:如何讓一個div的比其他兩個
#naviga {
text-align:center;
padding-top: 20px;
}
#nav {
display:inline;
padding-top: 0px;
color: #fff;
text-transform: uppercase;
text-decoration: none;
-webkit-box-shadow: 0 0 0 0 #ffffff;
box-shadow: 0 0 0 0 #ffffff;
-webkit-transition: all 250ms linear;
-moz-transition: all 250ms linear;
-ms-transition: all 250ms linear;
-o-transition: all 250ms linear;
transition: all 250ms linear;
}
#nav a {
color: #fff;
text-transform: uppercase;
text-decoration: none;
-webkit-box-shadow: 0 0 0 0 #ffffff;
box-shadow: 0 0 0 0 #ffffff;
-webkit-transition: all 250ms linear;
-moz-transition: all 250ms linear;
-ms-transition: all 250ms linear;
-o-transition: all 250ms linear;
transition: all 250ms linear;
padding-bottom: 3px;
letter-spacing: 1px;
margin-left: 20px;
}
#nav a:hover {
-webkit-box-shadow: #fff;
box-shadow: 0 3px 0 0 #fff;
opacity: 0.7;
}
#loggo {
display:inline;
background-image: url(http://i.imgur.com/qhrrawQ.png);
height: 50px;
width: 55px;
margin-left: 20px;
}
...這HTML代碼:
<div id="naviga">
<div id="nav"><a href="">uno</a> <a href="">due</a> <a href="">tre</a></div>
<div id="loggo"></div>
<div id="nav"><a href="">quattro</a> <a href="">cinque</a> <a href="">sei</a></div>
</div>
</div>
這是什麼出來:
這就是我想要它出來的樣子:
我該怎麼辦?
謝謝你,它的工作! :) – gab