css - Making two elements starting in the same html row -
i've got small icon appearing , sentence afterwards, in next line. code so: (apart more things)
<td class="workview-cell"> {{#if isavailable}} {{#if isloaded}} a<img id="privileged-access-step-icon" src="{{urlroot}}/images/crown16sb2.png" alt="test" title="test" /> {{else}} b<img id="privileged-access-step-icon" src="{{urlroot}}/images/crown16sb2.png" lt="test" title="test" /> {{/if}} {{/if}} {{#if showlink}} <a href="#" class="workview-link {{linkproperties.linkclass}} theme-link-color {{#if showlinkwideonly}}wideonly{{/if}}" title="{{linkproperties.title}}">{{description}}</a> c{{#if showlinkwideonly}}<span class="narrowonly">{{description}}</span>{{/if}} {{else}} {{description}} {{/if}} </td>
the css associated is:
.workview-cell{padding:3px;vertical-align:middle;}
the rendered html is:
<td class="workview-cell"> a<img id="privileged-access-step-icon" src="/images/crown16sb2.png" alt="test" title="test"> <a href="#" class="workview-link viewstep-link theme-link-color " title="open summary">group step (initial)</a> b </td>
the string break naturally across rows, i'd have icon , sentence afterwards long can, finishing in following line if sentence large. in other words, rather sentence started on same line icon.
any hint? in advance.
update:
this how looks right now:
what i'd achieve have text starting icon finish, in same line, , continue if needed in following line.
give css:
.workview-cell {white-space: nowrap;}
this forces line stay same.
Comments
Post a Comment