1
How can I make an effect on the text inside the lists with Jquery?
For example, when the mouse hovers over the text in the lists, the color becomes lighter and the text is underlined.
p {
line-height: 1em;
}
h1,
h2,
h3,
h4 {
color: orange;
font-weight: normal;
line-height: 1.1em;
margin: 0 0 .5em 0;
}
h1 {
font-size: 1.7em;
}
h2 {
font-size: 1.5em;
}
a {
color: black;
text-decoration: none;
}
body {
font-family: arial;
font-size: 80%;
line-height: 1.2em;
width: 100%;
margin: 0;
background: #eee;
}
#pagina {
margin: 20px;
}
#logo {
width: 35%;
margin-top: 5px;
font-family: georgia;
display: inline-block;
text-decoration: underline;
}
#nav {
width: 60%;
text-align: right;
float: right;
}
#nav ul li {
display: inline-block;
height: 62px;
}
#nav ul li a {
padding: 20px;
background: orange;
color: white;
}
#conteudo {
margin: 30px 0;
padding: 20px;
clear: both;
background-color: whitesmoke;
}
#rodape {
border-bottom: 1px #ccc solid;
margin-bottom: 10px;
}
#rodape p {
text-align: right;
text-transform: uppercase;
font-size: 80%;
color: grey;
}
.caixa {
box-shadow: 0px 1px 1px #999;
}
.caixa-redonda {
box-shadow: 0px 1px 1px #999;
border-radius: 20%;
}
<header>
<div id="logo">
<h1>>O nosso Web Site</h1>
</div>
<nav id="nav">
<ul>
<li><a class="caixa" href="index.html">Início</a></li>
<li><a class="caixa" href="#sobre.html">Sobre</a></li>
<li><a class="caixa" href="contactar.html">Contactar</a></li>
</ul>
</nav>
</header>
<section id="pagina">
<div id="conteudo" class="caixa">
<h2>Início</h2>
<p>
Este é o meu site! Consegui codificar todo o HTML e CSS de modo a este funcionar. Atenção Mundo da Web que acabei de chegar!!!
</p>
<p>
Vou usar as minhas aptidões para criar todo o tipo de websites, inclusive para a disciplina de RC.
</p>
</div>
</section>
<footer>
<p>
Página Criada por: <a href="/" target="_blank">[Davide]</a>
</p>
</footer>
1 - Edit your question and put your code here. 2 - What effect are you referring to?
– Jorge.M
Could you elaborate better on what kind of effect you’re looking to make?
– Eduardo Ribeiro
You want to do an effect like what?
– hugocsl
For example, when the mouse hovers over the text in the lists, the color becomes lighter and the text is underlined
– D. Rodrigues
The code is this: https://jsfiddle.net/50qcszhe/
– D. Rodrigues