Changing the Default Display Value using CSS

CSSWeb DevelopmentFront End Technology

Every element in CSS has a default display value and we can easily change. This is dene by explicity setting the display property value. Let us see an example wherein we are setting inline display property value for horizonatal menus −


 Live Demo

<!DOCTYPE html>
p {
   background-color: orange;
   color: white;
li {
   display: inline;
<h2>Tutorials List</h2>
<p>Following are the list of resources:</p>
<li><a href="" target="_blank">Machine Learning</a></li>
<li><a href="" target="_blank">Python Data Science</a></li>
<li><a href="" target="_blank">Python</a></li>
<li><a href="">C#</a></li>
<li><a href="" target="_blank">Artificial Intelligence</a></li>


Updated on 26-Dec-2019 08:03:50