Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    hmmm...I have a feeling that this custom table header goes into *tpl_header.php*.

    ....but where?
    Try looking at the current code between bof branding and eof branding. Ithink that this is where you can alter/add your code
    Zen-Venom Get Bitten

  2. #12

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    I place my custom header in the tpl_header.php file after the <div id="headerWrapper"> and it appears as follows:

    <div id="headerWrapper">
    <?php
    include ("http://www.historicalpreservation.org/store/index_header.html");
    ?>
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">


    This seems to have done the trick, however, it appears my headerwrapper margin needs to be adjusted.

    This must be a stylesheet issue.

  3. #13

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    Yet, the initial problem still remains.....The page body slides over the background bars when resized down.

  4. #14
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    Closer but no bananna...

    You need to strip some of your html code out as this is not defining a page and requires not head tags, a point that barco pointed out. viewing your source this is want is contained currently in the header wrapper and of course the corresponding closing tags:
    Code:
    <!--bof-header logo and navigation display-->
    
    <div id="headerWrapper">
    <html>
    <head>
    <title>index</title>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    <body bgcolor=#8A876F leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>
    <table id="Table_01" width=1026 height=185 border=0 cellpadding=0 cellspacing=0 align="center">
    but earlier in ths view Zen Cart already has this:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
    <head>
    <title>HistoricalPreservation.org, The History Store</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-88
    No need to repeat head, meta etc....just the relavant code to display the header and defined tables.

    Now, I can see that this was for a previous site and there are some spacer tables that are not required also both left and right your full table ends up being 1026 px wide and you have the main wrapper defined as 950px an initial mis-match, then for other reason from the original there are spacer tables on the left and right and tables for the left, right and top brown border and these are handled now by some other border definition and also are not needed in your header.

    There remain many many non-valid coding errors in this also.
    Zen-Venom Get Bitten

  5. #15

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    I see. Let me reorder, as you mentioned, and we'll see if that works.

    Hopefully that will fix everything. Of course, I can hope all day but I still might be sitting here at the end of it:)

    Any ideas why my custom header table is running a bit to the right. Seems like a margin problem somewhere.

    btw: thank you. but Im more of an artist than a php coder I guess:)

  6. #16
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    You don't need to use an include here. You can stick html in an php file...it just needs to be place between a php closing tag (?>) and a php opening tag (<?php)
    I would consider taking all of the table html and sticking it in the tpl_header.php like this:
    Code:
    <div id="headerWrapper">
    <table>
       ......your table html
    </table>
    <!--bof-navigation display-->
    notice I only use the code from <table> to </table>
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  7. #17

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    on the mainwrapper width:

    -My custom header is 1026px in length.
    -My main store body is 950px
    This was done so the store would fit snug within the black bar background.

    Should I recreate the header so it is 950px now that I am placing it within tpl_header.php?

    I cn always adapt the background to fit with the design.

  8. #18

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    Didn't even cross my mind to do that one. I'll try it as well and see what happens.

  9. #19

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    Inserting the html for my custom table header directly into the tpl_header worked great. Now I'm going to readjust/design the custom header to 950px.

  10. #20

    Default Re: Static body for resizing (How to keep the body from sliding and moving when resiz

    Quote Originally Posted by barco57 View Post
    You don't need to use an include here. You can stick html in an php file...it just needs to be place between a php closing tag (?>) and a php opening tag (<?php)
    I would consider taking all of the table html and sticking it in the tpl_header.php like this:
    Code:
    <div id="headerWrapper">
    <table>
      ......your table html
    </table>
    <!--bof-navigation display-->
    notice I only use the code from <table> to </table>

    Looks like everything is working out as far as the layout. I'll have some tweaking and cleaning up to do now. Any idea if it is possible to put the background into the design without going through the css?


    This is a great tutorial for placing custom headers. Many thanks to you both.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. CSS questions for buttons, and resizing
    By Amethyst_fairy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 31 Jul 2016, 08:34 PM
  2. Replies: 8
    Last Post: 28 Feb 2012, 03:05 PM
  3. Can any body tell me whats the error means ? and how will i fixed
    By lastpirate007 in forum General Questions
    Replies: 2
    Last Post: 12 Feb 2010, 08:24 AM
  4. How do I keep the banner images from resizing automatically?
    By bparker in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Nov 2008, 03:33 AM
  5. iFrame for the body and header reloading
    By andy1234 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 22 Apr 2008, 01:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg