Form Pushing Div Position Out
-
The site I am working on has two different versions, a mobile view and a desktop view. The cell view has the search form in a completely different area than the desktop site it was originally planned for. Unfortunately, this second search form is pushing the div it is inhabiting completely out of the original design. There isn’t anything wrong with the div, as it works fine without the form. I am including the link to the page I am working on. If you downsize the window less than 600px wide, you will see what I mean. I am also including the relevant divs that are being affected. Thanks in advance for anyone who can help.
<div id="cellsearchbox"> <div id="thrmenu" style="background: none; height: 100%; width: 10%; margin-left: 2%; display: inline-block;" onclick="openNav()"> <div class="bar" style="background-color: white; margin-top: 30%;"></div> <div class="bar" style="background-color: white;"></div> <div class="bar" style="background-color: white;"></div> </div> <div id="searchpackage" style="background-color: white; width: 47%; height: 100%; margin-left: 2%; display: inline-block;"> <form class="search" method="get" action="#" role="search" style=" margin: 0; padding: 0; position: relative;"> <input class="search-input" type="search" name="t" placeholder="<?php _e( '', 'html5blank' ); ?>" style="margin: 0; padding: 0; position: relative; height: 20%; width: 88%;"> <button class="search-submit" id="whicon" type="submit" role="button" style="height: 20%;" onclick="getSearch()"><?php _e( '', 'html5blank' ); ?><img src="http://peggyslittlecorner.com/wp-content/uploads/2019/05/search2i.png" style="height: 10px;"></button> </form> </div> <div id="mini3" style="background: none; width: 26%; height: 100%; margin-left: 6%; margin-right: 2%; display: inline-block;"> <div id="a3" style="background-image: url('http://peggyslittlecorner.com/wp-content/uploads/2019/05/yt_logo_mono_dark-e1559148736342.png'); background-repeat: no-repeat; background-size: contain; background-position: center; width: 20%; height: 100%; margin-left: 0; display: inline-block;"></div> <div id="b3" style="background-image: url('http://peggyslittlecorner.com/wp-content/uploads/2019/05/instalogo.png'); background-repeat: no-repeat; background-size: contain; background-position: center; width: 20%; height: 100%; margin-left: 2%; display: inline-block;"></div> <div id="c3" style="background-image: url('http://peggyslittlecorner.com/wp-content/uploads/2019/05/badgeRGB-white.png'); background-repeat: no-repeat; background-size: contain; background-position: center; width: 20%; height: 100%; margin-left: 2%; display: inline-block;"></div> <div id="d3" style="background-image: url('http://peggyslittlecorner.com/wp-content/uploads/2019/05/mailsym.png'); background-repeat: no-repeat; background-size: contain; background-position: center; width: 20%; height: 100%; margin-left: 2%; display: inline-block;"></div> </div> </div>The page I need help with: [log in to see the link]
The topic ‘Form Pushing Div Position Out’ is closed to new replies.