Hey there,
I'm not very good with coding and need to center my text layer that I created in Dreamweaver. I have read lots of threads but can't get the advice to work for me fully. I have attempted lots of tips so my code might be cluttered or wrong. My layer of type is supposed to hover in the left most column. Here's my code as of now:
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Peloton Inc.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body
{
margin: auto auto;
padding: 0;
padding-top: 10px;
text-align: center;
}
#centered
{
width: 800px; /* set to desired width in px or percent */
text-align: auto; /* optionally you could use "justified" */
border: 0px; /* Changing this value will add lines around the centered area */
padding: 0;
margin: auto auto;
}
#Layer1 {
position:absolute;
left:239px;
width:120px;
height:392px;
z-index:1;
left: 209px;
top: 227px;
margin: auto auto;
text-align: center;
}
.style2 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style3 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000000;
font-size: 13px;
}
.style4 {
color: #000000;
font-size: 13px;
}
-->
</style></head>
</div>
<body leftmargin="auto auto" marginwidth="auto auto">
<div id="Layer1">
<p class="style3"><em><font color="#000000">We should take care not to make
the intellect our god; it has, of course, powerful muscles, but no personality
</font></em></p>
<p class="style3"><font color="#000000"><em>–</em>Albert Einstein</font></p>
</div>
<img src="images/contact.jpg" width="800" height="550" hspace="111" vspace="49" border="0" align="absmiddle" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="25,466,98,503" href="http://www.pelotoninc.com/home.html" />
<area shape="rect" coords="161,464,267,502" href="http://www.pelotoninc.com/mission.html" />
<area shape="rect" coords="496,464,617,503" href="http://www.pelotoninc.com/portfolio.html" />
<area shape="rect" coords="325,465,438,502" href="http://www.pelotoninc.com/up.html" />
<area shape="rect" coords="672,466,777,502" href="http://www.pelotoninc.com/contact.html" />
</map>
</body>
</html>
Can anybody help me? I'm running out of ideas.