Html And Css3 Menu Questions
Thank you for reading my question. I still have a lot to learn regarding HTML and CSS, yet I'm trying. However, this brought me to a problem (I searched around a bit, but couldn't
Solution 1:
I'm not sure whether I understood the question. But to my answer would be:
<divclass="wrap_header"><ul><li><ahref="#">MENU ITEM 1</a></li><li><ahref="#">MENU ITEM 2</a></li><liid="header_logo"><imgsrc="http://www.prskelet.com/images/logotip.jpg"/></li><li><ahref="#">MENU ITEM 3</a></li><li><ahref="#">MENU ITEM 4</a></li></ul></div><!--END wrap_header-->
And style it like so:
ulli{
margin-right:20px;
line-height:200px;
float:left;
}
ulliimg{
height:200px;
width:auto;
}
ullia {
text-decoration:none;
border-bottom:2px solid red;
}
You need to put line height equal to the image height and then vertically align it. To underline text with a color you chose you will need to add border-bottom
.
Here you can see jsFiddle
Post a Comment for "Html And Css3 Menu Questions"