Huge bottom padding of codeboxes

Hi,
When you put something inside code tags, the resulting block has a big bottom padding.
See how big the box is and how much space is lost under that line?
IMO, that discourages the use of the code block for a few lines of code because the block itself is ridiculously bigger than what's in it. That's unlucky because you frequently have to indicate shell commands that take just one or two lines.
The solution to correct this is easy and actually tidies things up:
In the html source, codeblocks are
<div class="codebox">
<div class="incqbox">
<h4>Code:</h4>
<div class="scrollbox" style="height: 6em">
<pre>CODECODECODE</pre>
</div>
</div>
</div>
You just have to delete the style attribute of the scrollbox div.
Then in the css, you add to the scrollbox the property
max-height: 40 em
(or whatever size you want for the max size of a codeblock before it starts becoming scrollable)

toxygen wrote:
this worked for me in a stylish css file i have:
div.scrollbox {
max-height:10em !important;
height:auto!important;
now it shows no extra empty lines!  the max-height:10 is my preference for when it scrolls as described above.
Nice. I added that to my generic css file.

Similar Messages

  • IE 7 Not Adding Padding at Bottom of LIs as Nav Buttons

    At
    the test
    page, I want a 1 pixel border on the bottom and right of nav
    buttons (made from li elements). Works in some browsers, but not
    IE7. I added bottom padding to the <a> elements, but IE 7
    neither applies the padding nor the border.

    Make the <a> display:block and it should - you may also
    need to give that
    <a> tag layout (I use zoom:100% to do this).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "pcthiker" <[email protected]> wrote in
    message
    news:fcetjk$mro$[email protected]..
    > At
    http://persuasiongraphics.com/vertical_home.html,
    I want a 1 pixel
    > border on
    > the bottom and right of nav buttons (made from li
    elements). Works in some
    > browsers, but not IE7. I added bottom padding to the
    <a> elements, but IE
    > 7
    > neither applies the padding nor the border.
    >

  • 0 margins and 0 padding still not displaying correctly in Internet Explorer

    Hi I have designed a page for my site that works perfectly in safari and firefox but of course in internet explorer it doesn't.   The content under the slideshow is meant to line up with the edge of the slideshow.  This is the linkhttp://www.kimberleywebdesign.com.au/Links.html.
    The divs and the tags within them, have 0 margins and 0 padding with the exception of top and bottom padding, so even if internet explorer doubled my margins - double nothing is nothinng ??  I am trying to understand why the problem occurred? 

    My understanding is that IE misinterprets text-align:center in the #wrapper div.
    Change:
    #wrapper {
    width:48.75em;/*780px*/
    margin: 0 auto;
    text-align:left;}
    to
    #wrapper {
    width:48.75em;/*780px*/
    margin: 0 auto;
    text-align:center;}
    Then add text-align: left to each div where the text needs to be left aligned
    e.g.
    #portfolio {
    margin:0 auto;
    padding:2em 0 0 0;
    width:680px;
    text-align:left}
    and so on. Worked OK for me in IE8.
    See: http://www.andybudd.com/archives/2004/02/css_crib_sheet_3_centering_a_div/
    Add this tip, taken from the link above, for good measure:
    "This gets IE up to scratch. However this is the step I always forget. In Mozilla, if you reduce the size of the browser window, half of your centred div hangs off the left of the page. This is an odd one, but I've been reliably informed that it's the correct behaviour. To prevent this, just set a min-width on the body tag."

  • Setting AFrame height to the height of a graphic inside aframe plus padding

    Hello fellows,
    I am trying to set a permanent bottom padding between an anchored frame and a graphic object (embedded Visio) that is inside the anchored frame.
    However, instead of getting that padding below the graphic, the aframe becomes really small, and only 20% of the graphic is exposed.
    The code goes like this:
    SET vFrame = vCurrentDoc.FirstGraphicInDoc;
    Loop While(vFrame)
    IF vFrame.ObjectName = 'AFrame'
    SET vFrame.AnchorType = AnchorBelow;
    SET vFrame.GraphicIsSelected = 1;
    SET vGraphic = vFrame.FirstGraphicInFrame // Select the 1st graphic in the frame
    SET vFrame.Width = vFrame.TextLoc.InTextObj.Width;
    SET vFrame.Height= vGraphic.Height + 5mm; //Here is the padding of 5mm
    Set vGraphic.LocY = 0mm;
    Set vGraphic.LocX = (vFrame.Width - vGraphic.Width) / 2;
    ENDIF
    Please, advise!
    Thank you!

    This works for me:
    // Set a variable for the active document.
    Set oDoc = ActiveDoc;
    // Set a variable for the selected anchored frame.
    Set oAFrame = oDoc.FirstSelectedGraphicInDoc;
    // Update the anchored frame's position.
    Set oAFrame.AnchorType = AnchorBelow;
    // Set the width of the anchored frame to match the containing text column.
    Set oAFrame.Width = oAFrame.TextLoc.InTextObj.Width;
    // Get the first graphic in the anchored frame.
    Set oGraphic = oAFrame.FirstGraphicInFrame;
    // Make the anchored frame's height 5 mm taller than the graphic.
    Set oAFrame.Height = oGraphic.Height + 5mm;
    // Move the graphic to the top of the anchored frame.
    Set oGraphic.LocY = 0;
    // Center the graphic horizontally in the anchored frame.
    Set oGraphic.LocX = (oAFrame.Width - oGraphic.Width) / 2;
    After you get it tested, then put it in a function:
    Set oDoc = ActiveDoc;
    Set oAFrame = FirstSelectedGraphicInDoc;
    Set iResult = AdjustAFrameAndGraphic{oAFrame};
    Function AdjustAFrameAndGraphic oAFrame
    Local oGraphic(0);
    // Update the anchored frame's position.
    Set oAFrame.AnchorType = AnchorBelow;
    // Set the width of the anchored frame to match the containing text column.
    Set oAFrame.Width = oAFrame.TextLoc.InTextObj.Width;
    // Get the first graphic in the anchored frame.
    Set oGraphic = oAFrame.FirstGraphicInFrame;
    If oGraphic
      // Make the anchored frame's height 5 mm taller than the graphic.
      Set oAFrame.Height = oGraphic.Height + 5mm;
      // Move the graphic to the top of the anchored frame.
      Set oGraphic.LocY = 0;
      // Center the graphic horizontally in the anchored frame.
      Set oGraphic.LocX = (oAFrame.Width - oGraphic.Width) / 2;
    EndIf
    EndFunc // -------------------------------------------------------------------
    -Rick

  • Spark DataGrid row padding

    Hello guys,
    Could someone advise how to control top/bottom padding of rows in the Spark DataGrid control?
    I need to "squeeze" the rows a bit. I use the default item renderer.
    Thanks in Advance!
    Regards,
    Dinko

    Hi Dinko,
    There are two ways to accomplish this:
    1) Use a custom GridItemRenderer with a Label and adjust the padding that way. Note that this will be less performant when compared to the default renderer. For example:
    <s:DataGrid>
        <s:itemRenderer>
            <fx:Component>
                <s:GridItemRenderer clipAndEnableScrolling="true">
                    <s:Label text="{label}" left="5" right="5" top="2" bottom="2" />
                </s:GridItemRenderer>
            </fx:Component>
        </s:itemRenderer>
    </s:DataGrid>
    2) Make your own version of DefaultGridItemRenderer and adjust the LEFT_PADDING, RIGHT_PADDING, TOP_PADDING, and BOTTOM_PADDING constants to what you would like them to be. This is slightly more complicated because you will need copy, paste, and clean up a lot of code. However, I did some of the work for you in the attachment (CustomDefaultGridItemRenderer.as). You just need to change the package, specify it as the item renderer on your DataGrid and change the padding values. Also, there's a bug for this here: https://bugs.adobe.com/jira/browse/SDK-28411.
    I would go with number 1 for ease of use. The performance degradation shouldn't be too much for most use cases. Hope this helps.
    -Kevin

  • Custom pad's thermal relief is in the wrong place

    The thermal relief appears to be offset from the pad. Is there a way to align them? Attached is a sample file that shows the issue. Ultiboard is version 10.0.
    Any help would be appreciated.
    Attachments:
    thermalTest.ewprj ‏12 KB

    The pad I need has to have a round pad on the top (component) layer and a rectangle with rounded ends on the bottom (solder side) layer. The bottom pad has to have an off-center hole. Using the same shape on top and bottom won't work in the application.
    I actually tried to make this footpring again and the thermal relief does line up now. However, when the component is rotated to various angles, the thermal relief gets distorted and is not acceptable. So it seems like the first problem is fixed but now there's a new one. 
    To me it appears to be a bug in the program. Thanks for the response.

  • How do I remove the white Padding line atop page?

    Hi folks,
    I made this quick and dirty temporary page for a friend using the blank all black template. For the life of me I don't know how to remove the white line that appears at the top and shows when viewing the page in any browser.
    The line is controlled by Top & Bottom Padding (Inspector-->Pages-->Layout Tab) which I have set to 0 px.
    You can see the page here: http://www.hughesinspections.com
    Many thanks
    Frank

    I'm red with embarrassment at such an obvious and simple solution.; it should have been the first thing to try!
    Thanks ever so much Roddy
    Frank

  • How to delete padding/margin in Dashboard Pages

    Hi,
    I would like to delete the space between sections inside a dashboard page, so i tried to set the padding to 0 in the "Format Section..." properties of each section, but it doesn't work. At the same time, if one section contains 2 identical tables (arranged vertically) i cannot reduce to 0 the space between the tables to give the feeling that they are one single table; i tried to set the top/bottom padding to 0 in the "Table View Properties" but it didn't help me.
    Could you suggest anything to archivie this gol? should i edit any .css file used by the Presentation Services?
    Thanks in advance.
    Regards,
    Nazza

    Play around with:
    CVFormatTable
    (if you are using FireFox, use FireBug to identify the CSS class)
    Regards
    John
    http://obiee101.blogspot.com/

  • Replacement Padded Dividers

    I am in a situation where I need to purchase more padded dividers. I don't need the replacement sets, just a select size and amount. It doesn't need to be a certain brand. Amazon & B&H have been of no help. Where do you guys purchase your replacement padded dividers? Would my best option be buying an entire replacement set? I'd rather avoid the 50-70 dollar prices for the sets and spend a 20 or 30 on the exact dividers I need - and spares.
    I'm asking because I am padding a "custom" storage & carry case. Nothing fancy or professional but suitable for home storage and transportation with a remarkable cool factor. I'll be sure to post pictures once I complete it. The padded divider sets I've found don't match the dimensions I need, and if they do it's only one of two dimensions (Length and Width, height has been realitivly easy to meet or stay under) and I'd need to pay about 110 dollars for both sets together.
    Any websites with individual dividers would be much appreciated!
    Thanks!

    The longest I can fit is 17". I like your idea of making my own, as I do know someone who sews. Maybe some cardboard or a wire for stiffness or bend-ability. I'll look into those options. I'll be going to a foam store soon to pick up the top and bottom pads, perhaps I can find thin strips for the dividers or cut my own from the foam I buy.
    Thanks!

  • Footer at bottom of screen or at bottom of page

    Hi guys
    I'm creating a new website which I would like to give a footer that stays on the bottom of the screen if the content only needs the screen height, but that follows the content if the content makes it a scrollable page?
    So if there are for example only 3 lines of text between my header and my footer on the webpage, I would like to have the footer at the bottom of the screen instead of just below the text. If there is a lot of content which makes the page scrollable, I would like to have the footer at the bottom of the page, below the content.
    Do you understand what I mean?
    Thanks!
    Bob

    I'll show you how but I don't recommend doing this becuase it relies on hacks that don't work well in all devices.  Nobody really cares if your footer is aligned at the bottom of the screen on short pages. 
    <!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=iso-8859-1" />
    <title>Alt-Web Template :: 100% Height Layout</title>
    <style type="text/css">
    * 100% height layout with header, sidebar and footer
    html,body {
    margin:0;
    padding:0;
    height:100%; /* needed for container min-height */
    background:gray;
    font-family:arial,helvetica,sans-serif;
    font-size:small;
    color:#666;
    #container {
    z-index:1;
    position:relative; /* needed for footer positioning*/
    margin:50px auto; /* center, not in IE5 */
    width:750px;
    height:auto !important; /* real browsers */
    height:100%; /* IE6: treated as min-height*/
    min-height:100%; /* real browsers */
    overflow:hidden;/*float containment*/
    background:#FFF; /*for equal height columns, use a 2-toned background image here*/
    #header {
    padding:1em;
    background-color:#FFFFCC;
    border-bottom:6px double gray;
    #sidebar {
    float:left;
    width:8.79em;
    background-color:#FFCC00;
    padding: 1em;
    margin-top: 5.5%;
    #content {
    padding:1em 1em 5em; /* bottom padding for footer */
    margin-left: 11em;
    border-left: 6px double gray;
    background-color: #EAEAEA;
    #footer {
    position:fixed;
    width:725px;
    bottom:0; /* stick to bottom */
    background:#ddd;
    border-top:6px double gray;
    min-height: 40px;
    padding:1em;
    </style>
    </head>
    <body>
    <div id="container">
    <div id="header">
    <p>#header</p>
    <h1>100% Page Height </h1>
    </div>
    <div id="sidebar">
    <p>#sidebar</p>
    <p>Footer remains fixed at viewport bottom, even on short pages.</p>
    </div>
    <div id="content">
    <p>#content</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris et pretium arcu. Donec eget nisi ut dolor convallis vestibulum non sagittis libero. Donec tempor pretium nibh nec dapibus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In libero dolor, facilisis eu tristique suscipit, consectetur vel tortor. Phasellus tristique; metus ac rutrum sodales, purus diam tincidunt dui, vitae fringilla nunc magna in nisi. Fusce felis erat, elementum eu sollicitudin quis, rutrum a ante. Integer ullamcorper rutrum dolor vitae vehicula. </p>
    <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam quis justo quam. Nullam aliquam luctus suscipit. </p>
    <p>Ut id nibh nec nisi ullamcorper vehicula. Phasellus lacus lectus, euismod sed tincidunt ac, laoreet venenatis libero! In hac habitasse platea dictumst.</p>
    <p>Donec eget nisi ut dolor convallis vestibulum non sagittis libero. Donec tempor pretium nibh nec dapibus.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris et   pretium arcu. Donec eget nisi ut dolor convallis vestibulum non sagittis   libero. Donec tempor pretium nibh nec dapibus. Vestibulum ante ipsum   primis in faucibus orci luctus et ultrices posuere cubilia Curae; In   libero dolor, facilisis eu tristique suscipit, consectetur vel tortor.   Phasellus tristique; metus ac rutrum sodales, purus diam tincidunt dui,   vitae fringilla nunc magna in nisi. Fusce felis erat, elementum eu   sollicitudin quis, rutrum a ante. Integer ullamcorper rutrum dolor vitae   vehicula. </p>
    </div>
    <div id="footer">
    #footer
    </div>
    <!--end container --></div>
    </body>
    </html>
    Nancy O.

  • Lightbox images not showing when uploaded to my website

    Hello
    I'm creating a new website for my photography business, and have created three 'gallery' pages which are basically just a lightbox gallery on each page with 20 images in.
    I uploaded my first page, gallery1, and the associated images and went to test it and some of the thumbnail images didn't appear. I renamed the images in my 'gallery1 thumbnails' folder (which had originally been the same names as the images in gallery1) by adding 'tb' at the end of each image name and reuploaded them to my host and it resolved the problem. I uploaded gallery2 in the same way and ran into the same problem. I renamed the images again and reuploaded as I had before to fix the problem, but it didn't fix it this time. I changed the names in gallery3 thumbnails first and uploaded them and they uploaded perfectly. I went back to gallery2, and noticed that all the images I was having a problem with had a '_' character in them. I took that out, reuploaded, still not working. I've double checked everything's as it should be, reuploaded everything a couple more times for good measure, and it works on live view and when I open the file on my computer but once they're uploaded to my host it doesn't work. Can anyone shed a bit of light on this for me? Page in question in here: http://www.emmarichards.co.uk/gallery-2.html and code is here:
    <!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>Barnsley wedding photographer - Emma Richards Photography</title>
    <style type="text/css">
    <!--
    body {
              font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
              background-color: #FFFFFF;
              margin: 0;
              padding: 0;
              color: #000;
              background-image: url();
              background-repeat: repeat;
              margin-top: 20px;
              margin-bottom: 10px;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
              padding: 0;
              margin: 0;
    h1, h2, h3, h4, h5, h6, p {
              margin-top: 0;           /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
              padding-right: 15px;
              padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
              border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
              color:#414958;
              text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
              color: #4E5869;
              text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
              text-decoration: none;
    /* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
    .container {
              width: 80%;
              max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
              min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
              background-color: #FFF;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
    /* ~~the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo~~ */
    .header {
              background-color: #FFFFFF;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
              padding: 10px 0;
              font-size: 90%;
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
              padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    /* ~~ The footer ~~ */
    .footer {
              padding: 10px 0;
              background-color: #FFFFFF;
              font-size: xx-small;
              color: #f08080;
    /* ~~ miscellaneous float/clear classes ~~ */
    .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. The floated element must precede the element it should be next to on the page. */
              float: left;
              margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
              clear:both;
              height:0;
              font-size: 1px;
              line-height: 0px;
    -->
    </style>
    <link href="css/lightbox.css" rel="stylesheet" type="text/css" />
    <link href="css/sample_lightbox_layout.css" rel="stylesheet" type="text/css" />
    <script src="scripts/jquery.js" type="text/javascript"></script>
    <script src="scripts/lightbox.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryMenu.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarKeyNavigationPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarIEWorkaroundsPlugin.js" type="text/javascript"></script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2127022: #gallery */
                        .lbGallery {
              /*gallery container settings*/
              background-color: #ffffff;
              padding-left: 20px;
              padding-top: 20px;
              padding-right: 20px;
              padding-bottom: 20px;
              width: 100%;
              height: auto;
              text-align: center;
                        .lbGallery ul { list-style: none; margin:0;padding:0; }
                        .lbGallery ul li { display: inline;margin:0;padding:0; }
                        .lbGallery ul li a{text-decoration:none;}
                        .lbGallery ul li a img {
                                  /*border color, width and margin for the images*/
                                  border-color: #ffffff;
                                  border-left-width: 0px;
                                  border-top-width: 0px;
                                  border-right-width: 0px;
                                  border-bottom-width: 0px;
                                  margin-left:5px;
                                  margin-right:5px;
                                  margin-top:5px;
                                  margin-bottom:5px:
                        .lbGallery ul li a:hover img {
                                  /*background color on hover*/
                                  border-color: #ffffff;
                                  border-left-width: 0px;
                                  border-top-width: 0px;
                                  border-right-width: 0px;
                                  border-bottom-width: 0px;
                        #lightbox-container-image-box {
                                  border-top: 0px none #ffffff;
                                  border-right: 0px none #ffffff;
                                  border-bottom: 0px none #ffffff;
                                  border-left: 0px none #ffffff;
                        #lightbox-container-image-data-box {
                                  border-top: 0px;
                                  border-right: 0px none #ffffff;
                                  border-bottom: 0px none #ffffff;
                                  border-left: 0px none #ffffff;
    /* EndOAWidget_Instance_2127022 */
    </style>
    <link href="Spry-UI-1.7/css/Menu/basic/SpryMenuBasic.css" rel="stylesheet" type="text/css" />
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2127022" binding="#gallery" />
      <oa:widget wid="2141544" binding="#MenuBar" />
    </oa:widgets>
    -->
    </script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2141544: #MenuBar */
    /* Settable values for skinning a Basic menu via presets. If presets are not sufficient, most skinning should be done in
              these rules, with the exception of the images used for down or right pointing arrows, which are in the file SpryMenuBasic.css
               These assume the following widget classes for menu layout (set in a preset)
              .MenuBar - Applies to all menubars - default is horizontal bar, all submenus are vertical - 2nd level subs and beyond are pull-right.
              .MenuBarVertical - vertical main bar; all submenus are pull-right.
              You can also pass in extra classnames to set your desired top level menu bar layout. Normally, these are set by using a preset.
              They only apply to horizontal menu bars:
                        MenuBarLeftShrink - The menu bar will be horizontally 'shrinkwrapped' to be just large enough to hold its items, and left aligned
                        MenuBarRightShrink - Just like MenuBarLeftShrink, but right aligned
                        MenuBarFixedLeft - Fixed at a specified width set in the rule '.MenuBarFixedLeft', and left aligned. 
                        MenuBarFixedCentered -  - Fixed at a specified width set in the rule '.MenuBarFixedCentered',
                                                                and centered in its parent container.
                        MenuBarFullwidth - Grows to fill its parent container width.
              In general, all rules specified in this file are prefixed by #MenuBar so they only apply to instances of the widget inserted along
              with the rules. This permits use of multiple MenuBarBasic widgets on the same page with different layouts. Because of IE6 limitations,
              there are a few rules where this was not possible. Those rules are so noted in comments.
    #MenuBar  {
              background-color:#ffffff;
              font-family: Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
                                                                                                                            MenuItem, and MenuItemLabel
                                                                                                                            at a given level all use same definition for ems.
                                                                                                                            Note that this means the size is also inherited to child submenus,
                                                                                                                            so use caution in using relative sizes other than
                                                                                                                            100% on submenu fonts. */
              font-weight: normal;
              font-size: 16px;
              font-style: normal;
              padding:0;
              border-color: #ffffff #ffffff #ffffff #ffffff;
              border-width:0px;
              border-style: none none none none;
    /* Caution: because ID+class selectors do not work properly in IE6, but we want to restrict these rules to just this
    widget instance, we have used string-concatenated classnames for our selectors for the layout type of the menubar
    in this section. These have very low specificity, so be careful not to accidentally override them. */
    .MenuBar br { /* using just a class so it has same specificity as the ".MenuBarFixedCentered br" rule bleow */
              display:none;
    .MenuBarLeftShrink {
              float: left; /* shrink to content, as well as float the MenuBar */
              width: auto;
    .MenuBarRightShrink {
              float: right; /* shrink to content, as well as float the MenuBar */
              width: auto;
    .MenuBarFixedLeft {
              float: left;
              width: 80em;
    .MenuBarFixedCentered {
              float: none;
              width: 80em;
              margin-left:auto;
              margin-right:auto;
    .MenuBarFixedCentered br {
              clear:both;
              display:block;
    .MenuBarFixedCentered .SubMenu br {
              display:none;
    .MenuBarFullwidth {
              float: left;
              width: 100%;
    /* Top level menubar items - these actually apply to all items, and get overridden for 1st or successive level submenus */
    #MenuBar  .MenuItemContainer {
              padding: 0px 0px 0px 0px;
              margin: 0;           /* Zero out margin  on the item containers. The MenuItem is the active hover area.
                                            For most items, we have to do top or bottom padding or borders only on the MenuItem
                                            or a child so we keep the entire submenu tiled with items.
                                            Setting this to 0 avoids "dead spots" for hovering. */
    #MenuBar  .MenuItem {
              padding: 0px 0px 0px 0px;
              background-color:#ffffff;
              border-width:1px;
              border-color: #cccccc #ffffff #cccccc #ffffff;
              border-style: none solid none solid;
    #MenuBar  .MenuItemFirst {
              border-style: none none none none;
    #MenuBar .MenuItemLast {
              border-style: none solid none none;
    #MenuBar  .MenuItem  .MenuItemLabel{
              text-align:center;
              line-height:1.4em;
              color:#333333;
              background-color:#ffffff;
              padding: 0px 0px 0px 0px;
              width: 10em;
              width:auto;
    .SpryIsIE6 #MenuBar  .MenuItem  .MenuItemLabel{
              width:1em; /* Equivalent to min-width in modern browsers */
    /* First level submenu items */
    #MenuBar .SubMenu  .MenuItem {
              font-family: Arial, Helvetica, sans-serif;
              font-weight: normal;
              font-size: 14px;
              font-style: normal;
              background-color:#ffffff;
              padding:0px 2px 0px 0px;
              border-width:1px;
              border-color: #cccccc #cccccc #cccccc #cccccc;
              /* Border styles are overriden by first and last items */
              border-style: solid solid none solid;
    #MenuBar  .SubMenu .MenuItemFirst {
              border-style: solid solid none solid;
    #MenuBar  .SubMenu .MenuItemFirst .MenuItemLabel{
              padding-top: 6px;
    #MenuBar .SubMenu .MenuItemLast {
              border-style: solid solid solid solid;
    #MenuBar .SubMenu .MenuItemLast .MenuItemLabel{
              padding-bottom: 6px;
    #MenuBar .SubMenu .MenuItem .MenuItemLabel{
              text-align:left;
              line-height:1em;
              background-color:#ffffff;
              color:#333333;
              padding: 6px 12px 6px 5px;
              width: 7em;
    /* Hover states for containers, items and labels */
    #MenuBar .MenuItemHover {
              background-color: #ffffff;
              border-color: #cccccc #cccccc #cccccc #cccccc;
    #MenuBar .MenuItemWithSubMenu.MenuItemHover .MenuItemLabel{
              background-color: #ffffff; /* consider exposing this prop separately*/
              color: #000000;
    #MenuBar .MenuItemHover .MenuItemLabel{
              background-color: #ffffff;
              color: #000000;
    #MenuBar .SubMenu .MenuItemHover {
              background-color: #ffffff;
              border-color: #cccccc #cccccc #cccccc #cccccc;
    #MenuBar .SubMenu .MenuItemHover .MenuItemLabel{
              background-color: #ffffff;
              color: #333333;
    /* Submenu properties -- First level of submenus */
    #MenuBar .SubMenuVisible {
              background-color: #ffffff;
              min-width:0%;  /* This keeps the menu from being skinnier than the parent MenuItemContainer - nice to have but not available on ie6 */
              border-color: #ffffff #ffffff #ffffff #ffffff;
              border-width:0px;
              border-style: none none none none;
    #MenuBar.MenuBar .SubMenuVisible {/* For Horizontal menubar only */
              top: 100%;          /* 100% is at the bottom of parent menuItemContainer */
              left:0px; /* 'left' may need tuning depending upon borders or padding applied to menubar MenuItemContainer or MenuItem,
                                                      and your personal taste.
                                                      0px will left align the dropdown with the content area of the MenuItemContainer. Assuming you keep the margins 0
                                                      on MenuItemContainer and MenuItem on the parent
                                                      menubar, making this equal the sum of the MenuItemContainer & MenuItem padding-left will align
                                                      the dropdown with the left of the menu item label.*/
              z-index:10;
    #MenuBar.MenuBarVertical .SubMenuVisible {
              top: 0px;
              left:100%;
              min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse */
    /* Submenu properties -- Second level submenu and beyond - these are visible descendents of .MenuLevel1 */
    #MenuBar .MenuLevel1 .SubMenuVisible {
              background-color: #ffffff;
              min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse*/
              top: 0px;          /* If desired, you can move this down a smidge to separate top item''s submenu from menubar -
                                            that is really only needed for submenu on first item of MenuLevel1, or you can make it negative to make submenu more
                                            vertically 'centered' on its invoking item */
              left:100%; /* If you want to shift the submenu left to partially cover its invoking item, you can add a margin-left with a
                                            negative value to this rule. Alternatively, if you use fixed-width items, you can change this left value
                                            to use px or ems to get the offset you want. */
    /* IE6 rules - you can delete these if you do not want to support IE6 */
    /* A note about multiple classes in IE6.
    * Some of the rules above use multiple class names on an element for selection, such as "hover" (MenuItemHover) and "has a subMenu" (MenuItemWithSubMenu),
    * giving the selector '.MenuItemWithSubMenu.MenuItemHover'.
    * Unfortunately IE6 does not support using mutiple classnames in a selector for an element. For a selector such as '.foo.bar.baz', IE6 ignores
    * all but the final classname (here, '.baz'), and sets the specificity accordingly, counting just one of those classs as significant. To get around this
    * problem, we use the plugin in SpryMenuBarIEWorkaroundsPlugin.js to generate compound classnames for IE6, such as 'MenuItemWithSubMenuHover'.
    * Since there are a lot of these needed, the plugin does not generate the extra classes for modern browsers, and we use the CSS2 style mutltiple class
    * syntax for that. Since IE6 both applies rules where
    * it should not, and gets the specificity wrong too, we have to order rules carefully, so the rule misapplied in IE6 can be overridden.
    * So, we put the multiple class rule first. IE6 will mistakenly apply this rule.  We follow this with the single-class rule that it would
    * mistakenly override, making sure the  misinterpreted IE6 specificity is the same as the single-class selector, so the latter wins.
    * We then create a copy of the multiple class rule, adding a '.SpryIsIE6' class as context, and making sure the specificity for
    * the selector is high enough to beat the single-class rule in the "both classes match" case. We place the IE6 rule at the end of the
    * css style block to make it easy to delete if you want to drop IE6 support.
    * If you decide you do not need IE6 support, you can get rid of these, as well as the inclusion of the SpryMenuBarIEWorkaroundsPlugin.js script.
    * The 'SpryIsIE6' class is placed on the HTML element by  the script in SpryMenuBarIEWorkaroundsPlugin.js if the browser is Internet Explorer 6. This avoids the necessity of IE conditional comments for these rules.
    .SpryIsIE6 #MenuBar .MenuBarView .MenuItemWithSubMenuHover .MenuItemLabel /* IE6 selector  */{
              background-color: #ffffff; /* consider exposing this prop separately*/
              color: #000000;
    .SpryIsIE6 #MenuBar .MenuBarView .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel/* IE6 selector  */{
              background-color: #ffffff; /* consider exposing this prop separately*/
              color: #333333;
    .SpryIsIE6 #MenuBar .SubMenu .SubMenu  /* IE6 selector  */{
              margin-left: -0px; /* Compensates for at least part of an IE6 "double padding" version of the "double margin" bug */
    /* EndOAWidget_Instance_2141544 */
    </style>
    </head>
    <body>
    <div class="container">
      <div class="header">
        <div align="center">
          <p><a href="index.html"><img src="Layout/watermark-coral-jpeg-200px.jpg" width="200" height="182" alt="wedding photgraphers barnsley" /></a></p>
          <table width="500" border="0">
            <tr>
              <td><a href="about.html"><img src="Layout/about-c.png" width="145" height="28" alt="wedding photography barnsley" /></a></td>
              <td><a href="weddings.html"><img src="Layout/weddings-c.png" width="145" height="28" alt="wedding photographer barnsley" /></a></td>
              <td><a href="gallery.html"><img src="Layout/gallery-c.png" width="145" height="28" alt="wedding photographers barnsley" /></a></td>
              <td><a href="pricing.html"><img src="Layout/pricing-c.png" width="145" height="28" alt="wedding photography barnsley" /></a></td>
              <td><script type="text/javascript">
    // BeginOAWidget_Instance_2141544: #MenuBar
    var MenuBar = new Spry.Widget.MenuBar2("#MenuBar", {
          widgetID: "MenuBar",
                widgetClass: "MenuBar  MenuBarLeftShrink",
                insertMenuBarBreak: true,
          mainMenuShowDelay: 100,
          mainMenuHideDelay: 200,
          subMenuShowDelay: 200,
          subMenuHideDelay: 200
    // EndOAWidget_Instance_2141544
                </script>
                <img src="Layout/engagements-c.png" width="145" height="28" alt="barnsley wedding photographer" />
                <script type="text/javascript">
    // BeginOAWidget_Instance_2141544: #MenuBar
    var MenuBar = new Spry.Widget.MenuBar2("#MenuBar", {
          widgetID: "MenuBar",
                widgetClass: "MenuBar  MenuBarLeftShrink",
                insertMenuBarBreak: true,
          mainMenuShowDelay: 100,
          mainMenuHideDelay: 200,
          subMenuShowDelay: 200,
          subMenuHideDelay: 200
    // EndOAWidget_Instance_2141544
                  </script></td>
              <td><a href="http://www.emmarichardsphotography.com"><img src="Layout/blog.png" width="145" height="28" alt="wedding photographer barnsley" /></a></td>
              <td><a href="contact.html"><img src="Layout/contact-c.png" width="145" height="28" alt="wedding photography barnsley" /></a></td>
            </tr>
          </table>
          <p> </p>
        </div>
      <!-- end .header --></div>
      <div class="content">
        <div align="center">
          <table width="80%" border="0">
            <tr>
              <td><div id="gallery" class="lbGallery">
                <ul>
                  <p><li> <a href="Images/Gallery2/Abbie and Ben 0567.jpg" title=""><img src="Images/Gallery2/Thumbnails/Abbie and Ben 0567tb.jpg" alt="wedding photographers barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/Laura Mal 046.jpg" title=""><img src="Images/Gallery2/Thumbnails/Laura Mal 046tb.jpg" alt="wedding photographer barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/img0056bw.jpg" title=""><img src="Images/Gallery2/Thumbnails/img0056bwtb.jpg" alt="wedding photographers sheffield" /></a> </li>
                  <li> <a href="Images/Gallery2/ka319.jpg" title=""><img src="Images/Gallery2/Thumbnails/ka319tb.jpg" alt="wedding photography barnsley" /></a> </li>
                 <li> <a href="Images/Gallery2/no crying.jpg" title=""><img src="Images/Gallery2/Thumbnails/no cryingtb.jpg" alt="wedding photographers barnsley" /></a> </li></p>
                 <p><li> <a href="Images/Gallery2/img5549.jpg" title=""><img src="Images/Gallery2/Thumbnails/img5549tb.jpg" alt="wedding photographer barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/jr89.jpg" title=""><img src="Images/Gallery2/Thumbnails/jr89tb.jpg" alt="wedding photography barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/img3239.jpg" title=""><img src="Images/Gallery2/Thumbnails/img3239tb.jpg" alt="wedding photographers barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/jr2.jpg" title=""><img src="Images/Gallery2/Thumbnails/jr2tb.jpg" alt="wedding photographers barnsley" /></a> </li>
                 <li> <a href="Images/Gallery2/sa711.jpg" title=""><img src="Images/Gallery2/Thumbnails/sa711tb.jpg" alt="" /></a> </li></p>
                 <p><li> <a href="Images/Gallery2/JamesRuth0056.jpg" title=""><img src="Images/Gallery2/Thumbnails/JamesRuth0056tb.jpg" alt="wedding photographers barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/mr mrs.jpg" title=""><img src="Images/Gallery2/Thumbnails/mr mrstb.jpg" alt="wedding photography barnsley" /></a></li>
                  <li><a href="Images/Gallery2/ka5.jpg" title=""><img src="Images/Gallery2/Thumbnails/ka5tb.jpg" alt="wedding photographer barnsley" /></a></li>
                  <li> <a href="Images/Gallery2/run.jpg" title=""><img src="Images/Gallery2/Thumbnails/runtb.jpg" alt="wedding photographers barnsley" /></a> </li>
                 <li> <a href="Images/Gallery2/img3440.jpg" title=""><img src="Images/Gallery2/Thumbnails/img3440tb.jpg" alt="wedding photographers barnsley" /></a> </li></p>
                 <p><li> <a href="Images/Gallery2/img3307.jpg" title=""><img src="Images/Gallery2/Thumbnails/img3307tb.jpg" alt="wedding photographers barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/centerpiece 2.jpg" title=""><img src="Images/Gallery2/Thumbnails/centerpiece 2tb.jpg" alt="wedding photographer barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/jr102.jpg" title=""><img src="Images/Gallery2/Thumbnails/jr102tb.jpg" alt="wedding photography barnsley" /></a> </li>
                  <li> <a href="Images/Gallery2/img0523.jpg" title=""><img src="Images/Gallery2/Thumbnails/img0523tb.jpg" alt="wedding photography barnsley" /></a> </li>
                 <li> <a href="Images/Gallery2/hug.jpg" title=""><img src="Images/Gallery2/Thumbnails/hugtb.jpg" alt="wedding photographers barnsley" /></a> </li></p>
                </ul>
              </div>
              <script type="text/javascript">
    // BeginOAWidget_Instance_2127022: #gallery
                        $(function(){
                                  $('#gallery a').lightBox({
                                            imageLoading:                              'Layout/spin.gif',                    // (string) Path and the name of the loading icon
                                            imageBtnPrev:                              'Layout/prev.jpg',                              // (string) Path and the name of the prev button image
                                            imageBtnNext:                              'Layout/next.jpg',                              // (string) Path and the name of the next button image
                                            imageBtnClose:                              'Layout/close.png',                    // (string) Path and the name of the close btn
                                            imageBlank:                                        'images/lightbox/lightbox-blank.gif',                              // (string) Path and the name of a blank image (one pixel)
                                            fixedNavigation:                    false,                    // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
                                            containerResizeSpeed:          400,                               // Specify the resize duration of container image. These number are miliseconds. 400 is default.
                                            overlayBgColor:                     "#ffffff",                    // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
                                            overlayOpacity:                              0,                    // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
                                            txtImage:                                        'Image',                                        //Default text of image
                                            txtOf:                                                  'of'
    // EndOAWidget_Instance_2127022
                </script><div align="center"> </div></td>
            </tr>
            <tr>
              <td><div align="center">
                <table width="100" border="0">
                  <tr>
                    <td width="50"><div align="right"><a href="gallery.html"><img src="Layout/prev2.jpg" alt="wedding photographers barnsley" width="63" height="32" /></a></div></td>
                    <td width="50"><a href="gallery-3.html"><img src="Layout/next2.jpg" alt="wedding photographers sheffield" width="63" height="32" /></a></td>
                    </tr>
                </table>
              </div></td>
            </tr>
          </table>
          <p> </p>
        <!-- end .content --></div>
      </div>
      <div class="footer">
        <p align="right"><strong>07794430229 // [email protected]</strong></p>
        <div align="right">
          <table align="right" cellpadding="0" cellspacing="0">
            <tr>
              <td> </td>
            </tr>
          </table>
          <!-- end .footer -->
        </div>
    <div align="right">
          <table align="right" cellpadding="0" cellspacing="0">
            <tr>
              <td> </td>
            </tr>
          </table>
          <!-- end .footer --></div>
      </div>
      <!-- end .container --></div>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-28715127-1']);
      _gaq.push(['_setDomainName', 'emmarichards.co.uk']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </body>
    </html>
    If someone could help me with my issue I'd be very greatful, it's been stumping me for hours now.
    Thank you in advance for any help!!

    When I see code errors, I stop trying to trouble shoot  because code errors account for 98% of browser rendering problems.  When you clear up your orphaned tags: mismatched <p></p> and <li></li> tags, then I'll take a closer look.
    PS. Being able to work with code is essential to using DW and 3rd party plugins.  Without basic coding skills, you're going to be lost most of the time.
    HTML & CSS Tutorials -
    http://www.html.net/
    http://w3schools.com/
    Nancy O.

  • Help with placement of images and texts

    Hi there everyone, first time in  this forum.
    Im  creating a website for the first time in dreamweaver after using other  programmes and have so far created a banner and nav bar across the left  hand side. I am unsure on how i am meant to add any content into the  actual centre of my page as there is no box there to write in or add  pictures and when i create a image or div or table they all just hug the  top of my page and refuse to go next to the navigation bar like i need  to it! im sure it is simple but i am finding it so much harder to use  than any other programme.
    Im trying to do a list of pictures and  descriptions for my mums business.
    any help would be greatly appreciated.
    thanks!
    Harry

    this is my code by the way, i made it as a template and then saved it as a html.
    <!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>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="../twoColFixLtHdr.css" rel="stylesheet" type="text/css" />
    <link href="../Spry-UI-1.7/css/Menu/basic/SpryMenuBasic.css" rel="stylesheet" type="text/css" />
    <script src="../Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="../Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="../Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="../Spry-UI-1.7/includes/SpryMenu.js" type="text/javascript"></script>
    <script src="../Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarKeyNavigationPlugin.js" type="text/javascript"></script>
    <script src="../Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarIEWorkaroundsPlugin.js" type="text/javascript"></script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2141544: #MenuBar */
    /* Settable values for skinning a Basic menu via presets. If presets are not sufficient, most skinning should be done in
        these rules, with the exception of the images used for down or right pointing arrows, which are in the file SpryMenuBasic.css
         These assume the following widget classes for menu layout (set in a preset)
        .MenuBar - Applies to all menubars - default is horizontal bar, all submenus are vertical - 2nd level subs and beyond are pull-right.
        .MenuBarVertical - vertical main bar; all submenus are pull-right.
        You can also pass in extra classnames to set your desired top level menu bar layout. Normally, these are set by using a preset.
        They only apply to horizontal menu bars:
            MenuBarLeftShrink - The menu bar will be horizontally 'shrinkwrapped' to be just large enough to hold its items, and left aligned
            MenuBarRightShrink - Just like MenuBarLeftShrink, but right aligned
            MenuBarFixedLeft - Fixed at a specified width set in the rule '.MenuBarFixedLeft', and left aligned. 
            MenuBarFixedCentered -  - Fixed at a specified width set in the rule '.MenuBarFixedCentered',
                            and centered in its parent container.
            MenuBarFullwidth - Grows to fill its parent container width.
        In general, all rules specified in this file are prefixed by #MenuBar so they only apply to instances of the widget inserted along
        with the rules. This permits use of multiple MenuBarBasic widgets on the same page with different layouts. Because of IE6 limitations,
        there are a few rules where this was not possible. Those rules are so noted in comments.
    #MenuBar  {
        background-color:#000;   
        font-family: Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
                                                    MenuItem, and MenuItemLabel
                                                    at a given level all use same definition for ems.
                                                    Note that this means the size is also inherited to child submenus,
                                                    so use caution in using relative sizes other than
                                                    100% on submenu fonts. */
        font-weight: normal;
        font-size: 16px;
        font-style: normal;
        padding:0;   
        border-color: #ffffff #ffffff #ffffff #ffffff;
        border-width:0px;
        border-style: none none none none;
    /* Caution: because ID+class selectors do not work properly in IE6, but we want to restrict these rules to just this
    widget instance, we have used string-concatenated classnames for our selectors for the layout type of the menubar
    in this section. These have very low specificity, so be careful not to accidentally override them. */
    .MenuBar br { /* using just a class so it has same specificity as the ".MenuBarFixedCentered br" rule bleow */
        display:none;
    .MenuBarLeftShrink {
        float: left; /* shrink to content, as well as float the MenuBar */
        width: auto;
    .MenuBarRightShrink {
        float: right; /* shrink to content, as well as float the MenuBar */
        width: auto;
    .MenuBarFixedLeft {
        float: left;
        width: 80em;
    .MenuBarFixedCentered {
        float: none;
        width: 80em;
        margin-left:auto;
        margin-right:auto;
    .MenuBarFixedCentered br {
        clear:both;
        display:block;
    .MenuBarFixedCentered .SubMenu br {
        display:none;
    .MenuBarFullwidth {
        float: left;
        width: 100%;
    /* Top level menubar items - these actually apply to all items, and get overridden for 1st or successive level submenus */
    #MenuBar  .MenuItemContainer {
        padding: 0px 0px 0px 0px;
        margin: 0;     /* Zero out margin  on the item containers. The MenuItem is the active hover area.
                    For most items, we have to do top or bottom padding or borders only on the MenuItem
                    or a child so we keep the entire submenu tiled with items.
                    Setting this to 0 avoids "dead spots" for hovering. */
    #MenuBar  .MenuItem {
        padding: 0px 24px 0px 0px;
        background-color:#cccccc;   
        border-width:1px;
        border-color: #cccccc #ffffff #cccccc #ffffff;
        border-style: none solid none solid;
    #MenuBar  .MenuItemFirst {
        border-style: none none none none;
        border-top-color: #999;
        border-right-color: #666;
    #MenuBar .MenuItemLast {
        border-style: none solid none none;
    #MenuBar  .MenuItem  .MenuItemLabel{
        text-align:center;
        line-height:1.4em;
        color:#333333;
        background-color:#cccccc;
        padding: 0px 30px 6px 39px;
        width: 10em;
        width:auto;
        border-color: #033;
        border-top-color: #000;
    .SpryIsIE6 #MenuBar  .MenuItem  .MenuItemLabel{
        width:1em; /* Equivalent to min-width in modern browsers */
    /* First level submenu items */
    #MenuBar .SubMenu  .MenuItem {
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-size: 14px;
        font-style: normal;
        background-color:#ffffff;
        padding:0px 2px 0px 0px;
        border-width:1px;
        border-color: #cccccc #cccccc #cccccc #cccccc;
        /* Border styles are overriden by first and last items */
        border-style: solid solid none solid;
    #MenuBar  .SubMenu .MenuItemFirst {
        border-style: solid solid none solid;
    #MenuBar  .SubMenu .MenuItemFirst .MenuItemLabel{
        padding-top: 0px;
    #MenuBar .SubMenu .MenuItemLast {
        border-style: solid solid solid solid;
    #MenuBar .SubMenu .MenuItemLast .MenuItemLabel{
        padding-bottom: 6px;
    #MenuBar .SubMenu .MenuItem .MenuItemLabel{
        text-align:left;
        line-height:1em;   
        background-color:#ffffff;
        color:#333333;
        padding: 6px 12px 6px 5px;
        width: 7em;
    /* Hover states for containers, items and labels */
    #MenuBar .MenuItemHover {
        background-color: #999999;
        border-color: #cccccc #cccccc #cccccc #cccccc;
    #MenuBar .MenuItemWithSubMenu.MenuItemHover .MenuItemLabel{
        background-color: #999999; /* consider exposing this prop separately*/
        color: #000000;
    #MenuBar .MenuItemHover .MenuItemLabel{
        background-color: #999999;
        color: #000000;
    #MenuBar .SubMenu .MenuItemHover {
        background-color: #cccccc;
        border-color: #cccccc #cccccc #cccccc #cccccc;
    #MenuBar .SubMenu .MenuItemHover .MenuItemLabel{
        background-color: #cccccc;
        color: #333333;
    /* Submenu properties -- First level of submenus */
    #MenuBar .SubMenuVisible {
        background-color: #ffffff;
        min-width:0%;  /* This keeps the menu from being skinnier than the parent MenuItemContainer - nice to have but not available on ie6 */
        border-color: #ffffff #ffffff #ffffff #ffffff;
        border-width:0px;
        border-style: none none none none;
    #MenuBar.MenuBar .SubMenuVisible {/* For Horizontal menubar only */
        top: 100%;    /* 100% is at the bottom of parent menuItemContainer */
        left:0px; /* 'left' may need tuning depending upon borders or padding applied to menubar MenuItemContainer or MenuItem,
                        and your personal taste.
                        0px will left align the dropdown with the content area of the MenuItemContainer. Assuming you keep the margins 0
                        on MenuItemContainer and MenuItem on the parent
                        menubar, making this equal the sum of the MenuItemContainer & MenuItem padding-left will align
                        the dropdown with the left of the menu item label.*/
        z-index:10;
    #MenuBar.MenuBarVertical .SubMenuVisible {
        top: 0px;   
        left:100%;
        min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse */
    /* Submenu properties -- Second level submenu and beyond - these are visible descendents of .MenuLevel1 */
    #MenuBar .MenuLevel1 .SubMenuVisible {
        background-color: #ffffff;
        min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse*/
        top: 0px;    /* If desired, you can move this down a smidge to separate top item''s submenu from menubar -
                    that is really only needed for submenu on first item of MenuLevel1, or you can make it negative to make submenu more
                    vertically 'centered' on its invoking item */
        left:100%; /* If you want to shift the submenu left to partially cover its invoking item, you can add a margin-left with a
                    negative value to this rule. Alternatively, if you use fixed-width items, you can change this left value
                    to use px or ems to get the offset you want. */
    /* IE6 rules - you can delete these if you do not want to support IE6 */
    /* A note about multiple classes in IE6.
    * Some of the rules above use multiple class names on an element for selection, such as "hover" (MenuItemHover) and "has a subMenu" (MenuItemWithSubMenu),
    * giving the selector '.MenuItemWithSubMenu.MenuItemHover'.
    * Unfortunately IE6 does not support using mutiple classnames in a selector for an element. For a selector such as '.foo.bar.baz', IE6 ignores
    * all but the final classname (here, '.baz'), and sets the specificity accordingly, counting just one of those classs as significant. To get around this
    * problem, we use the plugin in SpryMenuBarIEWorkaroundsPlugin.js to generate compound classnames for IE6, such as 'MenuItemWithSubMenuHover'.
    * Since there are a lot of these needed, the plugin does not generate the extra classes for modern browsers, and we use the CSS2 style mutltiple class
    * syntax for that. Since IE6 both applies rules where
    * it should not, and gets the specificity wrong too, we have to order rules carefully, so the rule misapplied in IE6 can be overridden.
    * So, we put the multiple class rule first. IE6 will mistakenly apply this rule.  We follow this with the single-class rule that it would
    * mistakenly override, making sure the  misinterpreted IE6 specificity is the same as the single-class selector, so the latter wins.
    * We then create a copy of the multiple class rule, adding a '.SpryIsIE6' class as context, and making sure the specificity for
    * the selector is high enough to beat the single-class rule in the "both classes match" case. We place the IE6 rule at the end of the
    * css style block to make it easy to delete if you want to drop IE6 support.
    * If you decide you do not need IE6 support, you can get rid of these, as well as the inclusion of the SpryMenuBarIEWorkaroundsPlugin.js script.
    * The 'SpryIsIE6' class is placed on the HTML element by  the script in SpryMenuBarIEWorkaroundsPlugin.js if the browser is Internet Explorer 6. This avoids the necessity of IE conditional comments for these rules.
    .SpryIsIE6 #MenuBar .MenuBarView .MenuItemWithSubMenuHover .MenuItemLabel /* IE6 selector  */{
        background-color: #999999; /* consider exposing this prop separately*/
        color: #000000;
    .SpryIsIE6 #MenuBar .MenuBarView .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel/* IE6 selector  */{
        background-color: #cccccc; /* consider exposing this prop separately*/
        color: #333333;
    .SpryIsIE6 #MenuBar .SubMenu .SubMenu  /* IE6 selector  */{
        margin-left: -0px; /* Compensates for at least part of an IE6 "double padding" version of the "double margin" bug */
    /* EndOAWidget_Instance_2141544 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2141544" binding="#MenuBar" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="#"><img src="../images/demologo.jpg" width="727" height="109" align="middle" /><a href="#"></a><a href="#"></a><a href="#"></a></a><!-- end .header --></div>
    <div class="sidebar1">
    <ul class="nav">
          <li><a href="#">OUR PRODUCTS</a></li>
          <li><a href="#">Aprons</a></li>
          <li><a href="#">Cushions</a></li>
          <li><a href="#">Totes</a></li>
          <li><a href="#">Tees</a></li>
          <li><a href="#">Baskets</a></li>
          <li><a href="#">Bags</a></li>
          <li><a href="#">Accessories</a></li>
          <li><a href="#">Wool Rugs</a></li>
          <li><a href="#">Rug Rolls</a></li>
          <li><a href="#">Deck Chairs</a></li>
          <li><a href="#">Tea Towels</a></li>
          <li><a href="#">Mugs</a></li>
          <li><a href="#">Cards</a></li>
        </ul>
        <p> </p>
        <!-- end .sidebar1 --></div>
      <div class="content">
        <ul id="MenuBar">
    <li> <a href="#">Home</a></li>
          <li> <a href="#">Blog</a> </li>
          <li> <a href="#">About Us</a></li>
          <li> <a href="#">Contact Us</a></li>
          <li> <a href="#">About Paypal</a></li>
           </div>
    <p>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2141544: #MenuBar
    var MenuBar = new Spry.Widget.MenuBar2("#MenuBar", {
          widgetID: "MenuBar",
          widgetClass: "MenuBar  MenuBarLeftShrink",
          insertMenuBarBreak: true,
          mainMenuShowDelay: 100,
          mainMenuHideDelay: 200,
          subMenuShowDelay: 200,
          subMenuHideDelay: 200
    // EndOAWidget_Instance_2141544
    <!-- end .content --></div>
    </script>
      <div class="footer">
        <p>Thank you for visiting us</p>
    <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>

  • Dreamweaver does not link any images or styling to my webpage

    Hi,
    I have been creating a webpage and have moved images from one folder to another and now the website will not display any images or styling. I have moved all the content back and it still doesn't show. I have created a completely new website with new images and styling and even now it still doesn't link the images to the "live view" (or when I open it in a browser). What have I messed up?
    Thanks in advance.
    Tom.

    Thanks for you quick response - Please note that even if I use a template it doesn't show any image I put in. Can you see a problem with this template code? I have put the HTML and then the CSS after
    PLEASE ALSO NOTE: I have completely re-done site management and moved images to where they should be. This has not worked.
    <!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>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="file:///C|/Users/admin/Desktop/tomstinhouse/twoColElsRtHdr.css" rel="stylesheet" type="text/css" /><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColElsRtHdr #sidebar1 { padding-top: 30px; }
    .twoColElsRtHdr #mainContent { zoom: 1; padding-top: 15px; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    </head>
    <body class="twoColElsRtHdr">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="sidebar1">
        <h3>sidebar1 Content</h3>
        <p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the right side of the #mainContent div if the #mainContent div will always contain more content than the #sidebar1 div. </p>
        <p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. </p>
      <!-- end #sidebar1 --></div>
      <div id="mainContent">
        <h1> Main Content </h1>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. </p>
        <p>Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce  varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id,  libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat  feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut,  sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh.  Donec nec libero.</p>
        <h2>H2 level heading </h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
    <!-- end #mainContent --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
       <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    </html>
    @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;
    /* 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.
    .twoColElsRtHdr #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: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
    .twoColElsRtHdr #header {
    background: #DDDDDD;
    padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    .twoColElsRtHdr #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: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    /* 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 ".twoColElsRtHdr #sidebar1 p" rule.
    .twoColElsRtHdr #sidebar1 {
    float: right;
    width: 12em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    .twoColElsRtHdr #sidebar1 h3, .twoColElsRtHdr #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.
    .twoColElsRtHdr #mainContent {
       margin: 0 13em 0 10px; /* the left margin will look best if you match the padding amount to the header and footer. */
    .twoColElsRtHdr #footer {
    padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    background:#DDDDDD;
    .twoColElsRtHdr #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. */
    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;

  • Div moves down when window is resized

    Hello,
    Here's my problem:  When I resize my browser window the main div is resized up until a certain point when it just falls below all of the other content.
    How can I prevent this from happening?  I have both the top and bottom div's set to auto width, so I can't figure out whats going wrong.
    Here's the website if you want to see for yourself:  www.hondovfd.org
    Here's some code from my template file:
    <!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="Title" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <meta name="description" content="Hondo Fire and Rescue serves the Arroyo Hondo and Canada Village areas of Santa Fe County, NM." />
    <meta name="keywords" content="hondo, hondo fire, hondo vfd, hondo fire department, santa fe county fire department, santa fe county, volunteer fire department, hondo volunteer fire department" />
    <link href="../stylesheet1.css" type="text/css" rel="stylesheet" />
    <!--[if IE]>
    <style type="text/css">
    #mainContent, #sidebar1 { zoom: 1;}
    </style>
    <![endif]-->
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="thrColLiqHdr">
    <div id="container">
    <div id="header"></div>
      <div id="sidebar1">
      <h3>Navigation : </h3>
      <ul id="MenuBar1" class="MenuBarVertical">
      <li><a href="/index.php">Home</a></li>
    <li><a href="/support.php">Support Hondo</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Information Menu</a>
        <ul>
          <li><a href="/people.php">Our People</a></li>
          <li><a href="http://www.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=101620713606637979698.00045b6ead4ab4ea70b78&z=11" target="_blank">Response Area</a></li>
          <li><a href="/medical.php">Medical</a></li>
          <li><a href="/apparatus.php">Apparatus</a></li>
          <li><a href="/training.php">Training</a></li>
          <li><a href="/volunteer.php">Volunteer</a></li>
          <li><a href="/statistics.php">Statistics</a></li>
          <li><a href="/patchtrading.php">Patch Trading</a></li>
        </ul>
      </li>
      <li><a href="/gallery2/main.php">Photo Gallery</a></li>
      <li><a href="/calendar.php">Calendar</a></li>
      <li><a href="/news.php">Blog/News</a></li>
      <li><a href="/links.php">Links</a></li>
      <li><a href="/contact.php">Contact Us</a></li>
    </ul>
    <br />
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <span class="lefttext">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="8567201">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" align="middle" />
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" align="absmiddle" >
    </img></input></input>
      </span>
    </form>
    <span class="lefttext"><br />
    </span>
    <center>
      <span class="lefttext"><a href="http://www.facebook.com/pages/Santa-Fe-NM/Hondo-Volunteer-Fire-Department/74284233488" target="_blank" class="lefttext">Hondo VFD on Facebook</a></span>
    </center>
      <!-- end #sidebar1 --></div>
      <div id="sidebar2"> 
        <p><a href="/membersonly/login.php">Log In</a> | <a href="/membersonly/logout.php">Log Out</a><br />
        <a href="/membersonly/register.php">Register</a></p>
        <p><img src="/firedanger/Moderate.jpg" width="127" height="100" /></p>
        <p>Call Statistics as of:<br />
        <?php
    $myFile = "/home/hondovf1/public_html/membersonly/month.txt";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, filesize($myFile));
    fclose($fh);
    echo $theData;
    ?><?php
    $myFile = "/home/hondovf1/public_html/membersonly/date.txt";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, filesize($myFile));
    fclose($fh);
    echo $theData;
    ?></p>
      <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td width="60%">EMS Calls</td>
        <td width="40%"><?php
    $myFile = "/home/hondovf1/public_html/membersonly/emscalls.txt";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, filesize($myFile));
    fclose($fh);
    echo $theData;
    ?></td>
      </tr>
      <tr>
        <td>Fire Calls</td>
        <td><?php
    $myFile = "/home/hondovf1/public_html/membersonly/firecalls.txt";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, filesize($myFile));
    fclose($fh);
    echo $theData;
    ?></td>
      </tr>
        <tr>
        <td>Other Calls</td>
        <td><?php
    $myFile = "/home/hondovf1/public_html/membersonly/othercalls.txt";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, filesize($myFile));
    fclose($fh);
    echo $theData;
    ?></td>
      </tr>
    </table>
      <hr />
           <!-- Begin Google Search Element -->
        <div id="cse" style="width: 100%;">Loading</div>
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <script type="text/javascript">
      google.load('search', '1', {language : 'en'});
      google.setOnLoadCallback(function(){
        var googleNumSearchResults = 5;
         var customSearchControl = new google.search.CustomSearchControl('002969495656254731547:rhlwwedx2hi');
        customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
        customSearchControl.draw('cse');
      }, true);
    </script>
    <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
           <!-- End Google Search Element -->
    </div>
      <!-- end #sidebar2 -->
      <div id="mainContent">
      <div class="topleft"></div><div class="top"><div class="topright"></div></div>
      <div class="wrap">
    <!-- TemplateBeginEditable name="Main Content" -->
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="47" class="h2">Header</td>
          </tr>
          <tr>
            <td>Text Goes Here!</td>
          </tr>
        </table>
      <!-- TemplateEndEditable -->
      </div><br class="clearfloat" />
    <div class="bottomleft"></div><div class="bottom"><div class="bottomright"></div></div></div>
    </div>
    </div>
    </div>
         <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <p align="center">&copy; Copyright 2009 Hondo Volunteer Fire Department | <a href="mailto:[email protected]">Contact Us</a><a href="http://www.legalhelpers.com/chapter-13-bankruptcy/chapter13.html"></a><br />Hosting provided by <a href="http://studiox.com/" target="_blank">Studio X</a></p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    <?php include_once("/home/hondovf1/public_html/analyticstracking.php"); ?>
    </body>
    </html>
    And here is my CSS file:
    body {
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-size: 12px;
         width: auto;
         color: #333333;
         margin-top: 0;
         margin-right: 0;
         margin-bottom: 0;
         margin-left: 0;
         padding-top: 0;
         padding-right: 0;
         padding-bottom: 0;
         padding-left: 0;
         background-image: url(images/main-right.png);
         background-repeat: repeat-y;
    .thrColLiqHdr #container {
         width: 95%; /* this overrides the text-align: center on the body element. */
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
         height: auto;
         background-image: url(/images/halftone1.png);
    .thrColLiqHdr #header {
         padding: 0 10px;
         height: 100px;/* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
         background-image: url(images/header.jpg);
         background-repeat: no-repeat;
         background-position:center;
         border-bottom-width: 5px;
         border-bottom-style: solid;
         border-bottom-color: #000;
    .thrColLiqHdr #navbar {
         height:45px;
    .thrColLiqHdr #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: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    /* Tips for sidebars:
    1. Since we are working in percentages, it's best not to use side padding on the sidebars. It will be added to the width for standards compliant browsers creating an unknown actual width.
    2. 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 ".thrColLiqHdr #sidebar1 p" rule.
    3. Since Explorer calculates widths after the parent element is rendered, you may occasionally run into unexplained bugs with percentage-based columns. If you need more predictable results, you may choose to change to pixel sized columns.
    .thrColLiqHdr #sidebar1 {
         float: left; /* this element must precede in the source order any element you would like it be positioned next to */
         width: 15%; /* top and bottom padding create visual space within this div  */
         height: 100%;
         padding-top: 15px;
         padding-right: 0;
         padding-bottom: 15px;
         padding-left: 0;
         min-width: 150px;
    .thrColLiqHdr #sidebar2 {
         float: right; /* this element must precede in the source order any element you would like it be positioned next to */
         width: 15%; /* top and bottom padding create visual space within this div */
         padding-top: 0px;
         padding-right: 0;
         padding-bottom: 15px;
         padding-left: 0;
         min-width: 150px;
    .thrColLiqHdr #sidebar3 {
         float: right; /* this element must precede in the source order any element you would like it be positioned next to */
         width: 275px; /* top and bottom padding create visual space within this div */
         padding-top: 0px;
         padding-right: 0;
         padding-bottom: 15px;
         padding-left: 0;
         min-width: 150px;
    .thrColLiqHdr #sidebar1 p, .thrColLiqHdr #sidebar1 h3, .thrColLiqHdr #sidebar2 p, .thrColLiqHdr #sidebar2 h3 {
         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;
         text-align: center;
    /* Tips for mainContent:
    1. the space between the mainContent and sidebars is created with the left and right margins on the mainContent div.
    2. to avoid float drop at a supported minimum 800 x 600 resolution, elements within the mainContent div should be 300px or smaller (this includes images).
    3. in the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs.
    .thrColLiqHdr #mainContent {
         margin-top: 10px;
         margin-bottom: 10px;
         float: left;
         width: 65%;
         background-image: url(images/main-right.png);
         background-repeat: repeat-y;
         background-position: right;
    .h2 {
         color: #B4241B;
         font-size: 20px;
         letter-spacing: -2px;
         font-weight: 100;
         font-family: Verdana, Arial, Helvetica, sans-serif;
         padding-top: 0px;
         padding-right: 0px;
         padding-bottom: 0px;
         padding-left: 0px;
         line-height: normal;
    .thrColLiqHdr #footer {
         text-align: center;
         color: #666;
         font-size: 11px;
         padding: 10px;
         background: #f7f7f7;
         border-top: 1px solid #aaa;
         width: auto;
    .thrColLiqHdr #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: 2px 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. */
         float: right;
         margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page The floated element must precede the element it should be next to on the 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 its child floats */
         clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    .topleft {
         height:22px;
         width:19px;
         background-image:url(images/top-left.png);
         float: left;
    .top {
         height:23px;
         background-image: url(images/top.png);
         background-repeat:repeat-x;
         width: auto;
    .topright {
         height:22px;
         width:28px;
         background-image:url(images/top-right.png);
         float: right;
    .textarea{
    .wrap{
         text-align: justify;
         padding-right: 40px;
         padding-left: 40px;
         background-repeat: repeat-y;
         float:left;
         background-image: url(images/main-left.png);
         width: auto;
         clear: left;
    .wrapright {
         width:4px;
         background-image:url(images/main-right.png);
         background-repeat: repeat-y;
         float: right;
    .bottomleft {
         height:22px;
         width:19px;
         background-image:url(images/bottom-left.png);
         float: left;
         clear: left;
    .bottom {
         height:23px;
         background-image: url(images/bottom.png);
         background-repeat:repeat-x;
         width: auto;
    .bottomright {
         height:22px;
         width:27px;
         background-image:url(images/bottom-right.png);
         float: right;

    That's one of the problems with liquid (%) based layouts. In your default.css file, replace the top 2o selector rules with the following:
    body {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #333;
        margin:0;
        padding:0;
        background: url(images/main-right.png) repeat-y;
    .thrColLiqHdr #container {
        width: 95%;
       min-width: 870px; /**keep page from collapsing**/
        margin:0 auto;
        background: url(/images/halftone1.png);
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Problems creating a sticky footer

    Hi,
    I'm trying to create a website in Dreamweaver using a template that I purchased but I am having problems fixing a footer to the bottom of the page,
    At the moment the content footer that I have created (which is a table) changes positon from page to page depending on the content.
    The template comes with 2 x CSS style sheets  and 1 x JS coded page which I know I need to amend in order for the footer to remain fixed to the bottom of each page.
    The trouble is my CSS and JS are not up to much. I have inserted the code from the HTML, CSS & JS below.
    If anyone can help me out it would be fantastic as I'm really at a loss!
    The HTML of my main webpage is as follows:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <!-- saved from url=(0023)http://www.contoso.com/ -->
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="layout.css" rel="stylesheet" type="text/css" />
    <script src="maxheight.js" type="text/javascript"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body  id="page1" onload="new ElementMaxHeight(); ;MM_preloadImages('images/facebook2.gif','images/linkedin2.gif','images/twitter2.gif')">
    <div id="header">
        <div class="main">
         <div class="flash">
           <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="980" height="137">
             <param name="movie" value="flash/menu_v8.swf" />
             <param name="quality" value="high" />
             <param name="wmode" value="transparent" />
             <param name="swfversion" value="8.0.35.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="flash/menu_v8.swf" width="980" height="137">
               <!--<![endif]-->
               <param name="quality" value="high" />
               <param name="wmode" value="transparent" />
               <param name="swfversion" value="8.0.35.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" id="Image2" /></a></p>
               </div>
               <!--[if !IE]>-->
             </object>
             <!--<![endif]-->
           </object>
         </div>
           <div class="flash1">
             <object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="587" height="389">
               <param name="movie" value="flash/header_v8.swf" />
               <param name="quality" value="high" />
               <param name="wmode" value="transparent" />
               <param name="swfversion" value="8.0.35.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="flash/header_v8.swf" width="587" height="389">
                 <!--<![endif]-->
                 <param name="quality" value="high" />
                 <param name="wmode" value="transparent" />
                 <param name="swfversion" value="8.0.35.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" id="Image3" /></a></p>
                 </div>
                 <!--[if !IE]>-->
               </object>
               <!--<![endif]-->
             </object>
           </div>
            <div class="indent1">
             <div class="container1">
               <p>Welcome to ACL International.<br />
                     Through our offices in the UK and Portugal we supply the<br />
                     very latest in energy saving technologies with our main<br />
                     focus being on lighting. ACL have been active in the lighting<br />
                  industry for over 10 years and have built up strong relationships with some of the world's leading lighting manufacturers.</p>
               <p> </p>
               <p>Welcome to ACL International.<br />
    Through our offices in the UK and Portugal we supply the<br />
    very latest in energy saving technologies with our main<br />
    focus being on lighting. ACL have been active in the lighting<br />
    industry for over 10 years and have built up strong relationships with some of the world's leading lighting manufacturers.</p>
              </div>
          </div>
        </div>
    </div>
    <div id="content">
        <div class="main">
            <div class="indent-main">
                <div class="container bg">
                    <div class="container bg1">
                        <div class="container bg2">
                            <div class="col-1 bg-1">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title1.gif" class="title" /><br />
                                    <p>An easy and affordable<br />
                                  way to change existing<br />
                                  lighting to an energy<br />
                                  saving alternative...</p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                            <div class="col-1 bg-2">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title2.gif" class="title" /><br />
                                    <p>A more natural,<br />
                                    environmentally<br />
                                    friendly light<br />
                                    source...  </p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                            <div class="col-1 bg-3">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title3.gif" class="title" /><br />
                                    <p>Up to 80% energy <br />
                                  saving with an<br />
                                  extremely long<br />
                                  lifetime... </p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                            <div class="col-1 bg-4">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title4.gif" class="title" /><br />
                                    <p>Low glare,<br />
                                    creating a more<br />
                                    comfortable<br />
                                    environment... </p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="footer">
        <div class="main">
            <div class="indent-footer">
              <table width="929" border="0">
                <tr>
                  <td width="869">ACLI  &copy; 2012  <a href="index-5.html">Privacy Policy</a></td>
                  <td><img src="images/followus.gif" alt="" width="73" height="20" /></td>
                  <td width="20"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('facebook','','images/facebook2.gif',1)"><img src="images/facebook.gif" width="20" height="20" border="0" id="facebook" /></a></td>
                  <td width="20"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linkedin','','images/linkedin2.gif',1)"><img src="images/linkedin.gif" width="25" height="20" border="0" id="linkedin" /></a></td>
                  <td width="20"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('twitter','','images/twitter2.gif',1)"><img src="images/twitter.gif" width="27" height="20" border="0" id="twitter" /></a></td>
                </tr>
              </table>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    swfobject.registerObject("FlashID2");
    </script>
    </body>
    </html>
    The CSS of the layout is as follows:
    .col-1, .col-2, .col-3, .col-4, .col-5{ float:left}
    /*======= width =======*/
    .main{margin:0 auto; text-align:left; width:929px; }
    /*======= header =======*/
    #header {height:339px;  background:url(images/bg.jpg) }
    #page1 #header {height:526px;}
    /*======= index.html =======*/
    #page1 #content .col-1{ width:231px; margin-right:1px}
    #page1 #content .bg{ background:url(images/tail.gif) repeat-y 231px top }
    #page1 #content .bg1{ background:url(images/tail.gif) repeat-y 463px top }
    #page1 #content .bg2{ background:url(images/tail.gif) repeat-y 695px top }
    /*======= index-1.html =======*/
    #page2 #content .col-1{ width:339px; margin-right:0}
    #page2 #content .col-2{ width:590px}
    #page2 #content .col-3{ width:154px; margin-right:32px}
    #page2 #content .col-4{ width:158px; margin-right:30px}
    #page2 #content .col-5{ width:155px; margin-right:0}
    /*======= index-2.html =======*/
    #page3 #content .col-1{ width:590px; margin-right:0}
    #page3 #content .col-2{ width:339px}
    #page3 #content .col-3{ width:188px; margin-right:0}
    #page3 #content .col-4{ width:155px; margin-right:0}
    /*======= index-3.html =======*/
    #page4 #content .col-1{ width:339px; margin-right:0}
    #page4 #content .col-2{ width:590px}
    #page4 #content .col-3{ width:95px; margin-right:2px; text-align:right; line-height:1em; padding-top:3px}
    #page4 #content .col-4{ width:188px; margin-right:0}
    /*======= index-4.html =======*/
    #page5 #content .col-1{ width:590px; margin-right:0}
    #page5 #content .col-2{ width:339px}
    #page5 #content .col-3{ width:95px; margin-right:2px; text-align:right; line-height:1em; padding-top:3px}
    #page5 #content .col-4{ width:188px; margin-right:0}
    /*======= footer =======*/
    #footer { height:110px; }
    The CSS of the style is as follows:
    /* CSS Document */
    * { margin:0; padding:0;}
    html, body { height:100%; }
    body {font-size:100%; line-height:1.125em;}
    html, input, textarea {
    font-family: "Century Gothic";
    color:#646464;
    .alignMiddle{ vertical-align:middle}
    .alignCenter{ text-align: center}
    .container1{ width:100%}
    object { vertical-align:top; outline:none}
    .clear { clear:both;}
    .fleft{ float:left}
    .fright{ float:right}
    div.container { overflow:hidden; width: 100%;}
    a img{ border:0}
    img{ vertical-align:top;  }
    a{color:#000000; text-decoration:underline; outline:none}
    a:hover{text-decoration:none}
    .link{color:#000000; background:url(images/marker.gif) top left no-repeat; padding-left:20px; background-position:0 5px; text-decoration:none; font-size:.916em  }
    .link:hover{text-decoration:underline }
    .button{color:#fff; font-size:.916em; line-height:20px ; padding:2px 8px 8px 6px; text-decoration:none;  }
    .button:hover{color:#000; background:url(images/button.gif) top left no-repeat; padding:2px 8px 8px 6px; text-decoration:none; line-height:20px ;  }
    .current{color:#000; background:url(images/button.gif) top left no-repeat; padding:2px 8px 8px 6px; text-decoration:none; line-height:20px ;  }
    ul{margin:0; padding:0; list-style:none;}
    ul li a{color:#646464; text-decoration: underline; line-height:1.66em}
    ul li a:hover { text-decoration:none; }
    .ul1 li{background:url(images/marker.gif) top left no-repeat; background-position:0 5px; margin:0; padding-left:10px; }
    .ul1 li a{color:#646464; text-decoration:none ; line-height:1.5em}
    .ul1 li a:hover { text-decoration:underline; }
    .ul li{background:url(images/tail-1.gif) repeat-x bottom; margin:0; padding-left:0; }
    .ul li span{color:#646464; float:right; background:url(images/tail-2.gif) repeat-x bottom;}
    .ul li a{color:#646464; text-decoration: underline; line-height:1.66em;  background:url(images/tail-2.gif) repeat-x bottom;}
    .ul li a:hover { text-decoration:none; }
    .link-1 { display:block; float:left; background:url(images/link_bg.gif) left top repeat-x; color:#ffffff; text-decoration:none; }
    .link-1 em { display:block; background:url(images/link_left.gif) no-repeat left top;}
    .link-1  b { display:block; background:url(images/link_right.gif) no-repeat right top; padding:0 5px 3px 7px; font-weight:normal; font-style:normal;}
    .link-1:hover{ text-decoration:none; color:#627311}
    .link-2 { display:block; float:left; background:url(images/link_bg.gif) left top repeat-x; color:#ffffff; text-decoration:none; }
    .link-2 em { display:block; background:url(images/link_left.gif) no-repeat left top;}
    .link-2  b { display:block; background:url(images/link_right.gif) no-repeat right top; padding:0 15px 3px 17px; font-weight:normal; font-style:normal;}
    .link-2:hover{ text-decoration:none; color:#627311}
    /*header*/
    #header {font-size:0.75em; color:#646464 }
    #header .logo{ margin:19px 0 9px 0 }
    #header .indent{margin:30px 0 0 755px; position:absolute; width:175px; color:#625a49}
    #page1 #header .indent1{padding:40px 0 0 565px}
    #header .indent1{padding:22px 0 0 0px}
    #header .indent2{padding:11px 0 0 397px}
    #header .img-left{ float:left; margin:0 31px 0 0}
    #header .img-indent{ margin:0 24px 0 0}
    #header .img-indent1{ margin:0 23px 0 0;}
    #header .title{  margin-bottom:11px}
    #header a{ color:#625a49; text-decoration:none}
    #header a:hover{text-decoration: underline}
    .flash{ margin:0 -27px 0 -25px; position:relative}
    .flash1{ margin:0 0 0 -25px; position: absolute}
    #page1 .bg-1{
    background-image: url(images/1page_img1.jpg);
    background-repeat: no-repeat;
    background-position: right bottom;
    #page1 .bg-2{ background:url(images/1page_img2.jpg) no-repeat bottom right}
    #page1 .bg-3{ background:url(images/1page_img3.jpg) no-repeat bottom right}
    #page1 .bg-4{ background:url(images/1page_img4.jpg) no-repeat bottom right}
    .bg-5{ background:url(images/bg-1.gif) repeat-x top #e5e5e5; width:100%}
    .bg-6{ background:url(images/bg-2.gif) repeat-x top #fff; width:100%}
    /*content*/
    #content{ font-size:0.75em; width:100%; text-align:left; background:url(images/bg_cont.gif) repeat-x top #fff}
    #content .indent-main{padding:11px 0 0 0}
    #content .indent-main1{padding:3px 0 0 0}
    #content .indent-col{padding:14px 0 28px 20px}
    #content .indent-col1{padding:32px 14px 24px 15px}
    #content .indent-col2{padding:32px 28px 0 28px}
    #content .title{  margin-bottom:8px}
    #content .img-left{ float:left; margin:0 20px 16px 0}
    #content .img-right{ float:right; margin:0 0 0 10px}
    #content .img-indent{ margin:0 0 16px 0}
    #content p{ margin:0 0 17px 0}
    #content .p{ margin:0}
    #content .p1{ margin:0 0 17px 0}
    #content h4{color:#8b870e; font-size:1em; margin-bottom:13px;  }
    #content .tail{ background:url(images/tail2.gif) repeat-x bottom; padding-bottom:26px; margin-bottom:21px}
    .txt{ color:#8e9c2e; font-weight:normal}
    .txt a{ color:#8e9c2e; }
    #content .indent{padding:15px 0 0 0}
    /*box*/
    .box{ background:#fcfcfc; width:100%;}
    .box .indent-box{ padding:11px 18px 11px 20px; }
    .box .indent-box1{ padding:11px 10px 11px 10px; }
    /*footer*/
    #footer { color:#5a5a5a; text-transform:uppercase; font-size:0.6875em ; }
    #footer .indent-footer{ padding:37px 0 0 0; background:url(images/bot.gif) repeat-x top;}
    #footer a {color:#5a5a5a; text-decoration:underline} 
    #footer a:hover {  text-decoration:none}
    .jamp{ width:69px;}
    .jamp1{ width:64px;}
    .jamp2{ width:58px;}
    .jamp3{ width:52px;}
    select{font-size:12px; color:#646464; height:19px; font-family: Arial, Helvetica, sans-serif;}
    .indent-2{ position:relative; padding-right:20px; float:left}
    .h{ height:29px}
    .block-contact span{ float:right; margin-right:50px}
    input{
    width:183px; height:17px;
    font-size:1em;
    color:#646464;
    padding-left:5px;
    textarea{
    width:183px; height:57px;
    font-size:1em;
    color:#646464;
    padding-left:5px;
    margin-bottom:11px;
    overflow:auto}
    .textarea{
    width:183px; height:142px;
    font-size:1em;
    color:#646464;
    padding-left:5px;
    margin-bottom:11px;
    overflow:auto}
    The JS page is as follows:
    var ElementMaxHeight = function() {
      this.initialize.apply(this, arguments);
    ElementMaxHeight.prototype = {
      initialize: function(className) {
        this.elements = document.getElementsByClassName(className || 'maxheight');   
        this.textElement = document.createElement('span');
        this.textElement.appendChild(document.createTextNode('A'));
        this.textElement.style.display = 'block';
        this.textElement.style.position = 'absolute';
        this.textElement.style.fontSize = '1em';
        this.textElement.style.top = '-1000px';
        this.textElement.style.left = '-1000px';
        document.body.appendChild(this.textElement);
        this.textElementHeight = document.getDimensions(this.textElement).height;
        var __object = this;
        var __checkFontSize = this.checkFontSize;
        this.checkFontSizeInterval = window.setInterval(function() {return __checkFontSize.apply(__object)}, 500);
        this.expand();
        // Refresh elements height onResize event
        var __expand = this.expand;
        if (window.addEventListener) {
          window.addEventListener('resize', function(event) {return __expand.apply(__object, [( event || window.event)])}, false);
        } else if (window.attachEvent) {
          window.attachEvent('onresize', function(event) {return __expand.apply(__object, [( event || window.event)])});
      expand: function() {
        this.reset();
       for (var i = 0; i < this.elements.length; i++) {  
          this.elements[i].style.height = document.getDimensions(this.elements[i].parentNode).height + 'px';
      reset: function() {
        for (var i = 0; i < this.elements.length; i++) {   
          this.elements[i].style.height = 'auto';
      checkFontSize: function() {
       var height = document.getDimensions(this.textElement).height;
       if(this.textElementHeight != height) {
        this.textElementHeight = height;
        this.expand();
    if (!!document.evaluate) {
      document._getElementsByXPath = function(expression, parentElement) {
        var results = [];
        var query = document.evaluate(expression, parentElement || document,
          null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
        for (var i = 0, length = query.snapshotLength; i < length; i++)
          results.push(query.snapshotItem(i));
        return results;
    document.getElementsByClassName = function(className, parentElement) {
      if (!!document.evaluate) {
        var q = ".//*[contains(concat(' ', @class, ' '), ' " + className + " ')]";
        return document._getElementsByXPath(q, parentElement);
      } else {
        var children = (parentElement || document.body).getElementsByTagName('*');
        var elements = [], child;
        for (var i = 0, length = children.length; i < length; i++) {
          child = children[i];
          if (child.className.length != 0 &&
              (child.className == className ||
               child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))) {     
            elements.push(child);
        return elements;
    document.getDimensions = function (element) {
      var display = element.style.display;
      if (display != 'none' && display != null) { // Safari bug
        return {width: element.offsetWidth, height: element.offsetHeight};
      return {width: originalWidth, height: originalHeight};

    A sticky footer is position:fixed and therefor always visible in the bottom of browser viewports -- even when users scroll up or down the page.
    Sticky Footer Demo:
    http://alt-web.com/DEMOS/CSS2-Sticky-Footer.shtml
    I believe what you're trying to achieve is 100% height on long & short pages.  Try this:
    <!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=iso-8859-1" />
    <title>100% height page layout</title>
    <style type="text/css">
    /**==========================
    100% height layout
    ===========================*/
    html,body {
    margin:0;
    padding:0;
    height:100%; /* needed for container min-height */
    background:gray;
    font-family:arial,sans-serif;
    font-size:small;
    color:#666;
    zoom: 1;
    #container {
    position:relative; /* needed for footer positioning*/
    margin:0 auto; /* center, not in IE5 */
    width:1000px;
    background:#FF9999;
    height:auto !important; /* real browsers */
    height:100%; /* IE6: treated as min-height*/
    min-height:100%; /* real browsers */
    #header {
    padding:1em;
    background:#ddd;
    min-height: 95px;
    border-bottom:6px double gray;
    #content {
    padding:1em 1em 5em; /* bottom padding for footer */
    #footer {
    position:absolute;
    width:100%;
    bottom:0; /* stick to bottom */
    background:#ddd;
    min-height: 95px;
    border-top:6px double gray;
    #footer p {padding:1em}
    </style>
    </head>
    <body>
    <div id="container">
    <div id="header">
    <p>here is the header</p>
    </div>
    <div id="content">
    <p>Here is the content</p>
    </div>
    <div id="footer">
    <p>Here is the footer</p>
    </div>
    <!--end container --></div>
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for

  • Tracking memory usage

    I have run to a memory limitation problem with my MIDP 1 application. So I'm trying to track memory usage. However I found out that WTK memory monitor gives me different results then Runtime memory functions (by calling Runtime.getRuntime().freeMemor

  • Resizing a browser window

    I have a requirement to be set in the browser(IE). When a user resizes a window, it is seen that the layers/positioned elements in the page, loose their position/show up in the wrong place. I want to prevent this. I will be glad if someone has a solu

  • Music transfers very slow and takes a while to load in player- yahoo mu

    I got the new beta firmware and I downloaded about 650 songs via Yahoo music unlimited. I tranfered only about 250 songs in 2 hours... I have USB . but it shouldnt be this slow. Also when I try to play the songs on my mp3 player they take about 0 sec

  • Not able to connect to MS SQL 2005 Evaluation version

    Hi, I have installed MS SQL 2005 Evaluation version(downloaded from microsoft site) on my win2k3 Enterprise Edition I am writing a java application that connects to MS SQL 2005. I have downloaded the MS SQL 2005 JDBC driver. And i unjarred the I have

  • Time Machine -Error Red "i" message: "Unable to complete backup. "

    Trying to use Time Machine to backup to a Maxtor Basic Desktop Storage device. Keep getting error message. I have read all posts I could on the discussion boards. Repairing the disk doesn't work... it says it is working correctly. It starts the backu