akaii
11-24-2009, 09:16 PM
Hi guys
I don't understand why my <a href...> tag doesn't take the style I gave him in my CSS. Is it possible that the space between the <li> and the <a href...> is the cause? If yes how can I solve this in the CSS?
Here is my CSS code :
div.mod_login
{
position: absolute;
top: 5px;
z-index:-1;
left: 720px;
width: 150px;
height: 150px;
color:blue;
border:0px;
text-decoration: underline; color: blue;
}
div.mod_login a:link, a:visited, a:hover
{
text-decoration:underline; font-size: 10px; color: white;
}
div.mod_login li, ul
{
text-decoration:underline; font-size: 10px; color: white;
}
div.mod_login li a:link
{
text-decoration:underline; font-size: 10px; color: white;
}
here is the source code :
<div class="mod_login">
<form action="http://127.0.0.1/dev/index.php?option=com_user&task=login" method="post" name="login" id="login">
<label for="username_vmlogin">Identifiant</label><br/>
<li> <a href="/dev/index.php?">Inscription</a></li>
</ul>
</form>
</div>
I don't understand why my <a href...> tag doesn't take the style I gave him in my CSS. Is it possible that the space between the <li> and the <a href...> is the cause? If yes how can I solve this in the CSS?
Here is my CSS code :
div.mod_login
{
position: absolute;
top: 5px;
z-index:-1;
left: 720px;
width: 150px;
height: 150px;
color:blue;
border:0px;
text-decoration: underline; color: blue;
}
div.mod_login a:link, a:visited, a:hover
{
text-decoration:underline; font-size: 10px; color: white;
}
div.mod_login li, ul
{
text-decoration:underline; font-size: 10px; color: white;
}
div.mod_login li a:link
{
text-decoration:underline; font-size: 10px; color: white;
}
here is the source code :
<div class="mod_login">
<form action="http://127.0.0.1/dev/index.php?option=com_user&task=login" method="post" name="login" id="login">
<label for="username_vmlogin">Identifiant</label><br/>
<li> <a href="/dev/index.php?">Inscription</a></li>
</ul>
</form>
</div>