PDA

View Full Version : HTML Help Needed! +REP



Huggies
28-07-2012, 12:00 PM
Hey HXF,

I'm in the process of making a website, but just need help with some code for a coming soon page, i'm very rusty with HTML cause it's been a while.
I'm trying the achieve; A Image centred in the background, with the a specific colour for the background for the image to merge in. If you could help it would greatly appreciated and +Rep will be given.

Regards, Huggies.

hamheyelliot
28-07-2012, 08:30 PM
If that's all you want on the page, you don't really need any HTML - you could just put this CSS inline the HTML document and replace the image.jpg with the location of your image, and #fff with a HEX colour code:


<style type="text/css">
html {
width:100%;
height:100%;
background: url(image.jpg) center center no-repeat #fff;
}
</style>

Want to hide these adverts? Register an account for free!