Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I make a header like for facebook?
    primarykey
    data
    text
    <p>I am trying to a make a header exactly like for facebook but when I make it fixed its content inside starts changing position on window resize . Like here <a href="http://www.housetostay.co.za/" rel="nofollow">http://www.housetostay.co.za/</a> how can I fix this Below is my code </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; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class = "heading"&gt; &lt;table id ="headertable" align="left"&gt; &lt;tr&gt; &lt;td&gt; &lt;a href="http://www.housetostay.co.za"&gt; &lt;h2 class= "logo"&gt;HouseToStay&lt;/h2&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;/a&gt; &lt;/td&gt; &lt;td&gt;&lt;a href="http://www.housetostay.co.za" class="button middle"&gt;How it works&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="http://www.housetostay.co.za" class="button middle"&gt;Contact us&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="register.php" class="button middle"&gt;PostAd&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="jobs.php" class="button middle"&gt;Jobs&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="http://www.housetostay.co.za" class="button middle"&gt;Buy it&lt;/a&gt;&lt;/td&gt; &lt;td&gt; &lt;/td&gt; &lt;/table&gt; &lt;table class ="profile"&gt; &lt;tr&gt; &lt;td&gt; &lt;h2&gt;user&lt;/h2&gt; &lt;/td&gt; &lt;td&gt; &lt;img src="bhubezi/images/logos/nopic.png" width="50" height="40"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; </code></pre>
    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.
 

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