Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: include problem

  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    include problem

    i have a include page at the top of each of my pages ( thanks DanInMa for your help on that) now i am having a small problem the include page loads perfectly how ever it has a dropdown menu at the bottom that is working however it drops down below where the page beging is there a spacing or something i need to use i have tryed <p > on the page thinking it would extend the page lower but didn't work any ideas?

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    sounds liike and html and/or css issue. can you show the source code of of a page from browser ( after its been processed by php)

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is the websight i have been working on i have not edited much yet because i was trying to get this to work first
    http://jjshed.site11.com/test.html

  • #4
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    as you can see the menu is droping below where the include page stops
    got the menu from dynamic drive

  • #5
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Quote Originally Posted by jj72ny View Post
    as you can see the menu is droping below where the include page stops
    got the menu from dynamic drive
    Not sure what you mean exactly, looks fine to me. There is a problem with your code though, you have 2 <body> and </html> tags

    Code:
    </div>
       </body>
    </html>
    <p>
    <p>
    <p>
    <p>
    <p>
     <h1>this is test html</h1>
     <p>Some text.</p>
     
    </body>
     </html>

  • #6
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    after removing the </body> and </html> from the include page and the <html><body> from the target page it worked perfectly
    thanks yet agin

  • #7
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    awesome! glad it worked out for ya . Always remember when using includes the content of the included file is added directly to the page as if it was there the whole time


  •  

    Posting Permissions

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