Log in

View Full Version : Css full page background



Godji
09-24-2011, 06:58 AM
Hi guys !
I need your help please (important !)
I'd like to use a speaker grill background on my website,I've tried hardly to make it fit the screen but I still can't do it .
This is the code i use »


.BG_Null
{
}
.BG_Base
{
background-color:#436C99;
}
.BG_VeryLight
{
background-color:#ffffff;
}
.BG_Light
{
background-color:#ffffff;
}
.BG_Mid
{
background-color:#638CBB;
}
.BG_Dark
{
background-image:url(http://freephotoshopdownload.net/wp-content/uploads/2011/04/Black-Background-Set.png);
}
.BG_VeryDark
{
background-color:#000000;
}



.F_VeryLight
{
color:#ffffff;
}
.F_Light
{
color:#ffffff;
}
.F_Mid
{
color:#638CBB;
}
.F_Dark
{
color:#000000;
}
.F_VeryDark
{
color:#000000;
}


body
{
text-align:Center;
background-image: url(http://farm4.static.flickr.com/3377/3287762868_fe8fec846d_o.jpg);


font-family:'Courier New', monospace;
font-size:10pt;
color:#000000;
}




.MS_MasterFrame
{
margin-left:auto;
margin-right:auto;
}


td, th
{
font-family:'Courier New', monospace;
font-size:10pt;
}


.MS_MasterFrame
{
width:980px;

}

.MSC_SiteWidth,.MS_MasterHeader,.MS_MasterGlobalLinks,.MS_MasterPrimaryNav,.MS_MasterFooter,.MS_MasterTopAD,.MS_MasterBottomAD
{
width:100%;

}



.MSC_HeaderFrame
{
background-color:000000;
width:100%;

}

.MSC_HeaderDescription
{
font-size:12px;
margin:0px;
}

PLEASE HELP ME !!

coothead
09-24-2011, 10:26 AM
Hi there Godji,

check out the attachment to see my humble attempt. ;)

coothead

Godji
09-24-2011, 10:51 AM
Lol That's interesting !! I'll try it that way. But why if I want to use another image where I can't crop it,like a photo of a group of person ? Thanks for your attemp,I really apreciate it.

Take a look on my website » http://isakpase.com/default.aspx

coothead
09-24-2011, 11:37 AM
Hi there Godji,

here is an example that uses CSS3 background-size and will work in modern browsers...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<base href="http://killmydaynow.com/wp-content/uploads/2010/07/WeirdandStrangePeople42PICS_13710/">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">

<title>stretched background image</title>

<style type="text/css">
html,body {
margin:0;
padding:0;
height:100%;
background-image:url(WierdandStrangePeople_1.jpg);
background-size:100% 100%;
}
</style>

</head>
<body>

<div></div>

</body>
</html>

coothead