/* Setup styles in the other file. */ a { text-decoration: underline; background-color: gold; } div:nth-child(2) a { display: block; text-decoration: none; margin-bottom: 10px; padding: 10px; }
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="../assets/reset.css" rel="stylesheet"> <link href="setup.css" rel="stylesheet"> <link href="style.css" rel="stylesheet"> </head> <body> <section> <div> <p><a href="#">Links are usually inline.</a> This is some text in the first element.</p> </div> <div> <p><a href="#">But you’ll often want them block →</a> And some more in the second element.</p> </div> <div> <p>Then a third one, too.</p> </div> </section> </body> </html>