469,568 Members | 1,482 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

CSS not working with XHTML

I have the following XHTML, and it links to page.css (which does
exist). Before I put in the xml decleration, doctype and html, it
worked. Now, the css is ignored. (FF1507Win98)

Any ideas?

--------------
<?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>My Home Page</title>
<link rel="stylesheet" type="text/css" title="Blue and Orange"
href="page.css" />
</head>
<body>
<h1 id="PageTitle"><span>Smarty example website - My Home
Page</span></h1>
<div id="MainText">
Hello Peoples.
</div>

<h1 id="FooterText">This website, it's design, contents, data and
concept are the copyright material of Peter Ward.</h1>

</body>
</html>

-----------------
page.css:

body { overflow: hidden; background-color: #ABCDEF; color: #339900; }
#PageTitle { text-align: center; font-weight: normal; color: #339900;
background-color: #FF9900; border: solid #D5B377 4px; }
#MainText { position: absolute; top: 20%; left: 10%; width: 80%;
padding: 0px; margin: 0px; text-align: center; font-size: 28pt; color:
#339900; background-color: #FEDCBA; border: solid #D4D4D4 4px; }
#FooterText { position: absolute; bottom: 0px; left: 0px; width: 104%;
height: 28px; padding: 0px; margin: 0px; text-align: center; font-size:
14pt; background-color: #000000; color: #FFFFFF; }

Sep 28 '06 #1
0 959

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kerberos | last post: by
5 posts views Thread by joemac | last post: by
8 posts views Thread by Ross | last post: by
6 posts views Thread by Nx | last post: by
12 posts views Thread by Manfred Kooistra | last post: by
6 posts views Thread by =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post: by
7 posts views Thread by Elizabeth Barnwell | last post: by
Jacotheron
3 posts views Thread by Jacotheron | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.