skip to Main Content

Css – After adding display: block, the content of the nav item increases to 1px, which causes the parent item's height

The following figure points to the current UI: | The given HTML and CSS code: <!DOCTYPE html> <html lang="en-US"> <head> <title>Flexbox example page</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <nav> <ul class="site-nav"> <li><a href="#">Home</a></li> <li><a href="#">Features</a></li> <li><a href="#">Pricing</a></li> <li><a…

VIEW QUESTION
Back To Top
Search