I am looking to position an image on the left side of some text and have it adjust based on window resolution.
Without the image, this is how it appears: http://prntscr.com/fmky4f
This is the desired appearance after adding the image:
My code snippet:
.xd {
font-size: 20px;
list-style: none;
margin: 0;
padding: 0;
text-align: center;
}
.xd li {
display: inline;
}
.xd a {
display: inline-block;
padding: 5px;
color: #080808;
}
.logo {
width: 10%;
height: auto;
float: left;
}
<div class="container">
<div id="container-fluid">
<ul class="xd">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="about.html">About Us</a>
</li>
<li>
<a href="news.html">News</a>
</li>
<li>
<a href="gallery.html">Gallery</a>
</li>
<li>
<a href="map.html">Map</a>
</li>
<li>
<a href="contact.html">Contact Us</a>
</li>
</ul>
</div>
I attempted to add the image using the .logo class properties, but did not achieve the desired result.