Pesquisar na Comunidade
Mostrando resultados para as tags ''Background''.
Encontrado 3 registros
-
Como inserir imagem como background em célula de tabela html
jacquesvaladares postou um tópico no fórum Desenvolvimento frontend
Como inserir uma imagem como background em uma célula de tabela. Fiz um exemplo simples q apresento abaixo. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <title>Teste de imagem na celula da tabela</title> <!--– I N I C I O C S S –--> <style type="" text/css=""> .imagem{ background: url(liz.png) no repeat; } </style><!--– F I M C S S –--> </head> <body> <table style="width: 100%; height: 450px; text-align: left; margin-left: auto; margin-right: auto;" border="2" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="height: 50%; width: 50%;"><class ="imagem"></class></td> <td style="height: 50%; width: 50%; background-color: rgb(255, 255, 204);"></td> </tr> <tr> <td style="height: 50%; width: 50%; background-color: rgb(51, 102, 255);"></td> <td style="height: 50%; width: 50%; background-color: rgb(51, 255, 51);"></td> </tr> </tbody> </table> <br> </body> </html> -
Boa tarde galera, tudo bem? estou tentando aprender javascript, mas o que eu preciso fazer eu ainda não sei. Eu tenho o meu menu do site e logo abaixo tenho a section serviços e a section produtos. Eu queria que inicialmente o background do menu fosse azul, mas quando a pessoa desse um scroll e chegasse na section serviços, o background do menu alterasse a cor. Alguem pode me ajudar?
- 1 resposta
-
- background
- menu
-
(e mais 1 )
Tags:
-
Background não centraliza corretamente
lucazbrandao postou um tópico no fórum Desenvolvimento frontend
Olá comunidade, No site que estou desenvolvendo eu criei um background com 3 imagens, top, bottom e center, ambas tem 1920 de largura. Meu código: body { width: 100%; background: url(../images/top-fon-bg.jpg) top center no-repeat, url(../images/bottom-fon-bg.jpg) bottom center no-repeat, url(../images/fon-repeat.jpg) center repeat-y; background-color: #000000; font-family: Tahoma, Arial, sans-serif; font-size: 12px; color: #7d7d7d; line-height: 1; min-height: 100vh; } O problema é que a imagem do centro não fica centralizada, parece que ela se move 1 pixel pro lado. Alguém sabe o que pode ser? Obrigado.- 6 respostas
-
- background
- position
-
(e mais 1 )
Tags: