CSS e background

Zero_Cool_PT

What is folding?
Boas Pessoal to a tentar fzr uma CSS para aplicar num documento HTML.

aqui está o codigo da CSS:

<style type="text/css" title="CSS">
{
background: #00ff00 url('warren.jpeg') no-repeat fixed center;
}
<BODY background="Imagens\warren1.jpeg" bgproperties="Fixed" leftmargin=80 topmargin=80>

</style>

e aqui está o codigo do default:

<html>

<head>
<META NAME="author" CONTENT="me">
<META NAME="description" CONTENT="12">
<META NAME="keywords" CONTENT="1234">
<link rel=stylesheet type="text/css" href="css/CSS.css">


<style type="text/css">
table
{
border-collapse: separate;
empty-cells: show
}
</style>

</head>


<body>

<BODY background="Imagens\warren1.jpeg" bgproperties="Fixed">

<table border="1">
<tr>
<td>Quem é?</td>
<td>O que faz?</td>
</tr>
<tr>
<td>Biografia</td>
<td>Links Uteis</td>
</tr>
</table>

</body>

e como sou 1 alto noob e n percebo quase nd d html n ksg por o background do default a aparecer através da CSS =(

help?
 
Qual é a tua dúvida afinal?
se o que tens gravado na css é
<style type="text/css" title="CSS">
{
background: #00ff00 url('warren.jpeg') no-repeat fixed center;
}
<BODY background="Imagens\warren1.jpeg" bgproperties="Fixed" leftmargin=80 topmargin=80>

</style>

não vai funcionar porque não é é suposto teres tag de html em css.
recomendo-te: dares um salto a http://www.w3schools.com/css/
 
Qual é a tua dúvida afinal?
se o que tens gravado na css é
<style type="text/css" title="CSS">
{
background: #00ff00 url('warren.jpeg') no-repeat fixed center;
}
<BODY background="Imagens\warren1.jpeg" bgproperties="Fixed" leftmargin=80 topmargin=80>

</style>

não vai funcionar porque não é é suposto teres tag de html em css.
recomendo-te: dares um salto a http://www.w3schools.com/css/

como assim n tenho a tag?obg
 
Suponho que o que queiras seja algo do género:

CSS

body {
background: #00ff00 url('warren.jpeg') no-repeat fixed center;
}

table
{
border-collapse: separate;
empty-cells: show
}
HTML
<html>
<head>
<META NAME="author" CONTENT="me">
<META NAME="description" CONTENT="12">
<META NAME="keywords" CONTENT="1234">
<link rel=stylesheet type="text/css" href="css/CSS.css">
</head>
<body>
<table border="1">
<tr>
<td>Quem é?</td>
<td>O que faz?</td>
</tr>
<tr>
<td>Biografia</td>
<td>Links Uteis</td>
</tr>
</table>
</body>
</html>
De qualquer forma devias ler o tutorial da w3c.

abraço
 
Será?

Eu n percebo nada de html mas n será de estares a chamar a imagem que esta na pasta images? E o que tu estas a fazer é só a utilizar o código noutro sitio em que nao tem acesso á pasta das imagens que é aquela que tu vais buscar como backgroud?... Posso n estar certo mas usa antes um url para teres acesso online em vez de andares com a pasta das imagens atrás... Desculpem se n tem nada a ver!
 
Back
Topo