Forum Moderators: not2easy

Message Too Old, No Replies

centred background image

         

captain creative

2:53 pm on Nov 20, 2006 (gmt 0)

10+ Year Member



Hello all,
I have a background image (gif image) set in a page (using D/weaver MX 2004). I have turned off the repeat image function. but it is aligning itself to the left of the page when previewed in IE6, despite the fact that I have typed in 'centre' in the 'background centre' box of the tag inspector panel. How do I get the background image to be PERFECTLY centred on the page?
the page is 1058x710 in size and the gif background image is 900x750 if that helps. the background image is perfect size when previewed, it's just in the wrong place!

any ideas greatly received.

Captain Creative

Dabu The Dragon

3:11 pm on Nov 20, 2006 (gmt 0)

10+ Year Member



can you post the CSS script you are using to position the image?

captain creative

3:17 pm on Nov 20, 2006 (gmt 0)

10+ Year Member



Hi, I'm new to CSS so I hope this is it!

</script>
<style type="text/css">
<!--
body {
background-image: url(cc-menu4.gif);
background-repeat: no-repeat;
background-color: #FFFFFF;
background-position: centre centre;
}
body,td,th {
font-family: Century Gothic;
background-repeat: no-repeat;
background-position: centre centre;
}
.style5 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-style: italic;
}
.style2 {
font-size: small;
font-weight: bold;
font-family: "Century Gothic";
overflow: scroll;
}
.style3 {font-size: large;
font-weight: bold;
font-family: "Century Gothic";
}
.style4 {font-family: "Century Gothic"}
a:link {
color: #999999;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #999999;
}
a:hover {
text-decoration: none;
color: #FF00FF;
}
a:active {
text-decoration: none;
color: #999999;
}
.style6 {font-size: x-large}
-->
</style>

jessejump

3:20 pm on Nov 20, 2006 (gmt 0)

10+ Year Member



Try center.

captain creative

3:26 pm on Nov 20, 2006 (gmt 0)

10+ Year Member



Brilliant! how simple was that?! how dumb am I?!

Thanks

Captain Creative

swa66

4:42 pm on Nov 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



US English vs. British English spelling, nothing to be ashamed of.

BTW: the definition is here:
[w3.org...]