HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> ul{ font-size:18px; line-height: 1.8; } #point{ list-style-position: outside; } #point1{ list-style-position: inside; } </style> </head> <body> <h1>CSS list-style-position Property</h1> <h2>list-style-position: outside;</h2> <ul id="point"> <li>Apple - An apple is a sweet, edible fruit produced by an apple tree. Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus.</li> <li>Banana - A banana is an edible fruit – botanically a berry – produced by several kinds of large herbaceous flowering plants in the genus Musa. </li> </ul> <h2>list-style-position: inside;</h2> <ul id="point1"> <li>Apple - An apple is a sweet, edible fruit produced by an apple tree. Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus.</li> <li>Banana - A banana is an edible fruit – botanically a berry – produced by several kinds of large herbaceous flowering plants in the genus Musa. </li> </ul> </body> </html>
OUTPUT
×

Save as Private