CMS Development

rbeditor
メンバー

Styling a Form

解決

Hello,

I'm currently embedding a Hubspot form on my website, but I want to style it to look like this:

Screenshot 2017-07-07 10.44.09.png

 

 

 

 

 

 

 

 

 

 

Right now, it looks like this:Screenshot 2017-07-07 10.44.42.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Where do I add the Hubspot script to this css style sheet?

 

body {
background: #F8A434;
font-family: 'Lato', sans-serif;
color: #FDFCFB;
text-align: center;
}


form {
width: 450px;
margin: 17% auto;
}


.header {
font-size: 35px;
text-transform: uppercase;
letter-spacing: 5px;
}


.description {
font-size: 14px;
letter-spacing: 1px;
line-height: 1.3em;
margin: -2px 0 45px;
}


.input {
display: flex;
align-items: center;
}


.button {
height: 44px;
border: none;
}


#email {
width: 75%;
background: #FDFCFB;
font-family: inherit;
color: #737373;
letter-spacing: 1px;
text-indent: 5%;
border-radius: 5px 0 0 5px;
}


#submit {
width: 25%;
height: 46px;
background: #E86C8D;
font-family: inherit;
font-weight: bold;
color: inherit;
letter-spacing: 1px;
border-radius: 0 5px 5px 0;
cursor: pointer;
transition: background .3s ease-in-out;
}

#submit:hover {
background: #d45d7d;
}

input:focus {
outline: none;
outline: 2px solid #E86C8D;
box-shadow: 0 0 2px #E86C8D;
}

 

 

 

 

0 いいね!
1件の承認済みベストアンサー
tjoyce
解決策
名誉エキスパート | Elite Partner
名誉エキスパート | Elite Partner

Styling a Form

解決

You can't embed scripts within stylesheets. Instead you need to add your embed script to the page and add styles to your css file. 

A good place to start is this form embed boilerplate http://designers.hubspot.com/docs/cos/hubspot-form-markup

 

 


If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.

元の投稿で解決策を見る

0 いいね!
1件の返信
tjoyce
解決策
名誉エキスパート | Elite Partner
名誉エキスパート | Elite Partner

Styling a Form

解決

You can't embed scripts within stylesheets. Instead you need to add your embed script to the page and add styles to your css file. 

A good place to start is this form embed boilerplate http://designers.hubspot.com/docs/cos/hubspot-form-markup

 

 


If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.

0 いいね!