Note that there are some explanatory texts on larger screens.

plurals
  1. POhtml moving when resizing browser
    primarykey
    data
    text
    <p>I'm having issues with parts of html moving when browsers is resized. I've tried all the solutions here but nothing seems to be working. I am new to this so maybe doing this wrong. Any guidance would be greatly appreciated!</p> <p>here is my code html and css </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; &lt;title&gt;PUMPED|Building Your Best You&lt;/title&gt; &lt;link href="master.css" rel="stylesheet" type="text/css" /&gt; &lt;script type="text/javascript"&gt; function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i&lt;a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&amp;&amp;i&lt;a.length&amp;&amp;(x=a[i])&amp;&amp;x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))&gt;0&amp;&amp;parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&amp;&amp;d.all) x=d.all[n]; for (i=0;!x&amp;&amp;i&lt;d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&amp;&amp;d.layers&amp;&amp;i&lt;d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x &amp;&amp; d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i&lt;(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } &lt;/script&gt; &lt;/head&gt; &lt;body onload="MM_preloadImages('images/home3_over.png','images/home8_over.png','images/home12_over.png')"&gt; &lt;div id="home1"&gt;&lt;/div&gt; &lt;div id="home2"&gt;&lt;/div&gt; &lt;div id="home3"&gt; &lt;a href="http://gum.co/Pumped" target="_blank"&gt;&lt;img src="images/home3.png" width="262" height="63" id="Image1" onmouseover="MM_swapImage('Image1','','images/home3_over.png',1)" onmouseout="MM_swapImgRestore()" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div id="home4"&gt;&lt;/div&gt; &lt;div id="home5"&gt;&lt;/div&gt; &lt;div id="home6"&gt;&lt;/div&gt; &lt;div id="house7"&gt; &lt;a href="https://gumroad.com/l/Pumped" target="_blank"&gt;&lt;img src="images/home7.png" width="202" height="64" id="Image2" onmouseover="MM_swapImage('Image2','','images/home8_over.png',1)" onmouseout="MM_swapImgRestore()" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div id="home8"&gt;&lt;/div&gt; &lt;div id="home9"&gt;&lt;/div&gt; &lt;div id="home10"&gt;&lt;/div&gt; &lt;div id="home11"&gt; &lt;a href="https://gumroad.com/l/Pumped" target="_blank"&gt;&lt;img src="images/home11.png" width="262" height="64" id="Image3" onmouseover="MM_swapImage('Image3','','images/home12_over.png',1)" onmouseout="MM_swapImgRestore()" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div id="home12"&gt;&lt;/div&gt; &lt;div id="home13"&gt;&lt;/div&gt; &lt;div id="container"&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>css</p> <pre><code>@charset "UTF-8"; #container { float: left; height: 500px; width: 1360; margin-right: auto; margin-left: auto; } #wrapper { margin-left: auto; margin-right: auto; min-width:960px; } #home1 { background-image: url(images/home1.png); margin: 0px; padding: 0px; float: left; height: 420px; width: 1360px; } #home2 { background-image: url(images/home2.png); margin: 0px; padding: 0px; float: left; height: 63px; width: 548px; } #home3 { background-image: url(images/home3.png); margin: 0px; padding: 0px; float: left; height: 63px; width: 262px; } #home4 { background-image: url(images/home4.png); margin: 0px; padding: 0px; float: left; height: 63px; width: 550px; } #home5 { background-image: url(images/home5.png); margin: 0px; padding: 0px; float: left; height: 492px; width: 1360px; } #home6 { background-image: url(images/home6.png); margin: 0px; padding: 0px; float: left; height: 64px; width: 560px; } #house7 { background-image: url(images/home7.png); margin: 0px; padding: 0px; float: left; height: 64px; width: 202px; } #home8 { background-image: url(images/home8.png); margin: 0px; padding: 0px; float: left; height: 64px; width: 598px; } #home9 { background-image: url(images/home9.png); margin: 0px; padding: 0px; float: left; height: 1549px; width: 1360px; } #home10 { background-image: url(images/home10.png); margin: 0px; padding: 0px; float: none; height: 64px; width: 860px; } #home11 { background-image: url(images/home11.png); margin: 0px; padding: 0px; float: left; height: 64px; width: 262px; } #home12 { background-image: url(images/home12.png); margin: 0px; padding: 0px; float: left; height: 64px; width: 238px; } #home13 { background-image: url(images/home13.png); margin: 0px; padding: 0px; float: left; height: 128px; width: 1360px; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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