2013-09-06 2 views
0

HTML/CSS를 사용하여 양식을 정리하고 줄이는 데 약간의 문제가 있습니다.웹 양식의 간격

아래에 jsfiddle을 게시했습니다.

이메일 제출 양식의 테두리와 함께 제출 버튼을 정렬하려고합니다.

감사합니다.

http://bit.ly/1embiFX

HTML

<form target="_blank" class="validate" name="mc-embedded-subscribe-form" id="mc-embedded-subscribe-form" method="post" action="#"> 
<input type="email" value="[email protected]" onblur="if (this.value == '') {this.value = '[email protected]';}" onfocus="if (this.value == '[email protected]') {this.value = '';}" id="mce-EMAIL" class="required email" name="EMAIL"> 
<input type="submit" onclick="_gaq.push(['_trackEvent', 'Sign Up', 'Click', 'Mailing List Address Entered']);" id="mc-embedded-subscribe" name="subscribe" value="JOIN" class="submit button"> 
</form> 

CSS 간단하게 높이를 변경하고 INPU에 대한 수직 정렬을 추가

form { 
    margin: 0; 
    font-family: 'Merriweather', serif; 
    height: 75px; 

} 
input.email { 
    width: 60%; 
    height: 75px; 
    font-family: 'Merriweather', serif; 
    padding-left: 30px; 
    font-size: 18px; 
    color: #c89808; 
    border: 2px solid #000000; 
    -webkit-border-top-left-radius: 10px; 
    -webkit-border-bottom-left-radius: 10px; 
    -moz-border-radius-topleft: 10px; 
    -moz-border-radius-bottomleft: 10px; 
    border-top-left-radius: 10px; 
    border-bottom-left-radius: 10px; 
    background-color: transparent; 

} 

input.email:focus { 
    outline: none; 
} 

input.submit { 
    width: 20%; 
    margin-left: -5px; 
    margin-top: 50px; 
    font-family: league; 
    font-size: 30px; 
    color: #efbe2a; 
    height: 75px; 
    background: #000000; 
    -webkit-border-top-right-radius: 10px; 
    -webkit-border-bottom-right-radius: 10px; 
    -moz-border-radius-topright: 10px; 
    -moz-border-radius-bottomright: 10px; 
    border-top-right-radius: 10px; 
    border-bottom-right-radius: 10px; 
    border: none; 
    letter-spacing: 0.05em; 
} 
+0

게시하시기 바랍니다 코드를 시도하고 jsFiddle.net에 연결할 때 코드를 게시하는 SO 규칙을 피하는 시도합니다. – j08691

+0

완전히 업데이트되었습니다. –

답변

0

여기 this-

input.submit { 
width: 20%; 
margin-left: -5px; 
margin-top: 50px; 
font-family: league; 
font-size: 30px; 
color: #efbe2a; 
height: 81px; 
background: #000000; 
-webkit-border-top-right-radius: 10px; 
-webkit-border-bottom-right-radius: 10px; 
-moz-border-radius-topright: 10px; 
-moz-border-radius-bottomright: 10px; 
border-top-right-radius: 10px; 
border-bottom-right-radius: 10px; 
border: none; 
letter-spacing: 0.05em; 
position:relative; 
top:4px; 
}