Tudo sobre programação, banco de dados, internet, tecnologias, engenharia de software, dicas, tutoriais, dúvidas, apostilas e muito mais...
sexta-feira, 13 de março de 2009
CSS - Background
Ótimos exemplos da propriedade background do CSS.
Nestes exemplos retirados da W3C, após clicar no link você pode editar o código CSS e ver o que acontece no mesmo momento.
Exemplos:
Set the background color
This example demonstrates how to set the background color for an element.
Set an image as the background
This example demonstrates how to set an image as the background.
How to repeat a background image
This example demonstrates how to repeat a background image.
How to repeat a background image only vertically
This example demonstrates how to repeat a background image only vertically.
How to repeat a background image only horizontally
This example demonstrates how to repeat a background image only horizontally.
How to display a background image only one time
This example demonstrates how to display a background image only one time
How to place the background image
This example demonstrates how to place the image on the page.
How to position a background image using %
This example demonstrates how to position an image on the page using percent.
How to position a background image using pixels
This example demonstrates how to position an image on the page using pixels.
How to set a fixed background image
This example demonstrates how to set a fixed background image. The image will not scroll with the rest of the page.
All the background properties in one declaration
This example demonstrates how to use the shorthand property for setting all of the background properties in one declaration.
Retirado de: http://www.w3schools.com/css/css_background.asp
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário
Obrigado pela participação. Continue visitando Dúvidas de Programação - Programming Doubts