CMS Development

Venki
Contributor

increase the width and height of the button

SOLVE
 
0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

increase the width and height of the button

SOLVE

@Venki the default form embed will show up inside an iframe which means you can't style it from the site you're embedding it on since the CSS rules don't apply to anything inside iframes.

 

If you have Marketing Pro, you can change the embed setting to "Raw HTML" and it will use javascript to create the HTML elements on the page which will allow you to style it with your own CSS: https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site#with... 

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

0 Upvotes
4 Replies 4
webdew
Guide | Diamond Partner
Guide | Diamond Partner

increase the width and height of the button

SOLVE

Hi Venki,

To increase the height width of a button with CSS

1. Add the padding: 
with the padding, we can increase the button height and width.

2. Add the width
We can also use the width to add the max-width of buttons.

Hope this helps!

0 Upvotes
Venki
Contributor

increase the width and height of the button

SOLVE

Thanks for your support,

Noted!!

Regards,

Venki

0 Upvotes
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

increase the width and height of the button

SOLVE

@Venki the default form embed will show up inside an iframe which means you can't style it from the site you're embedding it on since the CSS rules don't apply to anything inside iframes.

 

If you have Marketing Pro, you can change the embed setting to "Raw HTML" and it will use javascript to create the HTML elements on the page which will allow you to style it with your own CSS: https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site#with... 

Stefen Phelps, Community Champion, Kelp Web Developer
0 Upvotes
Venki
Contributor

increase the width and height of the button

SOLVE

Thanks Stefan,

I got it!

0 Upvotes