I have a question as a beginner. I'm struggling to place text on the right side of an float: left
<img>
element within an md-dialog
:
<md-dialog aria-label="download" flex="60" ng-controller="viewerController">
<md-toolbar>
<div class="md-toolbar-tools">
<h2>{{appName}}</h2>
<span flex></span>
<md-button class="md-icon-button" ng-click="answer('not applicable')">
<md-icon md-svg-src="style/images/icons/ic_close_24px.svg"
aria-label="Close dialog"></md-icon>
</md-button>
</div>
</md-toolbar>
<md-dialog-content>
<div id="application">
<md-list>
<md-list-item>
<div style="font-size: 16px;">
<img style="float: left;margin: 0 5px 0 0; padding-bottom: 12px;"
ng-src="data:image/png;base64,{{appScreenshotBase64}}"
width="{{currentWidth * 0.35}}"/>
<h4><span class="fieldName">Technology : </span>{{appTechnology}}</h4>
<h4><span class="fieldName">Level : </span>{{appLevel}}</h4>
<h4><span class="fieldName">Development type</span> : </span>{{appDevType}}</h4>
</div>
</md-list-item>
<md-divider ></md-divider>
<md-list-item class="md-1-line">
<div class="md-list-item-text">
<h4><span class="fieldName">Development type : </span>{{appDevType}}</h4>
</div>
</md-list-item>
<md-divider ></md-divider>
<!-- ... -->
The width of my md-dialog
is set to 60% of the current width and the <img>
to 35%. There is enough space remaining (25%) inside the dialog to display data like Technology, Level, and Development type.
However, the text goes onto a new line under the <img>
as shown in this image:
https://i.sstatic.net/FNlfi.png
What adjustments do I need to make for it to work correctly?