Note that there are some explanatory texts on larger screens.

plurals
  1. POhtml issue ,a div positioning problem
    primarykey
    data
    text
    <p>I have implemented a facebook style search suggestion feature for my application . But , I am facing some issues here .</p> <p>i) Below is the search box and the result div code :</p> <pre><code>&lt;div align="right" style=" width:300px; float:right; margin-right:30px"&gt; &lt;input type="text" id="searchbox" class="searchbox" maxlength="100" style="color: rgb(170, 170, 170);"&gt;&amp;nbsp; &amp;nbsp;&lt;img src="../../../asset/images/search.png" style="margin:0 0 -5px 2px"&gt;&lt;br&gt;&lt;br&gt; &lt;input type="hidden" value="http://www.plus-one-me.com/search/google/interests" id="formurl" name="formUrl"&gt; &lt;div id="display"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>The search results get displayed within the <strong>#display</strong> div as below:</p> <pre><code>&lt;div id="display" style="display: block;"&gt; &lt;div class="display_box" align="left"&gt; Cakephp &lt;/div&gt; &lt;div class="display_box" align="left"&gt; Myspace &lt;/div&gt; &lt;div class="display_box" align="left"&gt; Php &lt;/div&gt; &lt;/div&gt; </code></pre> <p>This is how the page looks before we enter anything in the search area : <img src="https://i.stack.imgur.com/Vo8RC.jpg" alt="enter image description here"></p> <p>Below is what the search results div is doing :</p> <p><img src="https://i.stack.imgur.com/9EfcC.jpg" alt="enter image description here"></p> <p>Basically , it brings down the menu in my main content area . So how can I fix this using CSS ?</p> <p>Below are the styles :</p> <p>of the menu div in the background (containing the options <strong>Home</strong>,<strong>History</strong> and <strong>Settings</strong></p> <pre><code>.menuBar .submenu { padding:4px 12px 5px 12px; margin-right:8px; border:2px solid #EEE; text-decoration:none; display:inline-block; float:left; font-size:13px; -moz-border-radius:40px; border-radius:40px; -webkit-border-radius:40px; -moz-box-shadow:0 1px 3px #777; -webkit-box-shadow:0 2px 3px #777; box-shadow:0 2px 3px #777; color:#333; background: -webkit-gradient(linear, 0 0, 0 70%, from(#765), to(#FFF)); background: -webkit-linear-gradient(#000, #FFF 70%); background: -moz-linear-gradient(#BBB, #FFF 100%); background: -ms-linear-gradient(#765, #FFF 70%); background: -o-linear-gradient(#765, #FFF 1000%); background: linear-gradient(#765, #FFF 70%); -pie-background: linear-gradient(#765, #FFF 70%); } </code></pre> <p>of my searchbox :</p> <pre><code>#searchbox { border: 1px solid #000000; padding: 3px; width: 250px; } </code></pre> <p>and the display_box for individual results :</p> <pre><code>.display_box { border-top: 1px solid #DEDEDE; font-size: 12px; height: 30px; padding: 4px; } </code></pre> <p><img src="https://i.stack.imgur.com/9EfcC.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload