Note that there are some explanatory texts on larger screens.

plurals
  1. POCss align left, center and right, not working
    text
    copied!<p>Here is what i am trying to do: I want the css to show divs like this:</p> <p>Left(show logo here) Center(show left,mid,right divs here together) right(show return here) </p> <p>I have following code:</p> <pre><code>&lt;div id="top" class="top"&gt; &lt;asp:Panel ID="Srch" runat="server" EnableViewState="False" Wrap="False"&gt; &lt;div id="logo"&gt; &lt;asp:ImageButton ID="logo" runat="server" ImageUrl="/images/logo.gif" /&gt; &lt;/div&gt; &lt;div id="left"&gt;&lt;/div&gt; &lt;div id="mid"&gt; &lt;asp:textbox id="txtSearch" runat="server"&gt;&lt;/asp:textbox&gt; &lt;asp:button id="find" runat="server" Text="find"/&gt; &lt;/div&gt; &lt;div id="right"&gt;&lt;/div&gt; &lt;div id="return"&gt; &lt;asp:HyperLink ID="i" runat="server" Text="return"&gt;&lt;/asp:HyperLink&gt; &lt;/div&gt; &lt;/asp:Panel&gt; &lt;/div&gt; </code></pre> <p>here is css i have so far:</p> <pre><code>#Srch { position:absolute; top:10px; height: 35px; float:left; margin-left:19px; width: 100%; border:thick solid black; } #left { position:absolute; background: url(/images/searchBG_left_10x35.png) repeat-x; top: 15px; width: 10px; height: 35px; left:50%; } #mid { position:absolute; background: url(/images/searchBG_mid_1x35.png) repeat-x; top: 15px; height: 35px; float:left; } #right { position:absolute; background: url(/images/searchBG_right_10x35.png) repeat-x; top: 15px; width:9px; height:35px; float:left; } #return { position:absolute; float: right; top: 15px; font-size: 11px; font-weight: bold; font-family: Arial; text-decoration: underline; color: Blue; } #logo { position:absolute; float: left; left: 0px; bottom: 0px; } #txtS { width: 285px; height: 18px; position: relative; top: 8px; float: left; display: inline; font-size: 11px; font-weight: bold; font-family: Arial; border: 0px; color: #000000; margin-right:3px; } #find { position: relative; top: 8px; float: left; display: inline; width: 50px; height: 18px; cursor: pointer; } </code></pre>
 

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