SOLVED

Light Box Form text box styling

Go to solution
mhardy
Level 2

Light Box Form text box styling

Hello,

We seem to be having issues with our form text boxes showing up on our website very large (See below). When I'm in marketo this isn't how it looks, do we know of any solutions that could fix this or where I could go to possibly fix this issue. Thank you!

 

mhardy_0-1616609869134.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dave_Roberts
Level 10

Re: Light Box Form Issues

This almost certainly has something to do with your website styling. You can use the inspector tool to have a look at the inputs to see what is causing them to be so tall and fix the issue there. Whoever has knowledge of your website CSS is probably going to be the most helpful in this situation to troubleshoot the issue.

 

I think what you're seeing here is that Marketo comes with it's own set of styling, but very often when you embed a form on a website there is a conflict with the website stylesheet and the styles from Marketo. 

 

Here's a look for example at this page in the inspector pointing out the CSS for the height of the "Subject" input. There is probably something like this (maybe a "min-height") rule on your webpage that's causing the fields to be so tall.

 

Right click an input and choose "Inspect" to view CSS related to that element in the inspectorRight click an input and choose "Inspect" to view CSS related to that element in the inspector

 

View solution in original post

SanfordWhiteman
Level 10 - Community Moderator

Re: Light Box Form Issues

You can remove all Marketo-added styles using this script:

 

https://codepen.io/figureone/pen/dLqxPG

 

However, simply eliminating Marketo's purpose-built styles doesn't mean your generic form styles will work with the Marketo form DOM (HTML markup).  CSS can't be written in a vacuum, after all. It needs to conform to fixed DOM expectations, and you can't — unless you use JS — change the form DOM.

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Light Box Form Issues

A link to the page would be necessary. Can't troubleshoot a screenshot!

mhardy
Level 2

Re: Light Box Form Issues

We currently have this on a test page(which isn't public), as we are testing the ability of it. Do you happen to have any solutions you could think of without looking at the page?

 

 

Dave_Roberts
Level 10

Re: Light Box Form Issues

This almost certainly has something to do with your website styling. You can use the inspector tool to have a look at the inputs to see what is causing them to be so tall and fix the issue there. Whoever has knowledge of your website CSS is probably going to be the most helpful in this situation to troubleshoot the issue.

 

I think what you're seeing here is that Marketo comes with it's own set of styling, but very often when you embed a form on a website there is a conflict with the website stylesheet and the styles from Marketo. 

 

Here's a look for example at this page in the inspector pointing out the CSS for the height of the "Subject" input. There is probably something like this (maybe a "min-height") rule on your webpage that's causing the fields to be so tall.

 

Right click an input and choose "Inspect" to view CSS related to that element in the inspectorRight click an input and choose "Inspect" to view CSS related to that element in the inspector

 

mhardy
Level 2

Re: Light Box Form Issues

Is there a way to stop that rule from taking effect in Marketo? or does it always need to be played with once it is on our website?

SanfordWhiteman
Level 10 - Community Moderator

Re: Light Box Form Issues

You can remove all Marketo-added styles using this script:

 

https://codepen.io/figureone/pen/dLqxPG

 

However, simply eliminating Marketo's purpose-built styles doesn't mean your generic form styles will work with the Marketo form DOM (HTML markup).  CSS can't be written in a vacuum, after all. It needs to conform to fixed DOM expectations, and you can't — unless you use JS — change the form DOM.

Dave_Roberts
Level 10

Re: Light Box Form Issues

There may be some things that you can adjust in Marketo (or something that are adjusted that you could back out) but we'd need to see a live preview of the page with the form on it to help identify the root of the styling issue.