hello all ,
i want values should be come in same line but i get different line like below.
Serial No XYZXXXXXXX
(FHXXXXXXXX)
i want to like below
Serial No XYZXXXXXXX (FHXXXXXXXX)
This is my code.
<table>
<tr style="vertical-align: top;">
<td style="text-align: left; width: 50%">
<div class="display-label">
Serial No
div>
<div class="display-field">
<%: Model.ECU.SerialNo %>
<% if (!String.IsNullOrEmpty(Model.ECU.FHSerialNo)) %>
<%{ %>
< h2> (<%: Model.ECU.FHSerialNo %>)h2>
<%}%>
div>
td>
tr>
table>
Thanks in advance
Hareesh
Pranay RanaPosted Feb 3, 2015, 6:57 AM
so solution is you can add display:inline in style of h2 element
H1 {display: inline;}
so for you it will be
by this way it will not crete line break