I need help centering a div!

Hi!
So i'm attempting to set up all the body content in my website so that it is always in the center of my webpage dispite the size of the browser. I had it going fine for a while, but then something happened and I lost it. What did I do wrong?
Help!!
Here is my complete code so far:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
          background-image: url(images/images/images/images/baby_03.png);
#apDiv1 {
          position:absolute;
          width:202px;
          height:153px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:1;
          left: 41px;
          top: -1px;
#apDiv2 {
          position:absolute;
          width:200px;
          height:115px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:2;
          left: 480px;
          top: 148px;
#apDiv3 {
          position:absolute;
          width:200px;
          height:43px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:2;
          left: 254px;
          top: 2px;
#apDiv4 {
          position:absolute;
          width:200px;
          height:40px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:3;
          left: 285px;
          top: 2px;
#Layer1 #apDiv4 pre {
          font-family: helvetica;
          font-size: 18px;
          color: #EAEAEA;
#apDiv5 {
          position:absolute;
          width:200px;
          height:115px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:4;
          left: 588px;
          top: 135px;
#apDiv6 {
          position:absolute;
          width:200px;
          height:115px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:4;
          left: 539px;
          top: 80px;
#apDiv7 {
          position:absolute;
          width:200px;
          height:115px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:4;
          left: 537px;
          top: 62px;
#apDiv8 {
          position:absolute;
          width:549px;
          height:115px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:4;
          left: 556px;
          top: 64px;
#apDiv9 {
          position:absolute;
          width:200px;
          height:115px;
          layer-background-color:#000;
          border:1px none #000000;
          z-index:5;
          left: 66px;
          top: 177px;
#menue {
          background-color:#2C2929;
          padding:1px;
          text-align:right;
          font-family:Arial, Helvetica, sans-serif;
body,td,th {
          font-size: 13px;
          font-family: Arial, Helvetica, sans-serif;
          color: #FFF;
          color: #FFFFFF;
#textone {
          font-family:Arial, Helvetica, sans-serif;
#Layer1 div #menue pre {
          font-family: Arial, Helvetica, sans-serif;
</style>
</head>
<div id="Layer1" style="margin-left:auto; margin-right:auto; width:938px; height:100%; z-index:1; layer-background-color: #9999FF; border: 1px none #000000;"><body text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="text-align:center; width: 938px;">
  </div>
    <div id="menue">
      <pre>PORTFOLIO       RESUME       CONTACT</pre>
    </div>
    <img src="images/images/images/images/autumn_06.png" width="938" height="439" />
<div>
  <table width="938" border="0" cellspacing="10px" cellpadding="0">
    <tr>
      <th scope="col"><p align="center">WHO I AM:</p>
      <p align="center">People often remark that I'm pretty lucky. Luck is only important in so far as getting the chance to sell yourself at the right moment. After that, you've got to have talent and know how to use it. - Fank Sinatra</p>
      <p align="center">Similar to Ol' Blue Eyes, I've got talent and I know how to use it. I'm an ambitious graphic designer from New York. I love design and am constantly learning more about this ever changing trade. I also dabble in scientific illustration and gardening.</p></th>
      <th scope="col"><p align="center">WHAT I DO:</p>
      <p align="center">I'm knowledgeable in Adobe Photoshop, Illustrator, InDesign, Dreamweaver, and Flash. I create print material, design logos, and build websites that stand out amoungst the rest. Currently an intern at Flourish Design Studio and a student a Marywood University, I have developed this site in order to showcase my work for future employers.</p>
      <p align="center">Some examples of my work can be found here.</p>
      <p align="center"><th scope="col"><script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 30000,
  width: 250,
  height: 300,
  theme: {
    shell: {
      background: '#333333',
      color: '#ffffff'
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#0a8082'
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    behavior: 'all'
}).render().setUser('SaraLynnLuciano').start();
</script></th></p></th>
    </tr>
  </table>
</div>
</div>
</body>
</html>

APDivs, oh my!  I don't recommend building primary layouts with APDivs. In the long-run you will regret it.  Here's why:
http://apptools.com/examples/pagelayout101.php
That said, wrap your content inside a #wrapper division that has a stated width in pixels, a margin-left and margin-right of auto, AND position:relative to contain those pesky APDivs.
CSS:
#wrapper {
position:relative;
width: 990px;
margin:0 auto;
HTML:
<body>
     <!--begin wrapper-->
     <div id="wrapper>
          your page content goes here.....
     </div>
</body>
</html>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • I need help Centering a div box to a background image using dreamweaver cs5.5.

    I need help Centering a div box to a background image using dreamweaver cs5.5. Everything shift left when viewing on different size monitors?  See what I mean at
    www.woodlandhospice.com

    Have you looked at your page with images disabled?
    I urge you to re-think this approach to web design because images of text are not indexed by search engines, screen readers or translators.  Given the demographic group your site is targeting, you really need to ensure maximum web accessibility for all users.
    Navigation, headings and descriptions all need to be in real text -- not images of text.
    Ken is right.  Absolute positioning is pure poison for such a simple layout.  My advice is to start over with one of the pre-built Starter Pages in DW.  Go to File > New > Blank page > HTML.  Select a layout from the 3rd column and hit CREATE button.
    Nancy O.

  • Need help centering DIV in CSS

    Hi- I had a "coming to jesus" last night regarding my website.  I've been out of the professional web design world for about 7 years.  I'm getting back in it.  I used to design in tables and after some reading, I know I need to design in DIV.  My problem is I do not know how to get my main section centered on the page.
    I did a sketch up of what I want in layout terms.
    Any suggestions on how to center a 980px div?
    Here's a link to my current page with table layout.
    http://www.prodentite.com/patient_edu/index.htm
    Any help is appreciated.

    This is a very common question, so an article has been published in the Dreamweaver FAQ
    Centering a page:
    http://forums.adobe.com/thread/454036
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.perrelink.com.au
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    http://twitter.com/nadiap

  • Need Help With Dreamweaver Divs

    This is a clip of my website that I am making, it is not online yet.
    But what I need help is with the divs, as you can see the div with the blue text is overlapping a fireworks html banner I made.
    Any way I can fix this so that the fireworks banner goes over the div instead of the other way around?
    All help is thanked!

    This is a problem with stacking order.  Your Blue Text division has priority over your rollover-menus.
    Please read about z-index.
    http://www.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/
    For better answers, we need a link to your site's test page.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Need help with overlapping divs!

    Hey everyone,
    I'm working on another website and I have come up against a common problem for newbie designers from what I hear, the dreaded overlapping div problem!  I have a 2 column fixed layout with a floating left div.  My left div has my nav bar and various images.  When my main content div has more content than the left floating div, the left div border does not reach the footer!  Until now, I have gotten by with just hitting return in my left column div until it reaches the footer.  I am sure it is not the right way to do it but it has worked so far.  The problem is, now one of the pages has the left column div overlapping onto the footer!  I did some reading and I am guessing it involves either the box properties or clear float which I am not too familiar with.
    Any advice would be stellar!  I know this is just another stumbling block to get over but I would feel so much better if I was doing it the right way. 
    Here are screens of my issue,
    And here is my code for the page in question.
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="http://www.xldesignsonline.com/fchi/favicon.ico">
    <title>Full Circle Home Inspections</title>
    <link href="_css/main.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <style type="text/css">
    <!--
    body {
         background-color: #FFF;
    .paragraphLead {
         font-size: 110%;
         font-weight: bold;
    a:link {
         text-decoration: none;
         color: #CF0;
    a:visited {
         text-decoration: none;
    a:hover {
         text-decoration: none;
    a:active {
         text-decoration: none;
    #apDiv1 {
         position:absolute;
         width:236px;
         height:157px;
         z-index:1;
         left: 692px;
         top: 372px;
    #apDiv2 {
         position:absolute;
         width:200px;
         height:192px;
         z-index:2;
         left: 697px;
         top: 1443px;
    #apDiv3 {
         position:absolute;
         width:158px;
         height:204px;
         z-index:2;
         left: 643px;
         top: 1502px;
    -->
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
      <div id="header">
        <h1><!-- end #header -->
      </h1></div>
      <div id="sidebar1">
        <h3 align="center">
          <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="620">
            <param name="movie" value="_assets/menu.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="_assets/menu.swf" width="200" height="620">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
        </h3>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.nachi.org/"><img src="_images/interNACHI.png" alt="InterNACHI" width="190" height="164" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.nachi.org/education.htm"><img src="_images/education-seal-small.gif" alt="education seal" width="150" height="150" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.iac2.org/"><img src="_images/iac2-all.gif" width="174" height="126" alt="IAC" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.inspectopia.com/profile.b.507.r.16181.u.03bcfb.html"><img src="_images/logo_top.png" alt="Inspectopedia" width="190" height="45" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.energystar.gov/"><img src="_images/img_energy_star_partner.jpg" width="160" height="191" alt="Energy Star Partner" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://cjenterprises.myshaklee.com/us/en/welcome.html#"><img src="_images/Shaklee.gif" alt="Shaklee" width="119" height="160" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://activerain.com/"><img src="_images/ARLogoSmall.gif" alt="Active Rain" width="135" height="36" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.insiderpages.com/b/15246780294"><img src="_images/insider_pages.gif" alt="Insider Pages" width="89" height="37" border="0" /></a></p>
    <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
      </div>
      <div id="mainContent">
        <h2>Radon Gas Inspection</h2>
        <div id="paragraphFloat">
          <h5>What Is Radon?</h5>
          <p> Radon is a cancer causing radioactive gas. You cannot see, smell or taste radon, but it may be a problem in your home. The Surgeon General has warned that radon is the second leading cause of lung cancer in the United States today. </p>
          <div id="apDiv1">
        <div align="center"><a href="http://www.epa.gov/radon/video/epa-epu.wmv"><img src="_images/psa_revised.jpg" alt="What Is Radon?" width="200" height="172" border="0" /></a></div></div></div>
        <p>If you smoke and your home has high radon levels, you're at high risk for developing lung cancer. Some scientific studies of radon exposure indicate that children may be more sensitive to radon. This may be due to their higher respiration rate and their rapidly dividing cells, which may be more vulnerable to radiation damage. </p>
    <p> </p>
        <h5>Why Is It Dangerous?</h5>
    <p> The U.S. Environmental Protection Agency (US EPA) and the Surgeon General's Office have estimated that as many as 20,000 lung cancer deaths are caused each year by radon. Radon is the second leading cause of lung cancer. Radon-induced lung cancer costs the United States over $2 billion dollars per year in both direct and indirect health care costs.</p>
    <p>According to the US EPA, nearly 1 in 3 homes checked in seven states and on three Indian lands had screening levels over 4 pCi/L, the EPA's recommended action level for radon exposure.</p>
    <p>The alpha radiation emitted by radon is the same alpha radiation emitted by other alpha generating radiation sources such as plutonium.</p>
    <p>A family whose home has radon levels of 4 pCi/l is exposed to approximately 35 times as much radiation as the Nuclear Regulatory Commission would allow if that family was standing next to the fence of a radioactive waste site. (25 mrem limit, 800 mrem exposure)</p>
    <p> At the 4 pCi/l EPA action guideline level, radon carries approximately 1000 times the risk of death as any other EPA carcinogen. It is important to note that the action level is not a safe level, as there are no &quot;safe&quot; levels of radon gas.</p>
    <p> </p>
    <h5>How Does It Get Into My Home?</h5>
    <p> Radon is a radioactive gas. It comes from the natural decay of uranium that is found in nearly all soils. It typically moves up through the ground to the air above and into your home through cracks and other holes in the foundation. Your home traps radon inside, where it can build up. Any home may have a radon problem. This means new and old homes, well-sealed and drafty homes, and homes with or without basements.</p>
    <p> Radon from soil gas is the main cause of radon problems. Sometimes radon enters the home through well water. In a small number of homes, the building materials can give off radon, too. However, building materials rarely cause radon problems by themselves.</p>
    <p><strong>Radon gets in through:</strong></p>
    <ul>
      <li>Cracks in solid floors
        <div id="apDiv3">
          <div align="center"><a href="http://www.fullcirclehomeinspections.com/_assets/CitizensGuideRadon.pdf"><img src="_images/citguidecoverradon.jpg" alt="Guide To Radon" width="154" height="200" border="0" /></a></div>
        </div>
      </li>
      <li>Construction joints</li>
      <li>Cracks in walls</li>
      <li>Gaps in suspended floors</li>
      <li>Gaps around service pipes</li>
      <li>Cavities inside walls</li>
      <li>Surrounding water supply</li>
    </ul>
    <p> </p>
    <h5>What Can I Do?</h5>
    <p> Radon is a national environmental health problem. Elevated radon levels have been discovered in every state. The US EPA estimates that as many as 8 million homes throughout the country have elevated levels of radon. Current state surveys show that 1 home in 5 has elevated radon levels.</p>
    <p> Testing is the only way to know your home's radon levels. There are no immediate symptoms that will alert you to the presence of radon. It typically takes years of exposure before any problems surface. </p>
    <p>Let <strong>Full Circle Home Inspections</strong> ensure your family and your home are protected and safe from radon exposure!</p>
    <p> </p>
    <h5>Radon Myths</h5>
    <p><strong><em>MYTH:</em> Scientists are not sure that radon really is a problem.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Although some scientists dispute the precise number of deaths due to radon, all the major health organizations (like the Centers for Disease Control and Prevention, the American Lung Association and the American Medical Association) agree with estimates that radon causes thousands of preventable lung cancer deaths every year. This is especially true among smokers, since the risk to smokers is much greater than to non-smokers.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Radon testing is difficult, time-consuming and expensive.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Radon testing is easy. You can test your home yourself or hire a qualified radon test company. Either approach takes only a small amount of time and effort.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Homes with radon problems can't be fixed.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> There are simple solutions to radon problems in homes. Hundreds of thousands of homeowners have already fixed radon problems in their homes. Most homes can be fixed for about the same cost as other common home repairs; check with one or more qualified mitigators. Call your <a href="http://www.epa.gov/radon/whereyoulive.html">state radon office</a> for help in identifying qualified mitigation contractors.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Radon affects only certain kinds of homes.</strong></p>
    <blockquote>
      <p><strong><em>FACT: </em></strong>House construction can affect radon levels. However, radon can be a problem in homes of all types: old homes, new homes, drafty homes, insulated homes, homes with basements, and homes without basements. Local geology, construction materials, and how the home was built are among the factors that can affect radon levels in homes.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Radon is only a problem in certain parts of the country.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> High radon levels have been found in every state. Radon problems do vary from area to area, but the only way to know your radon level is to test.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> A neighbor's test result is a good indication of whether your home has a problem.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> It's not. Radon levels can vary greatly from home to home. The only way to know if your home has a radon problem is to test it.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Everyone should test their water for radon.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Although radon gets into some homes through water, it is important to first test the air in the home for radon. If your water comes from a public water supply that uses ground water, call your water supplier. If high radon levels are found and the home has a private well, call the Safe Drinking Water Hotline at 1-800-426-4791 for information on testing your water.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> It's difficult to sell homes where radon problems have been discovered.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Where radon problems have been fixed, home sales have not been blocked or frustrated. The added protection is some times a good selling point.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> I've lived in my home for so long, it doesn't make sense to take action now.</strong></p>
    <blockquote>
      <p><strong><em>FACT: </em></strong>You will reduce your risk of lung cancer when you reduce radon levels, even if you've lived with a radon problem for a long time.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Short-term tests can't be used for making a decision about whether to fix your home.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em> </strong>A short-term test, followed by a second short-term test* can be used to decide whether to fix your home. However, the closer the average of your two short-term tests is to 4 pCi/L, the less certain you can be about whether your year-round average is above or below that level. Keep in mind that radon levels below 4 pCi/L still pose some risk. Radon levels can be reduced in most homes to 2 pCi/L or below.</p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p align="center"><img src="_images/CA-3.jpg" width="520" height="207" /></p>
    </blockquote>
      </div>
      <div id="footer">
        <p align="center"><strong>© 2009 XL Designs Online - All Rights Reserved </strong></p>
      </div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>
    And here is my CSS if needed,
    @charset "utf-8";
    body  {
         font: 100% Verdana, Arial, Helvetica, sans-serif;
         background: #666666;
         margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
         padding: 0;
         text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
         color: #000000;
    .twoColFixLtHdr #container {
         width: 950px; /* the auto margins (in conjunction with a width) center the page */
         border: 1px solid #000000;
         text-align: left; /* this overrides the text-align: center on the body element. */
         margin-top: 20px;
         margin-right: auto;
         margin-bottom: 20px;
         margin-left: auto;
         background-color: #557050;
    .twoColFixLtHdr #header {
         border-bottom: 1px solid #000000;
         height: 250px;
         background-color: #DDDDDD;
         padding-top: 0;
         padding-right: 10px;
         padding-bottom: 0;
         padding-left: 20px;
         background-image: url(../_images/homebanner1.png);
    .twoColFixLtHdr #header h1 {
         margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
         padding: 20px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
         text-align: center;
         font-size: 48px;
         font-family: Tahoma, Geneva, sans-serif;
         color: #000;
    .twoColFixLtHdr #sidebar1 {
         float: left; /* since this element is floated, a width must be given */
         width: 200px;
         border-right: 1px solid #000000;
         background-color: #557050;
         padding-top: 0px;
         padding-right: 10px;
         padding-bottom: 15px;
         padding-left: 10px;
    .twoColFixLtHdr #mainContent {
         margin-top: 0;
         margin-right: 0;
         margin-bottom: 0;
         margin-left: 250px;
         padding-top: 0;
         padding-right: 20px;
         padding-bottom: 0;
         padding-left: 20px;
         text-align: left;
    .twoColFixLtHdr #mainContent h1 {
         font-size: 48px;
         font-family: "Arial Rounded MT Bold";
         font-weight: bold;
    .twoColFixLtHdr #mainContent h2 {
         font-family: "Arial Rounded MT Bold";
         font-size: 32px;
    .twoColFixLtHdr #mainContent h3 {
         font-family: Georgia, "Times New Roman", Times, serif;
         font-style: italic;
         color: #CF0;
         font-size: 125%;
    .twoColFixLtHdr #mainContent h5 {
         font-size: 120%;
    .twoColFixLtHdr #footer {
         padding: 20px 10px 20px 20px;
         border-top: 1px solid #000000;
         background-color: #A3A3A3;
         font-family: Arial, Helvetica, sans-serif;
    .twoColFixLtHdr #footer p {
         margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
         padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
         float: right;
         margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
         float: left;
         margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
         clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    #paragraphFloat {
         width: 350px;
    #paragraphFloat2 {
         width: 350px;
    Please if anyone knows what I'm doing wrong please please let me know!  Since I am learning, I really want to get main concepts like this down so I am not constantly doing things the hard way!  Thank you! 
    Jayson

    1) Regarding validation, what does it do?
    It validates by telling you where your code isn't er... valid.  Sometimes the results are a bit jumbled but if you work through them one at a time and revalidate, it's a good way to learn.  If you fix all of the errors shown up through the validator you should end up with standards compliant code.  Not necessarily the best, most efficient code you can write but at least it will be valid and it helps you spot errors that hours of code-staring never seems to find.
    I don't use the DW validation tool because I find the W3c one easier.
    The W3c validator has a check box of HTML Tidy which can tidy up your code but it's not always as easy to see what changes.
    2) I know the <p> tag for spacing is wrong, I could just feel it in my bones.  I just didn't know what else to do.  If I <br> all the way down won't the code be just as cluttered?
    You're obviously a born web coder!
    <br> will bloat your page if you use them to position elements.
    Here you need to get used to a) the Block Model and b) CSS positioning.  Once you crack these, CSS opens up for you and becomes a little more intuitive.
    if you have two elements on top of each other rather than push them apart with other elements you do it with padding and/or margin.  There are things to watch out for here namely, collapsing margins but if you start to read up on the above, you'll get it.
    I just thought of something.  If I add a div in main content, align it to the bottom center with CSS, use a line break between it and the text above, and add the image in question in the new div, will the spacing between the text and image work itself out?  I just really want to get out of the <p> bad habit.
    Keep thinking!  Web design is not like desktop publishing or print.  Elements on a HTML page don't behave like paragraphs on a page.  Once you begin to figure out why not it all gets a little easier.
    If you want an image at the bottom an element you put that at the end of the content in that element.  Then you need to ensure there is no margin, padding or border between the img element and the next element (your footer).  HTML elements come with some styling that is applied by default in the browser.  Many web developers include a rule like this:
    body {
    margin: 0;
    padding:0;
    This sets the margin and padding to zero of course and it's purpose is to override the defaults.  Some people advocate applying similar rules to all elements and if your interested try googling Eric Meyer who has written about it online.
    One of the key purposes of CSS is to take styling out of the page.  It's leaner, more efficient for the viewer and the coder and helps with site management.
    3) AP divs are weird, and I did only use as a last resort.
    See? You're a natural!
    The reason is I am confused by the float and clear float classes.  My left column is floated left and that element is what I was having problems understanding.  I tried to make new divs and float right but I screwed it all up.  I am sure I am just not applying the clear float in the right places.
    Getting the hang of floating is key to CSS positioning.  You use a float if you want two elements to sit side by side on the page.  It disrupts the "document flow."  Ordinarily HTML elements are rendered one after the other, on top of each other.  Floating an element takes it out of the document flow and allows other elements to occupy its space.  When you float an element it should always have a width.  If the element below it also has a width, that width has to be sufficiently narrow to allow it to occupy the space.  In short, floated elements can't be wider than their containing element.
    The clear property is used after a float to stop an element occupying the space left by a floated element.  It works but confuses the heck out of me!
    So that leads me to my final point.  I am a novice too!  I might have fluffed a few of the technical points above but it's pretty much there.
    Regards
    Martin

  • I need help centering my images.

    Hi,
    I am very new to DreamWeaver and have been teaching myself
    for the past week. I am building my own small website for my
    portoflio and can not figure out how to auto center my website.
    When I center one image the other images are in the wrong spots. I
    want everything to center itself based on how big the browser is
    open. Please someone help me!!!!! It's very hard to explain what I
    am trying to do.. I have 3 layers in my page and they are
    overlapping. I dont want each of them auto centered by
    themselves,,, I want them all centered as a whole. Do I have to
    select them all then center them somehow? I have tried everything
    and now I am forced to ask for help!!
    here is a screenshot
    http://img.photobucket.com/albums/v179/smagicpie/Picture1.png

    It would work exactly the way you want if you did what I
    suggested. As far
    as I can tell, there is no change to the code at the link you
    give below.
    Using layers to build your pages is what has gotten you into
    this mess.
    It's not a best practice by any means....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "smagicpie" <[email protected]> wrote in
    message
    news:fo5dl0$j94$[email protected]..
    > This isn't working. It is centering the links like you
    would center text.
    > I
    > just need all these layers to center as a whole in the
    page. I dont want
    > anything else to change. Is there anyway to select all
    layers and center
    > them?
    > Here is a screenshot showing the layers. The links are
    in a table within a
    > layer.
    http://img.photobucket.com/albums/v179/smagicpie/Picture1.png
    > www.alisonleahwalker.com
    >

  • Need Help Centering Thumbnails!

    Question #1
    Hi, on my web page the thumbnals are not centered in the page but go to the left. In Dreamweaver I've turned on outlines so you can see that the thumbnails are not centered. I am trying to vertically and horizontally center my thumbnails in the div. (see image) I need to know which CSS Rule controls the centering of the thumbnails?
    http://www3.telus.net/~jessum/PAGES/visual_light_box.html
    Question #2
    A second question. I am using Visual Lightbox for my thumbnail  gallery but in the interface there is no setting to add space between  the thumbnails or to center the thumbnails on the page. So every time I  upload my gallery the thumbnails are really close together and they go  to the left and are not centered.
    It's frustrting to  have to constantly edit the CSS and add space between the thumbnails  every time I upload the gallery. Is there a solution to fix this so I  can upload my gallery and the spacing and position of the thumbnails  will be the same?
    I just wish there was a simple gallery solution but I haven't seen one yet. Hmmm.

    Also I wish there was a way to preview the page in a browser without having to save the page every time. If I make some changes and they are not correct then I have to save the page and I've messed it all up. In Golive you could preview the page without saving it and it made it a lot easier to just undo or close the page an reopen it. Do you know why you can't make some changes then preview the page in a browser without saving it?
    Edit > Preferences > Preview in Browser
    http://forums.adobe.com/thread/795084
    There are 2 ways you can do a preview in browser (according to your preferences settings):
    1.  Preview using temp files
    2.  Preview not using temp files
    If you are using method 2, then each time you preview, the last saved version of the file will be loaded by the browser for the preview.  Thus, to see your latest changes, you just have to SAVE the file.
    If you are using method 1, then each time you preview, a temporary file is built by DW from the current page, and that temporary file is what is previewed in the browser.  Each time you preview a page, a NEW temporary file is created.
    With method 1, you have to save the page before you can preview.  With method 2, you do not have the save the page before you can preview.

  • Need Help Centering Page in Browser Window

    I'm designing my pages by creating a graphic framework in
    Photoshop, slicing and exporting images into css using Fireworks to
    a Dreamweaver html page. These pages look great; but they load into
    the upper left corner of the browser window
    I was taking a Dreamweaver class at the Denver Art Institute,
    that was worthless. I dropped the class after the 4th week and am
    now teaching myself. I asked the teacher how to center this kind of
    page in a browser window, so the page would behave like most
    webpages, centering as you change the width of the browser window.
    I also wanted to add a repeating pattern in a background image. She
    told me that she didn't know how, that I would have to build the
    background into my Photoshop file. So, that's what I've been doing.
    However, when people with smaller monitors change pages within a
    site the built-in background requires them to recenter the page
    manually each time.
    Is there a way to center the page and add a background image
    that is not built in? I've tried using Dreamweaver's background
    image and margins in the Page Properties; but that just pushes the
    page to the upper left and adds the background to the right and
    bottom of the page.
    Please visit:
    http://www.livingwater.la,
    http://www.renegadegraphics.biz
    and
    http://www.dentalmatchmakers.net
    for examples.
    Thanks for your help.
    Mary

    >I was taking a Dreamweaver class at the Denver Art
    Institute, that was worthless
    Yes, those classes usually are worthless because they focus
    on using the tool without giving you the proper foundation for
    understanding and managing html and css. Unfortunately, all of the
    example sites you gave you AP Divs (layers) as a primary layout
    method, which is a terrible approach. AP Divs should be used rarely
    if ever, and only when you understand how they work. When the
    visitors font is sized differently than you expected, the site
    falls apart. The correct approach is to learn web
    design/development outside of the context of a specific
    application.
    http://www.w3schools.com/html/
    is a good place to start for a basic understanding of html and css.
    And some basic layout techniques can be found here:
    http://apptools.com/examples/pagelayout101.php

  • I need help writing a dive scoring program in C#, Help Please?

    The state diving commission wants to computerize the scoring at its diving competitions. I have to write a program to automate the scoring of dives. Requirements:
    After each dive, the user will be prompted to enter the:
    diver's name;                    
    diver's city;                    
    degree of difficulty (ranges from 1.00 to 1.67); and                     
    scores from five judges (scores can range from 0 to 10).
    If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered.
    The program will then display the following information:
    Diver's name                    
    Diver's city                    
    Dive final score: This is calculated by dropping the highest and lowest of the five judges' scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty.
    The program will then prompt the user if she/he wants to process another dive. The user can type "Y" or "y" to continue, and "N" or "n" to quit.

    Hi,
    The forum supports VS setup and installation. I think your issue is not about the forum.
    Please clarify your project type. Is it webform or winform?
    If it is webform, please post your issue to ASP.NET forum.
    If it is winform, please post it to
    winform forum.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Need help with hiding divs for different screen sizes with fluid layouts.

    Ok, so i've got a single page giving info that my website is coming soon and i've designed it for pc, tablet and mobile as i should.  I have hidden the divs i don't want from each view and when testing it, all works fine and as it should be but when it is on the server and live, it shows all the divs that are meant to be hidden on one screen?????   Is there something else i should be doing and can anyone help me here or is this a question for my host???
    Thanks for any help in advance

    Probably a coding issue.  Without a link, no way to help.
    Nancy O.

  • Need help with floating div's and clear property

    Link to page
    Link to CSS file
    I have the website currently setup as a 3 column website and everything is working fine.  I need to make some pages as a 2 column page with the left column having several "leftcolumn" div's stacked on top of each other so that there are several rounded box sections in the left column.
    I have the leftcolumn div floated left with a clear left to get the left column div's to stack on top of each other.
    The rightcolumn is floated right.
    How do I get my right column to align with the top of the first leftcolumn div?

    It's not always necessary to float every column.  One float is usually enough for a 2-column layout.
    Where you have this:
    #rightcolumn {
        width: 620px;
        float: right;
        color: #FFFFFF;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #FFFFFF;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        padding: 10px;
        border:3px solid #5f605f;
        -moz-border-radius:20px;
        -webkit-border-radius:20px;
        -opera-border-radius:20px;
        -khtml-border-radius:20px;
        border-radius:20px;
        background-color: #858586;
        font-size: 12px;
        margin: 10px;
    Change it as follows:
    #rightcolumn {
    /**REMOVE ALL THIS**/
        width: 620px; 
        float: right;
        color: #FFFFFF;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #FFFFFF;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        padding: 10px;
        border:3px solid #5f605f;
        -moz-border-radius:20px;
        -webkit-border-radius:20px;
        -opera-border-radius:20px;
        -khtml-border-radius:20px;
        border-radius:20px;
        background-color: #858586;
        font-size: 12px;
    /**REMOVE THIS**/
        margin: 10px;
    /**ADD THIS**/
        margin-left: 350px;  /**adjust as needed**/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    Message was edited by: Nancy O.
    Strikethroughs are not working in the forum.  I edited the code to make more sense.

  • Need Help Centering Page Content

    Hi, I have added a white box behind my main page content but the content is not centered within the box. It seems to be on the left. There are a number of different style sheets and I need to find out which style is affecting how the content is positioned.
    1. In this link below I’m not sure what is making the content go to the “left”. I need all of the thumbnails to be centered in the white area. That is what I need to find out first. What is the best way to find what is causing the thumbnails to go to the left? Is there an easy way to narrow down what is causing the thumbnails to go to the left?
    If I select “ul.work li” I notice it is set to (float: left). If I change it to (float: right) the thumbnails all move to the right. but if I set it to (float: none) the thumbnails all line up vertically. Not what I want.
    http://www.buzzfx.ca/2d_character.html
    In the homepage I also need to have all of the content centered.
    http://www.buzzfx.ca
    2. Also, how would I move the white box up to align with (touch the bottom) of the grey header?

    Thanks John, I managed to watch a good tutorial that set me straight.
    So back to the initial question. I am trying to center the content in the body but it seems to be aligned "left". Using Firebug, I think I have found the part that needs changing.
    1. At this link: http://www.buzzfx.ca/2d_character.html
    2. I hovered over the thumbnails until I found: <ul class="work fullwork clearfix">
    3. I then looked in the style and I believe it is this code below in "bold italics" that I need to edit to get the "content" to be centered but I am not sure how specifically to fix it/
    Q. Why does "margin-left: 40px;" have a strike through it?
    Q. Is "margin-left: 40px;" the reason the content is aligned "left"?
    Q. Could I not just "center" the contents instead of have it positioned from the "left"? Please explain!
    I would be very grateful if someone could look at my page in Firebug to tell what the best way is to center the body content.
    .clearfix:after {   clear: both;
       content: ".";
        display: block;
        height: 0;
        line-height: 0;
        visibility: hidden;
    ul.work {
    margin: 0 -15px;
    ul, ol {
    margin-left: 40px;
    h1, h2, h3, h4, form, table, ul, ol, p, dl, blockquote, hr {margin-bottom: 30px;
    text-align: left;
    ol, ul {
    list-style: none outside none;

  • Need help with footer div positioning

    hi guys,
    thank you for checking out my post...
    on my website i want a footer div to sit at the very bottom
    of the page. if the content requires the page to be scrolled i
    would like the footer to be pushed down still at the bottom.
    so basically, whether the page needs to be scrolled or not,
    the footer div will be at the absolute bottom of the page. hope
    that makes sense!
    ive been trying and trying with endless tutorials and trying
    different things that i know but to no avail.
    if you could have a look at my site
    here i would
    be most grateful for any advice or solutions.
    thank you once again and i hope to hear from you.
    all the best,
    sm

    Spindrift wrote:
    >
    quote:
    either make that bottom:0px; or bottom:0;
    >
    > oops! sorry, my bad! ive made the correction
    > now the footer kind of works but just stays in the same
    place as the content
    > scrolls behind it.
    > when no scrolling is needed on a page what we have is
    good though.
    > im after getting the content to push the footer down to
    the bottom of the page
    > so when you scroll down to the bottom (if the page needs
    to be scrolled) the
    > footer will be at the bottom (of the page not screen) if
    that makes sense.
    > many thanks,
    > sm
    >
    You could check out this demo - view the code - paying
    attention to the
    comments in the embedded css, particularly, the padding on
    the #body
    (note that this is a div and not the body tag) div and the
    height of the
    #footer div.......
    http://matthewjamestaylor.com/blog/bottom-footer-demo.htm
    Personally I'd just let it go with the flow :-)
    chin chin
    Sinclair

  • Need help with overlaying divs

    I want a top nav bar within the (top) banner. I am doing this by putting a div (#toplinks) within the banner div (#banner).
    But I want a bottom allignment on that nav bar.  When I give it a top margin to push it down, it pushes the banner down.
    #wrapper {
        height: 552px;
        width: 850px;
    #banner {
        height: 136px;
        width: 850px;
        position: relative;
    #toplinks{
         height: 30px;
         width: 850px;
    #wrapper #banner #toplinks ul li {
        list-style-image: none;
        list-style-type: none;
        display: inline;

    Your really not "Overlaying divs"
    What you may want to do is make the Banner a background image.
    In any case the way I would structure this ike so:
    <div id="header">
    <div class="top-links">
    <ul>
    <li><a href="/">Link One</a></li>
    <li><a href="/">Link Two</a></li>
    <li><a href="/">Link Three</a></li>
    </ul>
    </div><!-- / top links / -->
    </div><!-- / header / -->
    The banner being a graphic should have a container I'm calling the container header use CSS background image for the header div.
    Just my way others may chime in.
    Shane

  • Need help centering page

    This page is just a baby but I'd like to get this figured out
    before i get to deep into it. It's in php but only the swf menu at
    the top is the consistent thing. the menu at the top will center.
    the background and the sidebar will not. here is the code and a
    link so you can see what I'm talking about.
    www.mmdup.com/newindex.php
    <!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>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    text-align:center;
    background-image: url(images/mmdcombkg.jpg);
    background-color: #000000;
    background-repeat: no-repeat;
    margin-top: 0px;
    width:800;
    margin-left: auto;
    margin-right:auto;
    background-position: auto;
    text-align: center;
    -->
    </style></head>
    <body><?php include("menuhead.html"); ?>
    <img src="images/bannerline.png" width="1000" height="5"
    />
    <table width="191" height="533" border="0"
    cellspacing="0">
    <tr>
    <td bgcolor="#779993"> </td>
    </tr>
    </table>
    </body>
    </html>
    Thanks for any advice.

    Here try this code
    <!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>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-image: url(images/mmdcombkg.jpg);
    background-color: #000000;
    background-repeat: no-repeat;
    margin-top: 20px;
    #wrapper {
    width:1000px;
    margin:0 auto;
    background-color:#CCC;
    #main {
    width:1000px;
    height:500px;
    background-color:#CCC;
    -->
    </style>
    </head>
    <body>
    <div id="wrapper">
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="1000" height="248" title="menu">
    <param name="movie" value="bannermenu.swf" />
    <param name="quality" value="high" />
    <embed src="bannermenu.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="1000"
    height="248"></embed>
    </object>
    <div id="main">
    <p>Some text here</p>
    </div>
    </div>
    </body>
    </html>
    aka Frenchy ASP
    "vidfix55" <[email protected]> wrote in
    message
    news:[email protected]...
    > This page is just a baby but I'd like to get this
    figured out before i get
    > to
    > deep into it. It's in php but only the swf menu at the
    top is the
    > consistent
    > thing. the menu at the top will center. the background
    and the sidebar
    > will
    > not. here is the code and a link so you can see what I'm
    talking about.
    > www.mmdup.com/newindex.php
    >
    > <!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>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <title>Untitled Document</title>
    > <style type="text/css">
    > <!--
    > body {
    > text-align:center;
    > background-image: url(images/mmdcombkg.jpg);
    > background-color: #000000;
    > background-repeat: no-repeat;
    > margin-top: 0px;
    > width:800;
    > margin-left: auto;
    > margin-right:auto;
    > background-position: auto;
    > text-align: center;
    > }
    > -->
    > </style></head>
    >
    > <body><?php include("menuhead.html"); ?>
    > <img src="images/bannerline.png" width="1000"
    height="5" />
    > <table width="191" height="533" border="0"
    cellspacing="0">
    > <tr>
    > <td bgcolor="#779993"> </td>
    > </tr>
    > </table>
    >
    > </body>
    > </html>
    > Thanks for any advice.
    >
    >
    >

Maybe you are looking for

  • Video content missing on ipad... play buttons greyed out

    There was a similar thread but answer did not apply.  I have videos that are fromatted to play on ipad and play in itunes well.  When sync to ipad you can see the ipad increase in file size from the added video.  When you open the video app to view t

  • Problem in Adding in Document Object Table.

    I want to Add/Update the data in the Documentobject table and DocumentLineobject table through my own SRF. Please guide me how should i proceed.

  • Post xml document

    pretty new to java. How can I post an XML document to the server? I want to do some sort of HTTP Request from a managed bean. Can't find anything on this. Isn't there some sort of HTTP Request in the base Java libraries? General flow of what I'm atte

  • Server0 getting restarted when i access UME configuration

    Hai experts, i have changed UME configuration for ABAP , and for testing the sap system I.e ( through system configuration )when i click on UME configuration tab  my server0 is getting restarted , before restart it ends with exit code 666 and starts

  • Time isn't on my side!

    Hey... I have a peculiar problem here... When I try to set the time zone on my Pod, it seems there is an India-shaped hole in the iPod's time zone settings. As a result, I have to choose the closest city which is Karachi and is half an hour behind In