Click here to Skip to main content
15,910,872 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello the question I have is I have a top menu bar with several menu items but when I added the footer menu the top menu gets all squished and some items are not being shown, on it. was told to try assigning a class to the CSS to stretch the menu back out correctly but no idea what they mean.Any suggestions here's the code


<title>



body{width:100%;}
ul {width:100%; list-style:none;}
ul li {float:left; width:150px; font-weight:bold;}
ul li ul {padding:0;}
ul li ul li {float:none; padding:5px 0; font-weight:normal;}





  • Home
  • About Us

    • Lorem Ipsum
    • Lorem Ipsum
    • Lorem Ipsum
    • Lorem Ipsum
  • Portfolio

    • Lorem Ipsum
    • Lorem Ipsum
    • Lorem Ipsum
    • Lorem Ipsum
  • Clients
  • Events

    • Lorem Ipsum
    • Lorem Ipsum
    • Lorem Ipsum
  • Media

    • Lorem Ipsum
    • Lorem Ipsum
    • Lorem Ipsum
    • ILorem Ipsum
  • Contact Us







What I have tried:

Do not know css and was told to assign a class to the css but not sure how to do it. Tried looking on Google but was not able to find anything that worked that I tried adding to fix the top menu. Everything I found and added did no fix it. Any suggestions would be awesome thanks in advance.
Posted
Updated 23-Apr-18 8:17am

1 solution

Do not know CSS? A solution to that is available: CSS Tutorial[^]

Some of your above looks like CSS classes - but it's just floating on your page in an incorrect location without any tags to define what it is.

Definitely look at above tutorial - you'll need to sooner or later.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900