2015-02-07 3 views
1

내 웹 사이트의 바닥 글에 대해 MailChimp 양식을 만들었으므로 CSS를 수정하여 현재의 모습을 얻습니다. 이제 붙어 버렸습니다. 두 이미지를 첨부했습니다. 첫 번째 이미지는 모양을보고 싶고 두 번째 이미지는 현재 코드의 모양입니다.Mailchimp 사용자 지정 양식 CSS

올바른 방향으로 나를 지적하는 데 도움이 될 것입니다.

What the form code producess

<div class="row"> 
    <div class="mc-field-group col-lg-6"> 
     <label for="mce-FNAME">First Name:<span class="asterisk"></span></label> 
     <input type="text" value="" name="FNAME" class="input required" id="mce-FNAME"> 
    </div> 
    <div class="mc-field-group col-lg-6"> 
     <label for="mce-LNAME">Last Name:<span class="asterisk"></span></label> 
     <input type="text" value="" name="LNAME" class="input required" id="mce-LNAME"> 
    </div> 
</div><!--row--> 


<div class="row"> 

    <div class="mc-field-group col-lg-8"> 
     <label class="label" for="mce-EMAIL">Email Address<span class="asterisk"></span></label> 
     <input type="email" value="" name="EMAIL" class="required input email" id="mce-EMAIL"> 
    </div> 

    <div class="col-lg-4"> 
     <input type="submit" value="Submit" name="subscribe" id="mc-embedded-subscribe" class="button"> 
    </div> 

</div><!--row—> 


    .mc4wp-form .input { 
    margin: 10px 0; 
    float: left; 
    width: 100%; 
    line-height: 25px; 
    border: 1px solid #000; 
    border-radius: 10px; 
} 

.mc4wp-form .input:focus, 
.mc4wp-form .button:focus { 
    outline: none; 
} 
.mc4wp-form .button { 
    color:#ffffff; 
    margin-top: 34px; 
    display: block; 
    width: 100%; 
    background: #2451f4; 
    height: 30px; 
    font-size: 15px; 
    border-radius: 10px; 
    outline: none; 
    -webkit-transition: all 0.35s ease; 
    -moz-transition: all 0.35s ease; 
    -o-transition: all 0.35s ease; 
    transition: all 0.35s ease; 
} 

.mc4wp-form .button:hover { 
    cursor: pointer; 
    background: #000; 
    color: #fff; 
} 

.mc4wp-form { 
    width: 100%; 
    max-width: 470px; 
} 

.mc4wp-form .mc-field-group label { 
    display: block; 
    font-size: 22px; 
} 

.mc4wp-form .row { 
    display: block; 
    float: left; 
    width: 100%; 
} 

.mc4wp-form .col-lg-6, 
.mc4wp-form .col-lg-8, 
.mc4wp-form .col-lg-4 { 
    float: left; 
    padding: 12px; 
    box-sizing: border-box; 
} 

.mc4wp-form .col-lg-6 { 
    width: 50%; 
} 

.mc4wp-form .col-lg-8 { 
    width: 80%; 
} 

.mc4wp-form .col-lg-4 { 
    width: 20%; 
} 
+1

나는 힌트를 줄 것이다 : 당신은 WP 스타일 CSS에없는 mailchimps 자신의 CSS를 오버라이드해야 할 것이다. – maioman

+1

정확히 @ 마이 오만이 말했습니다. 사이트에 링크하면 편집해야 할 내용을 표시 할 수 있습니다. – user3781632

+0

@ user3781632 https://www.kayakinguk.com/ 몇 걸음 더 가깝지만 조금 더 붙어 있습니다. –

답변

1

What I want the form to look like "이메일 주소"라벨

은 다른 레이블을하지 않는 동안 "라벨"의 클래스가 있습니다. 이 클래스를 삭제하면 다른 두 클래스처럼 보입니다. 이것에

<label for="mce-EMAIL" class="label">Email Address:</label> 

변경을 :

<label for="mce-EMAIL">Email Address:</label> 

그것을 찾을 수 :

이 줄을 찾기

<form action="https://www.kayakinguk.com/" method="post"><div class="mc-field-group col-lg-6"> 
    <label for="mce-FNAME">First Name:</label> 
    <input type="text" id="mce-FNAME" class="input required" name="FNAME" value=""> 
</div> 
<div class="mc-field-group col-lg-6"> 
    <label for="mce-LNAME">Last Name:</label> 
    <input type="text" id="mce-LNAME" class="input required" name="LNAME" value=""> 
</div> 

<div class="mc-field-group col-lg-8"> 
    <label for="mce-EMAIL" class="label">Email Address:</label> 
    <input type="email" id="mce-EMAIL" class="required input email" name="EMAIL" value=""> 
</div> 

의 배경 색상과 글꼴 속성을 변경 년대 .label 클래스 궁금한 점이 있으시면, 라인 5494에있는 bootstrap.css에있는 프리셋입니다.

+0

덕분에 지금 내가 원하는 방식으로 스타일을 지정할 수있었습니다. "이름 :", "성 :"및 "이메일 주소 :"에 어떤 종류의 링크가있는 것만 한 가지 문제입니다. 왜 내가 링크를 추가하지 않았는지 모르겠다. 왜 그렇게하는지 잘 모르겠다면 도움이 될 것입니다. @ user3781632 –

+1

"링크"는 MailChimp의 사용자 인터페이스 선택입니다. 필드 이름을 클릭하면 텍스트 필드 자체를 클릭하지 않고 자동으로 텍스트 필드에 묶을 수 있습니다. 맞춤 클래스를 만들어 세 개의 모든 라벨에 추가하여 링크를 비활성화 할 수 있습니다. 이 게시물은 어떻게하는지 설명합니다 : http://stackoverflow.com/questions/2091168/disable-a-link-using-css. 행운을 빕니다! – user3781632

+0

브릴리언트는 변화를 구현하고 놀라운 경이로움을 나타 냈습니다. 도움을 주셔서 감사합니다. @ user3781632 –