www.webdeveloper.com
Results 1 to 3 of 3

Thread: <!--#include virtual not showing up

  1. #1
    Join Date
    Dec 2005
    Location
    Austin, TX
    Posts
    25

    <!--#include virtual not showing up

    Hi all,

    It's been a while since I popped onto this forum, but I've hit a wall in trying to solve this problem. My website includes a menu and a footer using SSI (the <!--#include virtual="whatever.html"--> command).

    The menu shows up. The footer does not. The code lines look identical. Can someone please take a look at my HTML or CSS and tell me why? You can view the source code on the live page, HERE.

    Thanks!

  2. #2
    Join Date
    Aug 2006
    Posts
    1,906
    I think the includes are working fine, but the problem you're seeing may be because of your multiple doctypes, headers, body tags, etc. You can only have ONE such structure in any file, and it looks like you're including all that stuff in each of your includes. Look at "view source" of your web page to see what it's looking like...

    Dave

  3. #3
    Join Date
    Dec 2005
    Location
    Austin, TX
    Posts
    25
    Thanks! I didn't know that. I got rid of the extra tags in the external HTML files, but the problem is still there.

    UPDATE:
    I figured it out. It seems like one position:absolute was fighting with another position:absolute, I guess. I'm still not sure why it worked, but here's what I did (in main.css). I got rid of the positioning in here:
    Code:
    .first {   
      position:absolute;
        top:160px; left:0px;
      padding:0px;
      border:1px solid purple;
      margin:0 220px 0px 0;    /* alternative: set this to 0 and make onecol, twocol 42% */
      overflow:hidden;
    }
    IIRC, I added position there in the first place because the sidebar got cut off if I resized the browser window. Now it seems to work fine. Mysterious, but that's how a lot of this stuff is to me.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles