Cristiane Jamison 0 Denunciar post Postado Maio 27, 2014 Eu preciso virar essas div's em 180ºC. Elas precisam estar retas abaixo em linha reta no canto direito, mas eu não estou conseguindo. Alguém pode me ajudar, esta aqui o código para dar uma olhada <!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>Untitled Document</title> <style type="text/css"> body {font-size:150px} #apDiv1 { position: relative; margin: 30px; background-color: rgba(204,0,0,1); float: right; width: 60px; height: 5ex; z-index: 1; } #apDiv2 { position: relative; margin:30px; background-color: rgba(204,0,0,0.75); float:right; width: 60px; height: 4ex; z-index: 2; } #apDiv3 { position: relative; margin:30px; background-color: rgba(204,0,0,0.5); float:right; width: 60px; height: 3ex; z-index: 3; } #apDiv4 { position: relative; margin:30px; background-color: rgba(204,0,0,0.25); float:right; width: 60px; height: 2ex; z-index: 4; } #apDiv5 { position: absolute; bottom:0px; right:0px; z-index: 5; } </style> </head> <body> <div id="apDiv5"><div id="apDiv1"></align></div> <div id="apDiv2"></div> <div id="apDiv3"></div> <div id="apDiv4"></div></div> </body> </html> Compartilhar este post Link para o post Compartilhar em outros sites
Marcos Xavier 189 Denunciar post Postado Maio 27, 2014 https://www.google.com.br/#q=rotacionar+elementos+com+css Compartilhar este post Link para o post Compartilhar em outros sites
Cristiane Jamison 0 Denunciar post Postado Maio 27, 2014 já tentei, não da certo. As div's precisam ficar alinhadas abaixo, elas estão para cima :/ Compartilhar este post Link para o post Compartilhar em outros sites
jgustavo99 85 Denunciar post Postado Maio 27, 2014 Olá! Abaixo vou citar alguns Links: http://www.maisumpixel.com.br/categoria/CSS/rotacionando-textos-com-css http://stackoverflow.com/questions/14233341/how-can-i-rotate-an-html-div-to-90-degrees Compartilhar este post Link para o post Compartilhar em outros sites
reebr 94 Denunciar post Postado Maio 28, 2014 Por que ao invés de "float: right" você não usa "float: bottom"? http://jsfiddle.net/rnxn/467Ur/ Compartilhar este post Link para o post Compartilhar em outros sites
Giovani 104 Denunciar post Postado Maio 28, 2014 Por que ao invés de "float: right" você não usa "float: bottom"? http://jsfiddle.net/rnxn/467Ur/ o float não tem como valor bottom: http://www.w3.org/wiki/CSS/Properties/float Compartilhar este post Link para o post Compartilhar em outros sites
reebr 94 Denunciar post Postado Maio 29, 2014 o float não tem como valor bottom: http://www.w3.org/wiki/CSS/Properties/float :o Que curioso, eu não sabia disso. Eu "descobri" esse valor fuçando na IDE que utilizo e, visto que funcionou em todos os navegadores (e nunca tive problemas com ela) acabei adotando-a nos meus projetos. Estranho não!? Além de "bottom", há os seguintes valores: Há algum problema em utilizar outros valores, além dos que existem no site que postou? Obrigado. Compartilhar este post Link para o post Compartilhar em outros sites
Giovani 104 Denunciar post Postado Maio 29, 2014 Há algum problema em utilizar outros valores, além dos que existem no site que postou? O único problema é que não vai funcionar. Faça um teste e retire dos projetos que você colocou, vai perceber que não faz difereça. Sobre o site que postei ... digamos que ele seja a maior referência sobre css que possa existir :) Compartilhar este post Link para o post Compartilhar em outros sites
reebr 94 Denunciar post Postado Maio 29, 2014 Interessante, obrigado. Compartilhar este post Link para o post Compartilhar em outros sites