Centered text in row and column doesn't work

Hello guys
it’s j just a simple detail but I am obsessed with layout.

I cannot seem to center allingn this widget. I tried it in row and column. If I do it in the row box it would align the writing in the widget instead of the widget which is odd.

Can you please help?
thanks

the post is Unmissable things to do in Cusco, Peru: your essential guide

will send you the credential on private mode
thanks cheers

Hi Isabella,

Thanks for writing in!

Do you want it to display like this?

You will need to update your code and use this instead (which I already did):

<script src="//www.worldnomads.com/Partner/GetPartnerWidget?partnerCode=boundless&Source=book box&loadWithPanelExpanded=true&cultureKey=en&cssVariant=landscape" async></script>
<div id="wn-insurance-quote-editor" style="margin: 0 auto;width:520px;background:url(https://cdn.worldnomads.net/Content/styles/i/wn/external-widgets/widget-bg-teal.jpg);"></div>

The margin: 0 auto; were added into the code so that it will stay at the center since the width is defined in the code.

Please check your site now.

@RueNel
Oh! you are awesome!!
thank you so much for your help :slight_smile:
cheers

You’re welcome!
We’re glad we were able to help you out.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.