You are here: CSS not visible with XHTML decleration « HTML « IT news, forums, messages
CSS not visible with XHTML decleration

Posted by peteraward on 11/27/25 11:59

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; }

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация