0

Navigation bar sucks...need urgent help

Navigation bar sucks...i created a simple nav bar using html, but when i style it with css...nothing happens, only a bulleted, underlined list i deleted t, and copy one from the other html file that works there with its css......bt when i paste it in this file that sucks...and reload, no styles appear again...just some list, with bullets and underlines... what might b wrong?...it really sucks.

1st May 2017, 3:41 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
10 odpowiedzi
+ 3
check your rules and how you named your classes. you might have a different name from what you copied and also check the Ids too with that, you might rectify some
1st May 2017, 3:51 PM
nyavowoyi ernest
nyavowoyi ernest - avatar
+ 3
Hopefully this sample make you understand nav css design... https://code.sololearn.com/W7UY2NaZMr83/?ref=app
1st May 2017, 4:49 PM
Calviղ
Calviղ - avatar
+ 3
@Kelvine De Danielo, I have realised that maybe you don't have enough knowledge in CSS please start reading materials on that to understand instead of just copying codes. a good search on Google can help you discover sites for beginners. try Them
1st May 2017, 5:14 PM
nyavowoyi ernest
nyavowoyi ernest - avatar
+ 2
Post your code..
1st May 2017, 3:51 PM
Calviղ
Calviղ - avatar
+ 2
nav li { list-style: none; float:right; width: 80px; } nav li a{ text-decoration: none; background-color: #ccc; padding: 5px 10px; }
1st May 2017, 4:17 PM
Calviղ
Calviղ - avatar
+ 1
nav li { list-style: none; float:right; width: 80px; } nav li a{ text-decoration: none; }
1st May 2017, 4:12 PM
Calviղ
Calviղ - avatar
0
<nav> <ul> <li><a href=" ">sometxt</a></li> <li><a href=" ">sometxt</a></li> <li><a href=" ">sometxt</a></li> <ul> </nav> nw u gus tell, in css what should b style for nav, ul, ul li, and ul li a.... for.example, for ul li a...i can put, color:green.. i hope my qn is pretty clear....
1st May 2017, 4:04 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
0
thanks....and where should i apply background color @Calvin
1st May 2017, 4:14 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
0
can i add sm css for ul....i.e, ul{.........}
1st May 2017, 4:18 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
0
yah, ts true...i was rushing to JS... nw i hav to start again on html basics...thanks for telling me the truth@nyavowoyi ernest
1st May 2017, 5:19 PM
Kelvine De Danielo
Kelvine De Danielo - avatar