Note that there are some explanatory texts on larger screens.

plurals
  1. PODIV's Moving When Zooming in and out
    primarykey
    data
    text
    <p>I have just recently created a website which uses multiple divs. I then zoomed in and out, and particular DIV's move to the left corner, whilst the others move to the right corner of the screen.<br> Below are the codes for my website, if anyone could help me it would be much appreciated. I have left out majority of the body after the header, as it is affected, but was thinking that this error was to do with one of the DIV's such as the "container" div, and not in a detail in each particular DIV.</p> <p><strong>HTML</strong>:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt; Test Website&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="index.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="container"&gt; &lt;div id="top_section"&gt; &lt;div id="logo"&gt; &lt;img src="images/pbc_WHITE_bg.tif" width="180px" height="168px"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="navigation"&gt; &lt;ul id="nav_menu"&gt; &lt;li&gt;&lt;a href="#"&gt;HOME &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt; NEWS&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt; MEDIA &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt; CONTACT&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong>:</p> <pre><code>{ position: relative; margin: 0; padding: 0; font-weight: lighter; } body { padding: 0px; } p { color: grey; font-family: "brandon-grotesque",sans-serif; font-size: 13px; } h1 { color: black; font-weight: lighter; font-size: 14px; font-family: "brandon-grotesque",sans-serif; } a { font-size: 14px; color: grey; font-family: "brandon-grotesque",sans-serif; } #container { margin: 0px auto; /*background: pink;*/ width: 100%; height: 169px; border-bottom: 1px solid #F2F2F2; } #top_section { width: 400px; height: 170px; /*background: black;*/ float: left; } #logo { margin-left: 170px; } #navigation { position: relative; background: blue; margin-top: 70px; width: 700px; float: right; margin-right: 50px; } ul#nav_menu { list-style-type: none; } ul#nav_menu li { display: inline-block; padding-right: 5px; width: 150px; text-align: right; position: relative; float: left; } ul#nav_menu li a{ text-decoration: none; text-align: right; } </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