nav { ul { margin: 0; padding: 0; list-style: none; } li { display: inline-block; } a { display: block; padding: 6px 12px; text-decoration: none; } }
nav ul margin: 0 padding: 0 list-style: none li display: inline-block a display: block padding: 6px 12px text-decoration: none
nav ul { margin: 0; padding: 0; list-style: none; } nav li { display: inline-block; } nav a { display: block; padding: 6px 12px; text-decoration: none; }
<!DOCTYPE html> <html> <head> <title> Nesting example of sass</title> <link rel="stylesheet" type="text/css" href="simple.css"/> </head> <body> <h3>Available corses on lidihuo:</h3> <ul> <li>SQL</li> <li>Oracle</li> <li>Java <ul> <li>Core Java</li> <li>Advance Java</li> </ul> </li> <li>HTML/CSS</li> <li>Etc.</li> </ul> </body> </html>
nav { ul { margin: 0; padding: 0; list-style: none; } li { display: inline-block; } a { display: block; padding: 6px 12px; text-decoration: none; } }
nav ul { margin: 0; padding: 0; list-style: none; } nav li { display: inline-block; } nav a { display: block; padding: 6px 12px; text-decoration: none; }