Jump to content


Marcos Lopes

Member Since 08/09/2009
Offline Last Active 22/03/2013, 11:59
-----

Posts I've Made

In Topic: Esticar Background Da Tabela Junto Com Ela

12/05/2012, 10:10

Se o background for ocupar a tela toda, pode usar este plugin.


Para o fundo do site já fiz a rotina abaixo, mas o q preciso é para dentro da tabela:

No head:
</head>
<style type="text/css">
/* Remove margins from the 'html' and 'body' tags, and ensure the page takes up full screen height */
html, body {height:100%; margin:0; padding:0;}
/* Set the position and dimensions of the background image. */
#page-background {position:fixed; top:0; left:0; width:100%; height:100%;}
/* Specify the position and layering for the content that needs to appear in front of the background image. Must have a higher z-index value than the background image. Also add some padding to compensate for removing the margin from the 'html' and 'body' tags. */
#content {position:relative; z-index:1; padding:10px;}
<!--[if IE 6]>
<style type="text/css">
html {overflow-y:hidden;}
body {overflow-y:auto;}
#page-background {position:absolute; z-index:-1;}
#content {position:static;padding:10px;}
<![endif]-->
</style>
</head>

Tira as coordenadas de margens do body e logo após ele:
<body>
<div id="page-background"><img src="Imgs/menu_fundo2.jpg" width="100%" height="100%"></div>
<div id="content">
...
</div>
</body>

Vlw, mas realmente queria algo parecido para o fundo da tabela.

Abs

IPB Skin By Virteq