Try to search your question here, if you can't find : Ask Any Question Now ?

Can't seem to get two divs next to each other

HomeCategory: stackoverflowCan't seem to get two divs next to each other
Avatarjulie asked 2 weeks ago

I want the menu icon to stay on the left and my logo to be in the middle, but I want them to be on the same horizontal level.

This is what it looks like now and what I want it to look like:

.topnav a.icon {
  margin-right: 0em;
  margin-top: 0em;
  text-align: left;
  float: left;
  display: block;

.mobile_logo {
  margin: auto;
  float: middle;
  display: block;
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
  <img src="img/s_personal_logo_mobile.png" />
<div class="mobile_logo">
  <img class="mobile_logo" src="img/s_personal_logo_black.png" width="25%" height="25%" />
1 Answers
Best Answer
AvatarMannu answered 2 weeks ago
Your Answer

7 + 7 =

Popular Tags

WP Facebook Auto Publish Powered By :