Welcome to Westonci.ca, the ultimate question and answer platform. Get expert answers to your questions quickly and accurately. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.
Sagot :
Answer:
Explanation:
The best way to do this would be to use the following line of code
clear: left;
This would make sure that there are no floating elements (li's in this scenario) on the left side of each element. Which in this navigation list would be each individual element, causing it to move each element underneath the previous element. Therefore the entire CSS code would be
.horizontal li {
display: block;
width: 12.5%;
float: left;
clear: left;
}
An example can be seen in the attached picture below.
Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.