View Full Version : How do you create a background that is not layered?
dezii1
11-12-2006, 10:04 PM
how do you create a background that is not tiled nd is centered using HTML?:confused:
BLiZZaRD
11-12-2006, 11:05 PM
Centering vertically and horizontally is difficult to do, but can be done with CSS. Are you using CSS on your site?
You could also make a table I suppose and to a <td valign="center"><center>picname.jpg code here</center></td>
Something like that...
chechu
11-13-2006, 11:14 AM
I'd say: remake your background in PhotoShop and place it centered ..
Easiest and you're always sure about it.
I'd say: remake your background in PhotoShop and place it centered ..Er, who says s/he has Photoshop? That's some expensive software. Besides, it won't stay centred if the user's screen resolution (or window size) is something other than that for which s/he created the image.
coothead
11-13-2006, 06:59 PM
Hi there dezii1,
does this example help...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
* {
margin:0;
padding:0;
}
html,body {
height:100%;
color:#fff;
background-color:#003;
background-image:url(http://mysite.orange.co.uk/azygous/images/buddha.jpg);
background-repeat:no-repeat;
background-position:center center;
}
-->
</style>
</head>
<body>
<div></div>
</body>
</html>
coothead
dezii1
02-23-2008, 09:17 PM
Thank you guys for your help
coothead
02-23-2008, 09:34 PM
Hi there dezii1,
are you in Time Warp. ;)
There is a fourteen month time span between your original post and your second. :eek:
coothead
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.