Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I stack divs on top of each other in a form box?
    primarykey
    data
    text
    <p>So I can't quite figure out why my divs are overlapping the way that I want them to position. I'm trying to make a form back that contains a header that overflows over the sides of the div, but to no avail. I've attached a picture along with this so that you can visualize what I'm trying to accomplish. It's just not coming out right.</p> <p><img src="https://i.stack.imgur.com/NEw0h.png" alt="What I&#39;m trying to make"></p> <p>Created an form box with the following HTML: </p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="span4 featured"&gt; &lt;h2 class="feature-title"&gt;It's Never Been Easier! &lt;p&gt;Create Your Free Profile Now!&lt;/p&gt;&lt;/h2&gt; &lt;form action="send-mail.php" method="post" id="contact-form"&gt; &lt;input type="text" value="Full Name" name="name" class="required"&gt; &lt;input type="text" value="Email Address" name="email" class="required email"&gt; &lt;input type="text" value="Username" name="username"&gt; &lt;input type="text" value="Password" name="password"&gt; &lt;input type="submit" name="subscribe" value="JOIN FREE"&gt; &lt;/form&gt; &lt;/div&gt; </code></pre> <p>and CSS:</p> <pre><code>.featured form input[type="submit"] { background: #3097be; color: #ffffff; width: 100%; margin-bottom: 0px; font-size: 20px; font-family: 'Open Sans', sans-serif; -webkit-transition: background linear .2s; -moz-transition: background linear .2s; -o-transition: background linear .2s; padding-left: 20intro .container { padding-top: 0px; } .featured { min-height: 500px; float: right; margin-top: -900px; margin-bottom: 30px; } .featured h2 { font-size: 24px; overflow: visible; background: url(http://i.imgur.com/oP8bXR7.png) center no-repeat; -webkit-border-radius: 0px; -moz-border-radius: 0px; -o-border-radius: 0px; border-radius: 0px; padding: 20px 0px 5px 30px; color: black; margin-bottom: 0px; } .featured form { background: url(http://i.imgur.com/swcwFW6.png) center no-repeat; -webkit-border-radius: 0px; -moz-border-radius: 0px; -o-border-radius: 0px; border-radius: 0px; padding: 20px 30px 30px 30px; margin-top: -20px; } .featured p { color: blue; text-align: center; } .featured form input{ width: 225px; -webkit-border-radius: 0px; -moz-border-radius: 0px; -o-border-radius: 0px; border-radius: 0px; border: none; padding: 3px 9px 3px 9px; color: #bebebe; box-shadow: none; font-family: 'Lato', sans-serif; margin-bottom: 20px; -webkit-transition: background linear .2s,color linear .2s; -moz-transition: background linear .2s,color linear .2s; -o-transition: background linear .2s,color linear .2s; } .featured form textarea { width: 200px; height: 70px; background: #474747; -webkit-border-radius: 0px; -moz-border-radius: 0px; -o-border-radius: 0px; border-radius: 0px; border: none; padding: 12px 20px 12px 20px; color: #bebebe; box-shadow: none; font-family: 'Lato', sans-serif; margin-bottom: 30px; -webkit-transition: background linear .2s,color linear .2s; -moz-transition: background linear .2s,color linear .2s; -o-transition: background linear .2s,color linear .2s; } </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