html - How to use list tag in single line -
i want use 2 list items different css styles in same line. as:
history: study of incidents happened in past.
botony: study of plants.
(history , botony in bold , larger 2px description.
but coming this:
history:
study of incidents happened in past.
botony:
study of plants.
below code used:
<li id="subhead">history: </li><li id="describe"> study of incidents happened in past.</li></li><br> <li id="subhead">botany: </li><li id="describe">study of plants.</li><br> #subhead { float:left; margin-left:30px; list-style-image:none; font-family:times new roman; font-size:19px; text-align:left; font-weight:bold; padding: 0px 0px 0px 10px; display:inline; } #describe { float:left; list-style-image:none; list-style-type:none; font-family:times new roman; font-size:17px; padding-left: 30px; display: inline; }
how can done?
please tell if can same thing using p tag.
#subhead { font-size:17px; display: block; margin-left:30px; list-style:none; font-family:times new roman; text-align:left; padding: 0px 0px 0px 10px; disply:inline; } #subhead span{font-weight:bold;font-size:19px;}
<li id="subhead"><span>physics: </span>wilhelm conrad röntgen's discovery of x-rays.</li> <li id="subhead"><span>chemistry: </span> jacobus van't hoff chemical thermodynamics.</li>
Comments
Post a Comment