11 Replies Latest reply on Nov 4, 2008 4:12 AM by Newsgroup_User

    Header not aligned properly in Safari but all right in other browsers

    TravB5
      I'm using Dreamweaver CS3 and I've designed a template page but the header has about 3" of white space on the right side when I view in Safari. When I view in other browsers the header is correct and fills the entire space that it is supposed to. My header consists of a jpeg file and a table underneath the jpeg file. Any ideas on how to correct this so the header will be in alignment using Safari and the other browsers?
        • 2. Re: Header not aligned properly in Safari but all right in other browsers
          TravB5 Level 1
          I don't but later I can copy the code and paste it here for you to view. (Not at my Mac right now)
          Thanks in Advance.
          • 3. Re: Header not aligned properly in Safari but all right   in other   browsers
            Level 7
            TravB5 wrote:
            > I don't but later I can copy the code and paste it here for you to view. (Not at my Mac right now)
            > Thanks in Advance.
            >
            Copy code and paste here, someone will help you.

            Your country needs you.........vote McCain
            • 4. Re: Header not aligned properly in Safari but all right   in other browsers
              Level 7
              > Your country needs you.........vote XXXX

              Osgood - would you mind, please?

              --
              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
              ==================

              • 5. Re: Header not aligned properly in Safari but all right   in other   browsers
                Level 7
                Murray *ACE* wrote:
                >> Your country needs you.........vote XXXX
                >
                > Osgood - would you mind, please?
                >
                Waz wrong? I'm getting some support together for John he needs all the
                support he can get.
                • 6. Re: Header not aligned properly in Safari but all right   in other   browsers
                  TravB5 Level 1
                  Here is the code for the page. Thanks in advance.

                  <!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" />
                  <!-- TemplateBeginEditable name="doctitle" -->
                  <title>The Blum Law Firm - Divorce Law and Worker's Compensation Cases</title>
                  <!-- TemplateEndEditable -->
                  <style type="text/css">
                  <!--
                  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; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
                  color: #000000;
                  width: 100%;
                  }

                  /* Tips for Elastic layouts
                  1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
                  2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
                  3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
                  */
                  .twoColElsLtHdr #container {
                  width: 46em; /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
                  background: #FFFFFF;
                  margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
                  border: 0px solid #000000;
                  }
                  .twoColElsLtHdr #header {
                  background: #ffffff;
                  width: 46em;
                  }
                  .twoColElsLtHdr #header h1 {
                  margin-top: -11px;
                  width: 46em;
                  }

                  /* Tips for sidebar1:
                  1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
                  2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
                  3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule.
                  */
                  .twoColElsLtHdr #sidebar1 {
                  float: left;
                  width: 12em; /* the background color will be displayed for the length of the content in the column, but no further */
                  padding: 15px 5; /* top and bottom padding create visual space within this div */
                  background-color: #FFFFFF;
                  border-top-color: #FFFFFF;
                  border-right-color: #FFFFFF;
                  border-bottom-color: #FFFFFF;
                  border-left-color: #FFFFFF;
                  border-style: 0;
                  }
                  .twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
                  margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
                  margin-right: 10px;
                  }

                  /* Tips for mainContent:
                  1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
                  2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div. No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
                  3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
                  4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
                  */
                  .twoColElsLtHdr #mainContent {
                  margin: 0 1.5em 0 13em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
                  }
                  .twoColElsLtHdr #footer {
                  padding: 0 10px;
                  background-color: #000000;
                  }
                  .twoColElsLtHdr #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 */
                  }

                  /* Miscellaneous classes for reuse */
                  .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. */
                  margin-left: 0px;
                  }
                  .fltlft { /* this class can be used to float an element left in your page */
                  margin-right: 0px;
                  }
                  .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;
                  }
                  .style9 {color: #FFFFFF}
                  .style11 {font-size: x-small; font-weight: bold; color: #FFFFFF; }
                  .style12 {color: #FFFFFF; font-size: x-small; }
                  .style14 {color: #FFFFFF; font-size: small; }
                  .style15 {font-size: small}
                  .style19 {
                  font-size: x-large;
                  color: #FF0000;
                  }
                  .style20 {font-size: large}
                  .style21 {
                  color: #FFFFFF;
                  font-size: small;
                  font-style: italic;
                  }
                  -->
                  </style>
                  <!--[if IE]>
                  <style type="text/css">
                  /* place css fixes for all versions of IE in this conditional comment */
                  .twoColElsLtHdr #sidebar1 { padding-top: 30px; }
                  .twoColElsLtHdr #mainContent { zoom: 1; padding-top: 15px; }
                  /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
                  </style>
                  <![endif]-->
                  <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
                  </head>

                  <body class="twoColElsLtHdr">

                  <div id="container">
                  <div id="header">
                  <h1><img src="mikeblume.jpg" width="737" height="126" /></h1>
                  <!-- TemplateBeginEditable name="EditRegion4" -->
                  <table width="738" height="95">
                  <tr>
                  <th width="156" valign="top" scope="col"><img src="../../website/thumbc19290.jpg" width="136" height="91" /></th>
                  <th width="167" valign="top" scope="col"><img src="../../website/columns.jpg" width="143" height="91" /></th>
                  <th width="163" valign="top" scope="col"><img src="../../website/thumbv7813.jpg" width="138" height="91" /></th>
                  <th width="159" valign="top" scope="col"><img src="../../website/thumbv5741.jpg" width="135" height="91" /></th>
                  <th width="166" valign="top" scope="col"><img src="../../website/images.jpeg" width="137" height="91" /></th>
                  </tr>
                  </table>
                  <!-- TemplateEndEditable -->
                  <!-- end #header -->
                  </div>
                  <div id="sidebar1"><!-- TemplateBeginEditable name="EditRegion2" -->
                  <table width="192" height="246" border="0" cellpadding="3" cellspacing="5" bgcolor="#FFFFFF">
                  <tr>
                  • 7. Re: Header not aligned properly in Safari but all right   in other browsers
                    Level 7
                    Please don't do this on this forum.

                    --
                    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
                    ==================


                    "Osgood" <notavailable@thisaddress.com> wrote in message
                    news:genf91$qo6$2@forums.macromedia.com...
                    > Murray *ACE* wrote:
                    >>> Your country needs you.........vote XXXX
                    >>
                    >> Osgood - would you mind, please?
                    >>
                    > Waz wrong? I'm getting some support together for John he needs all the
                    > support he can get.

                    • 8. Re: Header not aligned properly in Safari but all right   in other browsers
                      TravB5 Level 1
                      I'm assuming you're talking to the person that but their campaign views on my question. Can someone help with my original question??????
                      • 9. Re: Header not aligned properly in Safari but all right   in other   browsers
                        Level 7
                        Murray *ACE* wrote:
                        > Please don't do this on this forum.
                        >
                        ok
                        • 10. Re: Header not aligned properly in Safari but all right     in other     browsers
                          Level 7
                          Thats not all of the code. Please upload to a server and give a link to
                          the page.


                          TravB5 wrote:
                          > Here is the code for the page. Thanks in advance.
                          >
                          > <!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" />
                          > <!-- TemplateBeginEditable name="doctitle" -->
                          > <title>The Blum Law Firm - Divorce Law and Worker's Compensation Cases</title>
                          > <!-- TemplateEndEditable -->
                          > <style type="text/css">
                          > <!--
                          > 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; /* this centers the container in IE 5* browsers. The text is then
                          > set to the left aligned default in the #container selector */
                          > color: #000000;
                          > width: 100%;
                          > }
                          >
                          > /* Tips for Elastic layouts
                          > 1. Since the elastic layouts overall sizing is based on the user's default
                          > fonts size, they are more unpredictable. Used correctly, they are also more
                          > accessible for those that need larger fonts size since the line length remains
                          > proportionate.
                          > 2. Sizing of divs in this layout are based on the 100% font size in the body
                          > element. If you decrease the text size overall by using a font-size: 80% on the
                          > body element or the #container, remember that the entire layout will downsize
                          > proportionately. You may want to increase the widths of the various divs to
                          > compensate for this.
                          > 3. If font sizing is changed in differing amounts on each div instead of on
                          > the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is
                          > given an 85% font size), this will proportionately change each of the divs
                          > overall size. You may want to adjust based on your final font sizing.
                          > */
                          > .twoColElsLtHdr #container {
                          > width: 46em; /* this width will create a container that will fit in an 800px
                          > browser window if text is left at browser default font sizes */
                          > background: #FFFFFF;
                          > margin: 0 auto; /* the auto margins (in conjunction with a width) center the
                          > page */
                          > border: 0px solid #000000;
                          > }
                          > .twoColElsLtHdr #header {
                          > background: #ffffff;
                          > width: 46em;
                          > }
                          > .twoColElsLtHdr #header h1 {
                          > margin-top: -11px;
                          > width: 46em;
                          > }
                          >
                          > /* Tips for sidebar1:
                          > 1. Be aware that if you set a font-size value on this div, the overall width
                          > of the div will be adjusted accordingly.
                          > 2. Since we are working in ems, it's best not to use padding on the sidebar
                          > itself. It will be added to the width for standards compliant browsers creating
                          > an unknown actual width.
                          > 3. Space between the side of the div and the elements within it can be created
                          > by placing a left and right margin on those elements as seen in the
                          > ".twoColElsLtHdr #sidebar1 p" rule.
                          > */
                          > .twoColElsLtHdr #sidebar1 {
                          > float: left;
                          > width: 12em; /* the background color will be displayed for the length of the
                          > content in the column, but no further */
                          > padding: 15px 5; /* top and bottom padding create visual space within this
                          > div */
                          > background-color: #FFFFFF;
                          > border-top-color: #FFFFFF;
                          > border-right-color: #FFFFFF;
                          > border-bottom-color: #FFFFFF;
                          > border-left-color: #FFFFFF;
                          > border-style: 0;
                          > }
                          > .twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
                          > margin-left: 10px; /* the left and right margin should be given to every
                          > element that will be placed in the side columns */
                          > margin-right: 10px;
                          > }
                          >
                          > /* Tips for mainContent:
                          > 1. If you give this #mainContent div a font-size value different than the
                          > #sidebar1 div, the margins of the #mainContent div will be based on its
                          > font-size and the width of the #sidebar1 div will be based on its font-size.
                          > You may wish to adjust the values of these divs.
                          > 2. The space between the mainContent and sidebar1 is created with the left
                          > margin on the mainContent div. No matter how much content the sidebar1 div
                          > contains, the column space will remain. You can remove this left margin if you
                          > want the #mainContent div's text to fill the #sidebar1 space when the content
                          > in #sidebar1 ends.
                          > 3. To avoid float drop, you may need to test to determine the approximate
                          > maximum image/element size since this layout is based on the user's font sizing
                          > combined with the values you set. However, if the user has their browser font
                          > size set lower than normal, less space will be available in the #mainContent
                          > div than you may see on testing.
                          > 4. In the Internet Explorer Conditional Comment below, the zoom property is
                          > used to give the mainContent "hasLayout." This avoids several IE-specific bugs
                          > that may occur.
                          > */
                          > .twoColElsLtHdr #mainContent {
                          > margin: 0 1.5em 0 13em; /* the right margin can be given in ems or pixels. It
                          > creates the space down the right side of the page. */
                          > }
                          > .twoColElsLtHdr #footer {
                          > padding: 0 10px;
                          > background-color: #000000;
                          > }
                          > .twoColElsLtHdr #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 */
                          > }
                          >
                          > /* Miscellaneous classes for reuse */
                          > .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. */
                          > margin-left: 0px;
                          > }
                          > .fltlft { /* this class can be used to float an element left in your page */
                          > margin-right: 0px;
                          > }
                          > .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;
                          > }
                          > .style9 {color: #FFFFFF}
                          > .style11 {font-size: x-small; font-weight: bold; color: #FFFFFF; }
                          > .style12 {color: #FFFFFF; font-size: x-small; }
                          > .style14 {color: #FFFFFF; font-size: small; }
                          > .style15 {font-size: small}
                          > .style19 {
                          > font-size: x-large;
                          > color: #FF0000;
                          > }
                          > .style20 {font-size: large}
                          > .style21 {
                          > color: #FFFFFF;
                          > font-size: small;
                          > font-style: italic;
                          > }
                          > -->
                          > </style>
                          > <!--[if IE]>
                          > <style type="text/css">
                          > /* place css fixes for all versions of IE in this conditional comment */
                          > .twoColElsLtHdr #sidebar1 { padding-top: 30px; }
                          > .twoColElsLtHdr #mainContent { zoom: 1; padding-top: 15px; }
                          > /* the above proprietary zoom property gives IE the hasLayout it needs to
                          > avoid several bugs */
                          > </style>
                          > <![endif]-->
                          > <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
                          > </head>
                          >
                          > <body class="twoColElsLtHdr">
                          >
                          > <div id="container">
                          > <div id="header">
                          > <h1><img src="mikeblume.jpg" width="737" height="126" /></h1>
                          > <!-- TemplateBeginEditable name="EditRegion4" -->
                          > <table width="738" height="95">
                          > <tr>
                          > <th width="156" valign="top" scope="col"><img
                          > src="../../website/thumbc19290.jpg" width="136" height="91" /></th>
                          > <th width="167" valign="top" scope="col"><img
                          > src="../../website/columns.jpg" width="143" height="91" /></th>
                          > <th width="163" valign="top" scope="col"><img
                          > src="../../website/thumbv7813.jpg" width="138" height="91" /></th>
                          > <th width="159" valign="top" scope="col"><img
                          > src="../../website/thumbv5741.jpg" width="135" height="91" /></th>
                          > <th width="166" valign="top" scope="col"><img
                          > src="../../website/images.jpeg" width="137" height="91" /></th>
                          > </tr>
                          > </table>
                          > <!-- TemplateEndEditable -->
                          > <!-- end #header -->
                          > </div>
                          > <div id="sidebar1"><!-- TemplateBeginEditable name="EditRegion2" -->
                          > <table width="192" height="246" border="0" cellpadding="3" cellspacing="5"
                          > bgcolor="#FFFFFF">
                          > <tr>
                          >
                          • 11. Re: Header not aligned properly in Safari but all right   in other browsers
                            Level 7
                            Your assumption is correct. He followed on with another request. Can you
                            comply, please?

                            --
                            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
                            ==================


                            "TravB5" <webforumsuser@macromedia.com> wrote in message
                            news:geo5o1$rq8$1@forums.macromedia.com...
                            > I'm assuming you're talking to the person that but their campaign views on
                            > my question. Can someone help with my original question??????