Jump to content

from BG colors etc. to CSS for XHTML


eaglelegend

Recommended Posts

Hey,

 

I am trying to make my pages XHTML strict, however it requires that I have CSS's instead of - well look below... (my code)

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
  <?php include("config.php"); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="author" content="Mark Richardson" />
<meta name="description" content="Eagle Legend - The newest, safest and best Virtual Pet Site in the hole of Cyberspace!" />
<meta name="keywords" content="eagle legend, eaglelegend, eagle, legend, pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids" />
<meta name="revised" content="Eagle Legend, 04/01/08" />
<title>Eagle Legend</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script language="javascript" type="text/javascript">
//<![CDATA[
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');");
}
//]]>
</script>
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
/*<![CDATA[*/
div.c1 {text-align: center}
/*]]>*/
</style>

<style type="text/css">
/*<![CDATA[*/
img.c1 {border:0;width:88px;height:31px}
/*]]>*/
</style>
</head>
<body>
<div class="c1">
<table border="0" width="980" cellpadding="4" cellspacing="4" bgcolor="#000000">
<tr>
<td colspan="2"><a href="index.php"><img src="images/headers/banner.png" border="0" alt="Eagle Legend" /></a></td>
</tr>
<tr>
<td width="180" valign="top" bgcolor="#04AA44">
  <? include("nav.php"); ?>
  </td>
<td width="800" valign="top" bgcolor="#70BEFF">[/font]

now how do I do this?, change or put them in my CSS, and not have it change anything, badly?

Link to comment
https://forums.phpfreaks.com/topic/99508-from-bg-colors-etc-to-css-for-xhtml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.