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.
10 ответов
+ 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
+ 3
Hopefully this sample make you understand nav css design...
https://code.sololearn.com/W7UY2NaZMr83/?ref=app
+ 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
+ 2
Post your code..
+ 2
nav li {
list-style: none;
float:right;
width: 80px;
}
nav li a{
text-decoration: none;
background-color: #ccc;
padding: 5px 10px;
}
+ 1
nav li {
list-style: none;
float:right;
width: 80px;
}
nav li a{
text-decoration: none;
}
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....
0
thanks....and where should i apply background color @Calvin
0
can i add sm css for ul....i.e, ul{.........}
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