You will give the first pair of div tags a class of any name (it can be section or something else), if you want to style both divs the same way. How to horizontally center a div using CSS? How to float three div side by side using CSS? How to check if an element has any children in JavaScript ? to this part of the html document. To define a new section we need to make use of the RenderSection method that does the work of rendering the view section by section. Top 10 Projects For Beginners To Practice HTML and CSS Skills. brightness_4 These are the … In most cases, when working with text inside the div or span tags, the above CSS property is enough to achieve what you want. In the above output you can see the Divs are placed side by side. Example: This example describes how we can center a div inside a div. How to clear all div's content inside a parent div ? Copy link Quote reply dacastro4 commented Dec 2, 2015. In the above output, you can see the Div place up and down because CSS Div is a block element that forces a line break before and after the element. The sectioning elements in HTML5 are