How can I centralize a banner?

-1

I have this code below and I'm inserting it into the wordpress plugin. The banner appears on the site but is not centered, it is appearing glued to the left. Someone could please pass me this code again just to paste inside the plugin and already appear centralized the banner on the site?

<ins class="bookingaff" data-aid="1295946" data-target_aid="1295944" data-prod="banner" data-width="728" data-height="90" data-banner_id="56128" data-lang="pt-BR">
    <!-- Anything inside will go away once widget is loaded. -->
    <a href="//www.booking.com?aid=1295944">Booking.com</a>
</ins>
<script type="text/javascript">
    (function(d, sc, u) {
      var s = d.createElement(sc), p = d.getElementsByTagName(sc)[0];
      s.type = 'text/javascript';
      s.async = true;
      s.src = u + '?v=' + (+new Date());
      p.parentNode.insertBefore(s,p);
      })(document, 'script', '//aff.bstatic.com/static/affiliate_base/js/flexiproduct.js');
</script>
    
asked by anonymous 28.09.2017 / 13:17

2 answers

1

Just like @RafaelAugusto mentioned above, just add a <div> before and add margin: 0 auto; and text-align:center; , ie

<div style="margin:0 auto;text-align:center;">
<ins class="bookingaff" data-aid="1295946" data-target_aid="1295944" data-prod="banner" data-width="728" data-height="90" data-banner_id="56128" data-lang="pt-BR">
    <!-- Anything inside will go away once widget is loaded. -->
    <a href="//www.booking.com?aid=1295944">Booking.com</a>
</ins>
</div>
    
28.09.2017 / 17:00
0

Try it out

<div align="center">
código do banner
</div>

Or

<center>
código do banner
</center>

exp ... BANEER CRU <script data-cfasync="false" type="text/javascript" src="http://www.adexchangetracker.com/a/display.php?r=1966211"></script>

CENTRALIZEDBANER

<center><scriptdata-cfasync="false" type="text/javascript" src="http://www.adexchangetracker.com/a/display.php?r=1966211"></script></center>

EXP2BANNERCRU

<scriptdata-cfasync="false" type="text/javascript" src="http://www.adexchangetracker.com/a/display.php?r=1966211"></script>

CENTRALIZEDBANNER

<divalign="center"><script data-cfasync="false" type="text/javascript" src="http://www.adexchangetracker.com/a/display.php?r=1966211"></script></div>
    
19.04.2018 / 13:03