New to this, good programmer, picking up some js
I wanted to set a line of text as
text BOLD more text BOLD text BOLD
I can set the text in javascript in a single <div>, but I tried this
<div id="divResText1 _id" style=" font-family: Arial,sans-serif;
text-align: center; font-size: 14px;"> The search returned </div>
<div id="divResTextC nt_id" style=" font-size: 20px; font-weight:bold;">
0 </div>
<div id="divResText2 _id" style=" font-size: 14px;"> results within
</div>
<div id="divResTextM iles_id" style="font-size: 20px;
font-weight:bold;"> 20 </div>
<div id="divResText3 _id" style=" font-size: 14px;"> chars of
</div>
<div id="divResTextZ ip_id" style=" font-size: 20px; font-weight:bold;">
TERM </div>
when I previewed the page in Firefox, the <div>'s created <br> also.
If this makes sense, any ideas on how to do this??
thanks
I wanted to set a line of text as
text BOLD more text BOLD text BOLD
I can set the text in javascript in a single <div>, but I tried this
<div id="divResText1 _id" style=" font-family: Arial,sans-serif;
text-align: center; font-size: 14px;"> The search returned </div>
<div id="divResTextC nt_id" style=" font-size: 20px; font-weight:bold;">
0 </div>
<div id="divResText2 _id" style=" font-size: 14px;"> results within
</div>
<div id="divResTextM iles_id" style="font-size: 20px;
font-weight:bold;"> 20 </div>
<div id="divResText3 _id" style=" font-size: 14px;"> chars of
</div>
<div id="divResTextZ ip_id" style=" font-size: 20px; font-weight:bold;">
TERM </div>
when I previewed the page in Firefox, the <div>'s created <br> also.
If this makes sense, any ideas on how to do this??
thanks
Comment