Center Element

Occasional Contributor

Hi, 

 

I am unable to center the element on my unsubscribe page. Can manipulate the element.style margin via inspect, but does nothing when I apply this to the head markup or wrapping. 

 

Have had similar issues with hs forms, ect. Would love to know if there is a universal workaround for this...

 

 

Reply
0 Upvotes
9 Replies
Occasional Contributor

Screen Shot 2018-11-09 at 10.54.13 AM.png

Reply
0 Upvotes
Regular Advisor | Platinum Partner

@alt36, could you provide a link to that page?

dennis
Reply
0 Upvotes
Occasional Contributor

Sure. Cloned the Hub default for styling.

 

https://app.hubspot.com/beta-design-manager/498479/templates/6398479258

 

Thanks

Reply
0 Upvotes
Regular Advisor | Platinum Partner

hey @alt36, you will need to provide a preview link.  I would have to be logged into your account to access this view

dennis
Reply
0 Upvotes
Occasional Contributor
Reply
0 Upvotes
Regular Advisor | Platinum Partner

@alt36, apologies for lack of clarity on my part --

you will need to share a page preview or published page using that template.  I will not be able to view any template links.  Anything in the design manager requires you to be logged into that acct.

 

dennis
Reply
0 Upvotes
Highlighted
Occasional Contributor

Ok, so I'm clealy inept when it comes to this sort of thing, but hopefully this works.

 

https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&portalId=...

 

It's an email template so I cant publish it, but tested it out in incognito so hoping this works.

 

Thanks!

Reply
0 Upvotes
Regular Advisor | Platinum Partner

 

so the input needs the margin-left: 0  replaced with margin: 0 auto

 

<input class="email-edit hs-input" type="email" style="padding: 6px; font-size: 15px; width: 507px; margin: 0 auto;" placeholder="email@example.com" name="email" value="">

would also suggest removing the margin-left: 5% from the span12 which is causing overflow.

 

span12.png

 

If this is an email template many email clients do not respect margins.  You will want to rethink the markup.  also, forms will not necessarily work in an email.  Run through litmus or the hubspot email testing service. 

 

here is the result with edits

Alternate36__Inc__Email_Services.png

 

dennis
Occasional Contributor

Ok awesome. Thanks Dennis!

Reply
0 Upvotes