- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Embed code showing blank for lead form
10-27-2019 06:29
Hi all,
I am testing my embedded code locally however I keep seeing a blank page with the form hidden. It works when I test it on an HTML test site but not locally. Is there something I need to add to the CSS file?
Code I have is:
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/shell.js"></script>
<![endif]-->
<script data-hubspot-rendered="true">
hbspt.forms.create({
portalId: "xxxxx",
formId: "xxxxx"
});
</script>
</main>
<style>
.hs-form fieldset {
max-width: none!important;
}
</style>
</body>
</html>
CSS:
element.style {
position: static;
border: none;
display: block;
overflow: hidden;
width: 1524px;
height: 228.797px;
}
iframe[Attributes Style] {
height: 228.797px;
width: 1524px;
}
iframe {
border-width: 2px;
border-style: inset;
border-color: initial;
border-image: initial;
}
html {
color: -internal-root-color;
}
div {
display: block;
}
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content