html - Align BandsinTown widget & picture -
i looking align bandsintown widget , picture of band. widget & picture should resize based on browser size is. have researched , tried different ones, unable work.
here bandsintown widget code:
<div id="wrap" class="section" id="news"> <script src="https://widget.bandsintown.com/main.min.js"></script> <a class="bit-widget-initializer" data-artist-name="band name" data-display-past-dates="true" data-widget-width="50%" data-font='frente h1'></a> <img src="/images/pic.jpg"> </div>
all need float
both .bit-widget-container
(generated script) , desired image left
:
.bit-widget-container, #news > img { float: left; }
<div class="section wrap" id="news"> <script src="https://widget.bandsintown.com/main.min.js"></script> <a class="bit-widget-initializer" data-artist-name="band name" data-display-past-dates="true" data-widget-width="50%" data-font='frente h1'></a> <img src="http://placehold.it/200"> </div>
keep in mind snippet has duplicate ids (wrap
, news
), invalid markup. such, i've changed wrap
id class in above snippet.
you used relative link image, i've replaced placeholder can see image aligns correctly.
hope helps! :)
Comments
Post a Comment