CSS Font Bold - Inline -


in css, how can bold phone number inline rest of statement number bold?

instead of doing in html as:

 <div class="bubblecontent">&#8250; start posting jobs today– <strong> 01234 567 890</strong></div> 

html:

<div class="content">&#8250; call me – 01234 567 890</div> 

css:

div.bubblecontent   { font-size: 11px; font-family:verdana, arial, helvetica, sans-serif; margin-top: 15px; }   

thanks.

you can use <span> in example shown below:

html:

<div class="content">&#8250; call me – <span class="highlight">01234 567 890</span></div> 

css:

div.content { font-size: 11px; font-family:verdana, arial, helvetica, sans-serif; margin-top: 15px; }  span.highlight { font-weight:bold; } 

you can use <div> element property display:inline, inline rest of text.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -