Reputation: 107
I'm trying to place a div
beside my img tag
, but the div
is being displayed down the img tag
, but i want it beside, how can we place img and div tag
beside each other
<img usemap="#ChartImageMap" src="@Url.Action("GetChart", "Home")" alt="Asp.Net Char" style="width:450px;height:300px;border-width:0px;" />
<div id="map" style="height:300px;"></div>
Upvotes: 0
Views: 472
Reputation: 3185
You want the div to display inline:
<div id="map" style="display:inline; height:300px;"></div>
You could also just use a span:
<span id="map" style="height:300px;"></span>
Upvotes: 1