Forum Moderators: not2easy
HTML coding
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>Sunsets</title>
<link rel="stylesheet" type="text/css" href="ph.css">
<style type="text/css" media="all">
</style></head><body>
<a href="http://somthing><img border="0" src="pdhdsm.gif" alt="logo" width="200" height="86"></a></p>
<img border="0" src="rdhd.jpg" alt="road img" width="200" height="126"><br></p>
<h1>Sunrises And Sunsets</h1><br>
<h2>"
somthing"</h2><br>
<p><a href="mh.htm"><img src="P41sm.jpg" class="left" alt="City Park" syle=width: "200" height: "150"></a>
<span class="ptitl">"somthing "<br>somewhere</span>
<br style="clear: left"></p><hr>
I have even tried to take out the body (text:align center; } and put in a div.body tag but it still did not work as then all the float left text was also centered it was of its parent and centering what would i need to include in CSS to keep it from taking on its parent properties and using the ones designated for it.
Sorry for the a long post I did not know how to condence it any further for clarity
Pat
I have to say being knew to CSS i am enjoying the challanges it is offering me.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Centering 4.11.04</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.ctr{text-align:center;}
-->
</style>
</head>
<body>
<div class="ctr"><h1>title</h1></div>
</body>
</html>
It's impossible to get consistent results with invalid code. Internet explorer is very forgiving but many other browsers aren't.