Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to put the text of footer in center and the links of menu in center and next to each other?
    primarykey
    data
    text
    <p>I am expected result and the code are as following. My current style works but the problem is that the footer is too wide and and menu1.menu2,menu3 are not as illustrated blew,</p> <p><strong>Expected result</strong></p> <pre><code> 50% |LeftHeader middleHeader RightHeade| 50% 50% | Menu1 Menu2 Menu3 | 50% 50% |Content goes here ***********************************************| 50% |*****************************************************************| 50% | text of Footer goes here | 50% </code></pre> <p>These lines >> | show the border sections for example footer is that big but its text should be in center.</p> <p>My code is as following</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style&gt; #wrapper { margin: 0 auto; width:50%; } #header { background-color:#faa; height:50px; font-size: 0; } #header &gt; div { display: inline-block; width: 33.3333%; font-size: 12pt; height: 100%; } #left { background-color:red; height:20px; } #middle { background-color:yellow; height:20px; } #right { background-color:green; height:20px; } #menu { width: 100%; margin: 0 auto; background-color:#faa; height: 20px; font-size: 0; } #menu &gt; a { display: inline-block; font-size: 12pt; width: 33.333% } #leftm { text-align: right; } #content { top:50px; bottom:150px; overflow:auto; } #footer { bottom: 0; width: 100%; background-color:#afa; height:150px; position:fixed; } #footer &gt; div { margin-left: 50%; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrapper"&gt; &lt;div id="header"&gt; &lt;div id="left"&gt; left header &lt;/div&gt; &lt;div id="middle"&gt; middle &lt;/div&gt; &lt;div id="right"&gt; right header &lt;/div&gt; &lt;/div&gt; &lt;div id="menu"&gt; &lt;div id="leftm"&gt;&lt;a href="#"&gt;menu1&lt;/a&gt;&lt;/div&gt; &lt;a href="#"&gt;menu2&lt;/a&gt; &lt;a href="#"&gt;menu3&lt;/a&gt; &lt;/div&gt; &lt;div id="content"&gt; vbcfxbfgbfcgbfg &lt;/div&gt; &lt;div id="footer"&gt; &lt;div id="footertext"&gt; And here's the footer &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>Result of my current code </p> <pre><code> 50% |LeftHeader middleHeader RightHeade| 50% 50% |Menu1 Menu2 Menu3 | 50% 50% |Content goes here ***********************************************| 50% |*****************************************************************| 50% | text of Footer goes here | 50% </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    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