我是新來的網頁設計,我試圖創建模板,這是給我的任務...我想創建一個按鈕的訂閱輸入文本框。我把我的文件的一些截圖和代碼。請幫我解決如何合併HTML輸入框(訂閱框)和一個按鈕與響應? (示例圖像附加)
<section style="background-color: #ea6153">
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-6 col-sm-12 col-xs-12">
<div class="subscribe-content-text">
<h4>IF YOU WANT DAILY UPDATE OF OUR PRODUCT THEN JOIN AND SUBSCRIBE OUR NEWS LETTER</h4>
</div>
</div>
<div class="col-md-6 col-lg-6 col-sm-12 col-xs-12">
<div class="input-group subscribe-form">
<input type="text" class="form-control input-lg" id="input-form" placeholder="Your Email here">
<span><button class="btn subscribe-btn" type="button">SUBSCRIBE</button></span>
</div>
</div>
</div>
</div>
<section>
This is my CSS file:
.subscribe-content-text
{
font-size: 18px;
font-weight: bold;
font-family: Roboto, Serif;
color: #ffffff;
text-align: left;
margin-top: 75px;
margin-bottom:70px;
}
.subscribe-form
{
margin-top: 64px;
}
#input-form
{
border: 1px solid white;
border-radius: 0px;
background-color: #ea6153;
color: #ffffff;
}
input[type="text"]
{
color: #ffffff;
}
input::-webkit-input-placeholder
{
color:#ffffff !important;
font-size: 14px !important;
font-family: Roboto, Serif !important;
}
input::-moz-placeholder
{
color: #ffffff !important;
font-size: 14px !important;
font-family: Roboto, Serif !important;
}
.subscribe-btn
{
position: absolute;
background-color: #ffffff;
color: #ea6153;
font: 24px bold;
font-family: Roboto, Serif;
font-weight: bold;
border-style: none;
border-radius: inherit;
}
[This screenshot which i need to create in html responsive][1]
[This screenshot which i made in html**strong text**][2]
[1]: https://i.stack.imgur.com/B3qze.png
[2]: https://i.stack.imgur.com/AGvfr.png
感謝名單哥們......這正是我需要的... – mittal3795
這是我的榮幸:) @MeetShah –