Skip to main content
New Participant
October 2, 2020
Question

Same footer in multiple pages

  • October 2, 2020
  • 4 replies
  • 1109 views

Hello Dreamweaver Community.

 

I want to know how can I keep the header and footer the same size and look on multiple pages that I have created in Dreamweaver. I have tried manually manipulating two but I havent't solved the problem. Also I want to know how to remove a white space that is between the navigation bar and the header that has a picture and an overlay over it to add tint.

 

I would surely appreciate a response back.

 

    This topic has been closed for replies.

    4 replies

    Braniac
    October 4, 2020

    'I would surely appreciate a response back'.

     

    I'm sure the contributors that provided their time and suggestions would also appreciate a response back. It can't be that important, I assume, 2 days have passed now since you posted.

    New Participant
    October 4, 2020

    Hey, I am still trying to understand this php and to get it working. I wish there was a video that was helpful regarding adobe dreamweaver software. I have one question that you may can help me on. Do you know if I could have more than one input placeholder on a page and have one super wide and another small. I was trying to do that and both would change to the same thing at the same time. I don't know if this is possible. I was trying to make a reservation page for my "frestaurant food website"

    Nancy OShea
    Braniac
    October 4, 2020

    Let's stick with one topic at a time.  Please start a new discussion about your other issue.

     

    PHP includes are  simple.  But they only work on a server that supports PHP scripts.  Please show us your code.

     

    Nancy O'Shea— Product User, Community Expert & Moderator
    Nancy OShea
    Braniac
    October 2, 2020

    By default, all browsers add their own margins and padding to HTML elements.  To overcome this, you would need to zero out margins and padding in your stylesheet with CSS code. 

     

    Example:

    body, nav, header, img {margin:0; padding:0}

     

    Nancy O'Shea— Product User, Community Expert & Moderator
    New Participant
    October 4, 2020

    That actually worked THANKS!

    now I have to finger out how to put the footer links back to the right side of the footer.Do I always need to do this for the body, hav, header, and img? Do I need toput margin 0 and padding 0 for html in css too?

    Nancy OShea
    Braniac
    October 2, 2020

    "keep the header and footer the same size and look on multiple pages."

    It's impossible to predict what size devices and browser settings your end users have.  Height is determined by content.  So where your footer lands will vary on long and short pages. 

     

    The width of your headers and footers is controlled by your CSS layout.  The CSS is placed in an external stylehseet to which all your HTML documents are linked.

     

    For consistency, I use PHP server-side includes for my sitewide headers, footers and navigation.  In order for this to work, your server must support PHP code and your parent documents (index, about, etc..) must have a .php file extension.

    https://alt-web.blogspot.com/2015/07/server-side-includes-with-php.html

     

    Dreamweaver also supports its own proprietary DW Templates and Library Items.  But neither of those work with other code editors. 

     

    Nancy O'Shea— Product User, Community Expert & Moderator
    New Participant
    October 5, 2020

    I did buidl my navigation bar and footer in the template and I have been trying to link it in one of my pages but it wont allow me to. A window pops up and says unbalanced body. 

    Inspiring
    October 2, 2020

    In Dreamweaver terms you can create a template: https://helpx.adobe.com/dreamweaver/user-guide.html/dreamweaver/using/creating-dreamweaver-template.ug.html

     

    There are also a multitude of ways to do includes, they vary based on your server/technology stack: https://css-tricks.com/the-simplest-ways-to-handle-html-includes/ 

     

    With regards to removing white space, the best way for us to help is to have you share the page in question or a sample page so we can see what is happening and evaluate the code.