css - Placing a Input Box over a Button with same width -
css - Placing a Input Box over a Button with same width -
i using bootstrap 2.1 , custom css.
i have label , input element need place above div acts button
<label for="email">enter email address</label> <input id="email" name="email" type="text" /> <div class="somebutton "> <a href="#" class="gradient" title="buy flowers"> <span class="button_price">$14.99</span> <span class="button_text">buy flowers</span> </a> <p class="hint">flowers delivered in 24 hours.</p> </div>
css
.somebutton { padding:20px 0 0 0; } .somebutton { background: #97bf0f; /* old browsers */ /* ie9 svg, needs conditional override of 'filter' 'none' */ background: url(data:image/svg+xml; base64, pd94bwwgdmvyc2lvbj0ims4wiia/pgo8c3znihhtbg5zpsjodhrwoi8vd3d3lnczlm9yzy8ymdawl3n2zyigd2lkdgg9ijewmcuiighlawdodd0imtawjsigdmlld0jved0imcawidegmsigchjlc2vydmvbc3bly3rsyxrpbz0ibm9uzsi+ciagpgxpbmvhckdyywrpzw50iglkpsjncmfklxvjz2ctz2vuzxjhdgvkiibncmfkawvudfvuaxrzpsj1c2vyu3bhy2vpblvzzsigede9ijaliib5mt0imcuiihgypsiwjsigeti9ijewmcuipgogicagphn0b3agb2zmc2v0psiwjsigc3rvcc1jb2xvcj0iizk3ymywziigc3rvcc1vcgfjaxr5psixii8+ciagica8c3rvccbvzmzzzxq9ijewmcuiihn0b3aty29sb3i9iim3m2e3mjyiihn0b3atb3bhy2l0et0imsivpgogidwvbgluzwfyr3jhzgllbnq+ciagphjly3qged0imciget0imcigd2lkdgg9ijeiighlawdodd0imsigzmlsbd0idxjskcnncmfklxvjz2ctz2vuzxjhdgvkksiglz4kpc9zdmc+); background: -moz-linear-gradient(top, #97bf0f 0%, #73a726 100%); /* ff3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #97bf0f), color-stop(100%, #73a726)); /* chrome,safari4+ */ background: -webkit-linear-gradient(top, #97bf0f 0%, #73a726 100%); /* chrome10+,safari5.1+ */ background: -o-linear-gradient(top, #97bf0f 0%, #73a726 100%); /* opera 11.10+ */ background: -ms-linear-gradient(top, #97bf0f 0%, #73a726 100%); /* ie10+ */ background: linear-gradient(to bottom, #97bf0f 0%, #73a726 100%); /* w3c */ filter: progid:dximagetransform.microsoft.gradient(startcolorstr='#97bf0f', endcolorstr='#73a726', gradienttype=0); /* ie6-8 */ font-family:'bree serif', serif; color:#fff; font-size:2.0em; text-shadow:0 -1px #35490e; display:inline-block; border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px; box-shadow:0 1px 3px #181818; }
i want email same width of div. how can it?
also label, text , div combined should have top-bottom padding of 20px.
why don't utilize button
instead of div? might accomplish want.
<label for="email">enter email address</label> <div class="somebutton "> <a href="#" class="gradient" title="buy flowers"><input id="email" name="email" type="text" /><span class="button_price">$14.99</span> <span class="button_text">buy flowers</span></a> <p class="hint">flowers delivered in 24 hours.</p> </div>
css twitter-bootstrap twitter-bootstrap-2
Comments
Post a Comment