Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How could you use CSS to achieve the following automatic numbering?

Answer Posted / hrpynux@gmail.com

Initialize the counter on the parent div using counter-reset.
Increment the counter value by 1 on the child div p using counter-increment.
Add the counter variables before the div p content using the :before pseudo selector.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are style sheets case sensitive?

539


How do you make a style sheet?

617


What is box sizing in css?

582


What is a main element in coding?

618


What is another word for domino effect?

572


What is the difference between html5 and css3?

566


What is css explain with example?

602


What are the benefits of CSS sprites?

727


List out css3 modules?

573


How can the gap under the image be removed?

572


What is the difference between margin and padding in android layout?

638


How embedded style can be linked with HTML documents?

592


How can the same properties be defined for different elements without repeating them again and again? Explain with an example:

618


Call an external style sheet and an external script located in the root folder called style.css and main.js with html.

650


How do you collapse margins in css?

650