How to style CSS role

This can be done by using CSS attribute selectors.The CSS Attribute Selector is used to select an element with some specific attribute or attribute value.And we have a way to get the work done.Below is a demo of the problem above: Example;

How to float 3 divs on same line using CSS?

The modern and quicker way is to use the CSS flexbox, Three or more different div can be put side-by-side using CSS. Use CSS property to set the height and width of div and use display property to place div in side-by-side format. float left; This property is used for those elements(div) that will float on