Give the div with the logo id width and set its margin-left and margin-right css properties automatically. Also setting the maximum width to 100% will ensure responsive behavior.
#logo{ width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; text-align: center; float: left; }
and I hope you have already done this, but ..
#logo img{ max-width: 100%; height: auto; }
UPDATE:
Change your markup this way
<div id="container-top"> <div id="logo"> <a href="http://dev.jzm.co.nz/mytime/"><img src="http://dev.jzm.co.nz/mytime/image/data/logo-black-web.png" title="My Time Candles" alt="My Time Candles"></a> </div> <div id="search" class="visible"> <div class="button-search">Search</div> <input type="text" name="filter_name" value="Search ... " onclick="this.value = '';" onkeydown="this.style.color = '#000000';"> </div> </div> #container-top{ position: relative; } #search{ top: 15%; right: 0; }
But then you have to use media queries to configure #search css as layout changes. I also made some CSS changes above (before the update section).
source share