Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

jnejunior

[Resolvido] cantos arredondados

Recommended Posts

estou criando um site, mas seus cantos são arredondados, mas não estou sabendo como fazer. alguem me ajuda?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Seguinte:

 

1. Dedica se você quer dar suporte à browsers antigos, se não, utilize CSS3, o caminho é extremamento mais curto:

#ELEMENT {-webkit-box-radius:5px; -moz-box-radius:5px; -khtml-box-radius:5px;}
Pronto! Você terá bordas arredondadas no Chrome, Mozilla, Opera e talvez no utópico IE9.

 

2. Se quiser fazer com JQuery puro (foi o melhor plugin que encontrou, que serve também para imagens e tem tratamento de cantos individual):

 

http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery/

 

3. Se quiser fazer com CSS puro:

 

http://maujor.com/w3ctuto/roundshadow.html (esse tem também sombra)

 

Conclusão: isso vai da sua opinião. Eu recomendo o JQuery, pelo compatibilidade e pela facilidade. Falou!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Compartilhar este post


Link para o post
Compartilhar em outros sites

tentei usar imagens mesmo, mas deu muito trabalho... então?

e não consegui muita coisa... sera que tem um jeito mais simples?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Olá jnejunior,

 

Olhe aqui fica o CSS e o HTML:

CSS

* {
	margin: 0;
	padding: 0;
	list-style: none;
}

body {
	background: #000;

}

#topo {
	width: 750px;
	height: 204px;
}

#global {
	margin: 0 auto;
	background: url(img/topo.gif) no-repeat;
	width: 750px;
}

#lema img {
	margin: 45px 0 0 319px;	
}

#menu {
	margin: -110px 0 0 60px;	
}

#menu ul {
	text-align: center;	
}

#menu ul li {
	color: #999;
	display: inline;
}

#menu ul li a {
	text-align: center;
	color: #838588;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 70%;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
}

#menu ul li a:hover {
	color: #ccc;	
}

#conteudo {
	background: url(img/meio.gif) repeat-y;
}

#conteudo p {
	color: #fefefe;
	text-align: justify;
	padding: 10px 25px;
	margin-top: 18px;
}

#rodape {
	background: url(img/rodape.gif) no-repeat;
	width: 750px;
	height: 127px;
}

#rodape address {
	color: #fefefe;
	padding: 50px 0 0 25px;
	text-align: left;
}
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>

<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="global">
	<div id="lema"><img src="img/msntopo.gif" /></div>

	<div id="topo"></div>

    <div id="menu">
    	<ul>
        	<li><a href="#" class="ini">início</a> | </li>
            <li><a href="#">cortes</a> | </li>
            <li><a href="#">penteados</a> | </li> 
            <li><a href="#" class="fim">contato</a></li>

       </ul>
    </div>
    <div id="conteudo"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p></div>
    <div id="rodape">
    	<address>
        	R. Helmutt Falgatter, 1234 <br/>
            Boa Vista - Joinville, SC
        </address>

    </div>

</div>

</body>
</html>
Cumprimentos

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.