Jump to content

Recommended Posts

Posted

Não não gosto nada do IE  😕

E o botao nao é em imagem

é em css

.button {
background:#05BBE3;
padding: 8px 16px;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
border-left: 1px solid #000;
border-right:1px solid #000;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
color: black;
font-size: 18px;
font-family: Georgia, serif;
text-decoration: none;
vertical-align: middle;
overflow:hidden;
margin-left:5px;
text-align:center;
}
.button:hover {
background:#FEDF36;
overflow:hidden;
color: #000;
}

Posted

Qual é o doctype da página?

"Para desenhar um website, não tenho que saber distinguir server-side de client-side" - um membro do fórum que se auto-intitula webdesigner. Temo pelo futuro da web.

Posted

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

mas ja consegui...nao sei como mas consegui fazer o que queria =D

No entanto tenho surgiu outro problema!!

eu estou a criar um sub-menu  😕

e corre tudo bem funciona tudo optimamente

so que o botão é grande e eu queria que ele fosse menos largo e que estivesse alinhado do meio para a direita

.sub_button {

padding-bottom:5px;
padding-top:5px;
padding-left:2px;
padding-right:20px;
background:#7CE349;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
border-left: 1px solid #000;
border-right:1px solid #000;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
display:block;
color: black;
font-size: 14px;
font-family: Georgia, serif;
text-decoration: none;
vertical-align: middle;
overflow:hidden;
margin-bottom:5px;
margin-left:5px;
text-align:right;
}
.sub_button:hover {
background:#7CE349;
overflow:hidden;
color: #000;
}
#pai {
text-align:center;
}

#pai #sera-mostrada {
        display:none;
        left:inherit;
        position: relative;
        top: 2px; 
}
#pai:hover #sera-mostrada {
        display:block;
}

<div id='pai'>
               		<div class="content_button">
              			<a href="#" class="button">Actividades</a>
              		</div>
					<div id="sera-mostrada">
              				<a href="#" class="sub_button">Na Quinta</a>
      					</div>
                    	<div id="sera-mostrada">
              				<a href="#" class="sub_button">Nos Arredores</a>
      					</div>
   				</div>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.