Note that there are some explanatory texts on larger screens.

plurals
  1. PO<div> won't position properly in Chrome or Safari, but works perfectly in Firefox
    primarykey
    data
    text
    <p>I'm redoing my site design at the moment I have a popout subscribe div at the side of the page. You can see my draft <a href="http://freedomrequireswings-portal.blogspot.fr/" rel="nofollow noreferrer">here</a>: </p> <p>It works perfectly in Firefox, but in Chrome and Safari it sticks out a bit.</p> <p>Here's my HTML:</p> <pre><code>&lt;div id='Subscribe' style='z-index:10;position:fixed; top:376px; right:-231px; padding-left: 15px;display: inline-block;'&gt; &lt;table background='http://4.bp.blogspot.com/-gVytZ17cmL0/UAVf1PGc_tI/AAAAAAAABjM/rFNd4dqfwF4/s1600/background.PNG' cellpadding='5' cellspacing='0' id='side' style='border-left: 10px solid #565656; box-shadow: 0px 0px 5px #898989;' width='35px'&gt; &lt;tbody&gt; &lt;tr style='box-shadow: 0 1px 4px -3px #5E5E5E;'&gt; &lt;td&gt; &lt;font style='font-family:Lobster; color:#1bb4c6;font-size:18px;'&gt;Subscribe&lt;/font&gt;&lt;br/&gt; &lt;form action='http://feedburner.google.com/fb/a/mailverify' id='search-form1' method='post' onsubmit='window.open(&amp;apos;http://feedburner.google.com/fb/a/mailverify?uri=freedomrequireswings&amp;apos;, &amp;apos;popupwindow&amp;apos;, &amp;apos;scrollbars=yes,width=550,height=520&amp;apos;);return true' style='border:0px solid #ccc;text-align:left;margin-top:-20px;' target='popupwindow'&gt; &lt;p&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;input name='email' onblur='if(this.value==&amp;apos;&amp;apos;)this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value=&amp;apos;&amp;apos;;' style='box-shadow: 2px 2px 2px #121212; font-family:Segoe UI, Yanone Kaffeesatz, trebuchet MS;height:30px;padding-left:5px;padding-right:5px;font-size:16px;color:#636363;' type='text' value='email@example.com' vinput=''/&gt; &lt;input name='uri' type='hidden' value='FreedomRequiresWings'/&gt; &lt;input name='loc' type='hidden' value='en_US'/&gt; &lt;/td&gt; &lt;td&gt; &lt;div style='padding-top:3px;'&gt; &lt;input src='http://1.bp.blogspot.com/-4zEgvyYwgH0/UAnajptLwxI/AAAAAAAABkw/lI_MFSWY1P8/s1600/sub%252B.png' style='height:49px !important; width:49px !important;' type='image'/&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/p&gt; &lt;/form&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; </code></pre> <p>And the CSS:</p> <pre><code>#Subscribe:hover { transform: translate(-231px,0); -ms-transform: translate(-231px,0); -webkit-transform: translate(-231px,0); -o-transform: translate(-231px,0); -moz-transform: translate(-231px,0); transition: all 0.2s ease-in; -webkit-transition: all 0.2s ease-in; -moz-transition: all 0.2s ease-in; -o-transition: all 0.2s ease-in; -ms-transition: all 0.2s ease-in; position:fixed; display: inline-block; } #Subscribe { transition: all 1s ease-in-out; -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; -ms-transition: all 1s ease-in-out; display: inline-block; } #search-form1 input { width: 150px; -moz-transition: width 0.5s ease-out; -webkit-transition: width 0.5s ease-out; transition: width 0.5s ease-out; } #search-form1 input:focus { width: 250px; -moz-transition: width 0.5s ease-out; -webkit-transition: width 0.5s ease-out; transition: width 0.5s ease-out; } </code></pre> <p>#search-form1 is the form for the email address to be put into. It's called search-form1 because I copied that particular code from a tutorial and I didn't change it. That works perfectly, all the functionalities are working, it's just that the div won't hide properly in Chrome or Safari. Haven't tried it on Opera. When I change the position:right property to -233px, it hides properly in Chrome and Safari, but it's in too far in Firefox.</p> <p>I was wondering if anyone could help me with this?</p> <p>PS: If you have any criticism or suggestions for my site design draft, please let me know! I'd love to hear them.</p> <p><img src="https://i.stack.imgur.com/eQHsQ.png" alt="What happens in Firefox (Correct)"></p> <p><img src="https://i.stack.imgur.com/etq5m.png" alt="What happens with WebKit (Incorrect)"></p>
    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