centering my bg...
Started by
ggordie
, Jul 27 2005 10:03 PM
#1
Posted 27 July 2005 - 10:03 PM
#2
Posted 28 July 2005 - 11:31 AM
<style type="text/css">
body {
padding: 0px;
margin: 0px;
background-image: url(../folder/picture.jpg);
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-color: White; /*change color to suit*/
color : #000; /*change color to suit*/
}
</style>
body {
padding: 0px;
margin: 0px;
background-image: url(../folder/picture.jpg);
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-color: White; /*change color to suit*/
color : #000; /*change color to suit*/
}
</style>
Edited by ssone, 28 July 2005 - 11:32 AM.
#3
Posted 29 July 2005 - 10:30 AM
padding, margin, and color don't really need to be in there.. but i guess its ok since i read something outlining that he only knew html x.0
#4
Posted 29 July 2005 - 01:41 PM
ummmmmmm...thats why i created the whole thing for him, instead of leaving him in the dark
#5
Posted 29 July 2005 - 02:18 PM
Also, be sure it's placed between the head tags.
#6
Posted 29 July 2005 - 02:23 PM
haha..since some seem to be worried you may not know where to put this (which is def a possibility):
<html>
<head>
<style type="text/css">
body {
padding: 0px;
margin: 0px;
background-image: url(../folder/picture.jpg);
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-color: White; /*change color to suit*/
color : #000; /*change color to suit*/
}
</style>
</head>
<body>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
padding: 0px;
margin: 0px;
background-image: url(../folder/picture.jpg);
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-color: White; /*change color to suit*/
color : #000; /*change color to suit*/
}
</style>
</head>
<body>
</body>
</html>
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users