I have a quick question regarding the img tag. I have a html markup like the following
<header>
<img src='test.jpg'/>
<ul>
<li> item1 1</li>
<li> item1 2</li>
<li> item1 3</li>
<li> item1 4</li>
</ul>
</header>
I want my image display on the left side of the header and the ul link on the right hand side of the header so both of them will be horizontally align.
Desired result
image items 1 items 2 item 3 item4
other stuff….
It works in FF but not chrome. Chrome is like
image
other stuffs…. items 1 items 2 item 3 item4
It treats image as a block element.
My css
* {
margin: 0;
padding: 0;
}
header {
margin: .2em;
}
header ul {
float: right;
}
header li {
list-style: none;
font: bold .8em arial;
float: left;
margin: .3em;
padding: 1.3em;
background-color: #3D3D3D;
}
Can anyone help me about this weird issue? Thanks a lot!