Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy the div menu renders outside of header?
    primarykey
    data
    text
    <p>Here is HTML/Razor view:</p> <pre><code> &lt;/head&gt; &lt;body&gt; &lt;header&gt; &lt;div class="divHeader"&gt; Title Here &lt;/div&gt; &lt;div class="divMenu"&gt; &lt;nav&gt; &lt;ul id="menu"&gt; &lt;li&gt;@Html.ActionLink("Home", "Index", "Home")&lt;/li&gt; &lt;li&gt;@Html.ActionLink("About", "About", "Home")&lt;/li&gt; &lt;li&gt;@Html.ActionLink("Contact", "Contact", "Home")&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/div&gt; &lt;/header&gt; &lt;div class="divBody"&gt; @RenderBody() &lt;/div&gt; &lt;footer&gt; &lt;div class="divFooter"&gt; All Rights Reserved. &lt;/div&gt; &lt;/footer&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Here is CSS:</p> <pre><code>body { margin: 0 auto; max-width: 960px; padding: 0px; background-color: White; text-align: center; } header { height: 60px; background-color: #C0C0C0; } footer { height: 20px; background-color: #C0C0C0; } div.divHeader { color: #006600; font-style: normal; font-family: Shruti; font-size: 3em; font-weight: bold; } div.divBody { color: #000000; font-style: normal; font-family: Georgia; font-size: small; font-weight: normal; text-align: left; } div.divFooter { color: #006600; font-style: italic; font-family: Shruti; font-size: 0.75em; font-weight: bold; } header div.divMenu { position: relative; } /* menu ----------------------------------------------------------*/ ul#menu { font-size: 1.3em; font-weight: 600; margin: 0; text-align: left; } ul#menu li { display: inline; list-style: none; padding-right: 15px; } ul#menu li a { background: none; color: #999; text-decoration: none; } ul#menu li a:hover { color: #333; text-decoration: none; } </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.
    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