Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using <code>&lt;table&gt;</code> for layout is generally frowned upon, and in this case makes it harder to achieve what you're trying to do. I would recommend replacing your <code>&lt;table&gt;</code>-based layout with more standard HTML elements (for example, by putting your menu into a list <code>&lt;ul&gt;</code> and your user profile into its own <code>&lt;div&gt;</code>), then absolutely positioning those elements and giving them explicit pixel positions. Then they shouldn't move around when you resize the window.</p> <p>Here's an example (using your own code with as few modifications as possible):</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style&gt; .heading { display:block;top:0px;left:0px;right:0px;height:20px;position:fixed;border:1px solid #888;padding:0px;text-align:center;font-weight:bold;color:#000;background: #ccc;width: 100%;height: 100px;z-index:3; } #logo { position:absolute; /* This will keep it one place */ left:200px; /* This specifies what place */ } #menu { position:absolute; /* This will keep it one place */ left:320px; /* This specifies what place */ width:400px; /* This makes sure the menu doesn't shrink if the window is made smaller */ list-style-type:none; } #menu li { float:left; margin-right:10px; } #profile { position:absolute; /* This will keep it one place */ left:750px; /* This specifies what place */ width:100px; /* This makes sure the profile doesn't shrink if the window is made smaller */ } #profile h2 { display:inline; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="heading"&gt; &lt;a href="http://www.housetostay.co.za" id="logo"&gt; &lt;h2&gt;HouseToStay&lt;/h2&gt; &lt;/a&gt; &lt;ul id="menu"&gt; &lt;li&gt;&lt;a href="http://www.housetostay.co.za" class="button middle"&gt;How it works&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="http://www.housetostay.co.za" class="button middle"&gt;Contact us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="register.php" class="button middle"&gt;PostAd&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="jobs.php" class="button middle"&gt;Jobs&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="http://www.housetostay.co.za" class="button middle"&gt;Buy it&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="profile"&gt; &lt;h2&gt;user&lt;/h2&gt; &lt;img src="bhubezi/images/logos/nopic.png" width="50" height="40"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>Edit</strong>: added explicit pixel positions to header elements.</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.
    1. VO
      singulars
      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