Problem with menu

Asked

Viewed 35 times

0

When passing with the cursor over this one it turns blue and wanted it to stay blue while I was with the cursor over the submenu

inserir a descrição da imagem aqui

code:

	menu
	{ 
		padding-left: 0;
		display: inline-block;
		padding: 5;
		margin: 0;
		text-align:center;
	}

	menu ul
	{
		padding: 0;
		margin: 0;
	}

	menu li
	{
		float:left;
	}

	menu li a, #menu li span
	{
		display: inline-block;
		padding: 1em 1.5em 1em 1.5em;
		letter-spacing: 0.10em;
		text-decoration: none;
		font-size: 1.2em;
		text-transform: uppercase;
		outline: 0;
		color: #FFF;
	}
	menu li a:hover
	{
		color: dodgerblue;
	}
	menu li a:hover
	{
		color: dodgerblue;
	}
	menu li ul li 
	{
		color: dodgerblue;
	}

	menu li:hover
	{
		color: dodgerblue;
		background:white;      
	}
	menu li ul
	{
		display: none;  
	}
	menu li:hover ul{
		display: block;
		position:absolute;
		z-index:20;
		color: dodgerblue;
	} 
	menu li ul
	{
		color: dodgerblue;
	}
	menu li:hover li{
		float:none;
	}
	menu li ul li{
		display:block;
		background: black;
	}
<ul>
  <li><a href="?op=5" accesskey="5" title="">Sobre</a></li>
  <li><a href="?op=1" accesskey="2" title="">Convocatórias</a></li>
  <li><a href="?op=2" accesskey="3" title="">Atas</a></li>
  <li><a href='?op=6' accesskey='5' title=''>+ Utilizador</a></li> 
  <li><a href="logout.php">Sessao</a>
    <ul  style="text-decoration: none;float:none;width:120px">
      <li><a href="#" style=" background: black; width: 120px;text-decoration: none;">Informacao</a></li>
      <li><a href="#" style="background: black;width: 120px;text-decoration: none;">Definicões</a></li>
      <li><a href="logout.php" style="background: black;width: 120px;text-decoration: none;">Terminar</a></li>
    </ul>
  </li>
</ul>

  • in your css, this menu, would be a class, one id, or the tag menu?

  • is id, #menu ...

  • in sessao, try to remove the link, and leave the text only inside the li

  • I pulled a link, I put it in a div to format and it was straight. The width of the background that changes to enter in convocatoria and minutes, I suspect that is to have there other css(bootstrap), should not change because convocatoria is as include but how to reload the page This great thanks for the help

  • I removed the background color of li and put in ul and resolved

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.