drumlegend19
05-07-2011, 03:35 PM
I am very new to Html and CSS and I am having problems with my background.
It shows up in the browser but doesn't fill the whole of the screen, so I am left with white space. Here is the code for the css and html.
CSS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>this is the title of the web page</title>
<style type="text/css">
body
#content{width:1920px}
#content{height:1080px}
#content
{background:url(../images/background.gif)}
background-repeat: no-repeat;
</style>
</head>
<body>
</body>
</html>
HTML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title></title>
<meta name="keywords" content="your, keywords, here" />
<meta name="description" content="your description here" />
<meta name="author" content="your name here" />
<link rel="stylesheet" type="text/css" href="style/style2.css" />
</head>
<body>
<!-- main content section -->
<div id="content">
<h1> Lawrence's Page </h1>
<h2> Web Project </h2>
<ul>
<li><a href= "wep/first.html" tabindex="1" title= "My first valid XHTML webpage"> View My First Page</a></li>
<li><a href= "wep/about_me.html" tabindex="1" title= "about_me valid XHTML webpage"> About Me</a></li>
<li><a href= "wep/poem.html" tabindex="1" title= "poem valid XHTML webpage"> Poem</a></li>
<li><a href= "wep/semantics.html" tabindex="1" title= "semantics valid XHTML webpage"> Semantics</a></li>
</ul>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml11"
alt="Valid XHTML 1.1" height="31" width="88" /></a>
</p>
</body>
</html>
Any help much be appreciated and as I said, I am very new to this
It shows up in the browser but doesn't fill the whole of the screen, so I am left with white space. Here is the code for the css and html.
CSS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>this is the title of the web page</title>
<style type="text/css">
body
#content{width:1920px}
#content{height:1080px}
#content
{background:url(../images/background.gif)}
background-repeat: no-repeat;
</style>
</head>
<body>
</body>
</html>
HTML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title></title>
<meta name="keywords" content="your, keywords, here" />
<meta name="description" content="your description here" />
<meta name="author" content="your name here" />
<link rel="stylesheet" type="text/css" href="style/style2.css" />
</head>
<body>
<!-- main content section -->
<div id="content">
<h1> Lawrence's Page </h1>
<h2> Web Project </h2>
<ul>
<li><a href= "wep/first.html" tabindex="1" title= "My first valid XHTML webpage"> View My First Page</a></li>
<li><a href= "wep/about_me.html" tabindex="1" title= "about_me valid XHTML webpage"> About Me</a></li>
<li><a href= "wep/poem.html" tabindex="1" title= "poem valid XHTML webpage"> Poem</a></li>
<li><a href= "wep/semantics.html" tabindex="1" title= "semantics valid XHTML webpage"> Semantics</a></li>
</ul>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml11"
alt="Valid XHTML 1.1" height="31" width="88" /></a>
</p>
</body>
</html>
Any help much be appreciated and as I said, I am very new to this