View Full Version : why is this include broken?


jlknauff
02-13-2005, 09:29 AM
http://www.jeremy-lang.com/sitemap2.php

I can't see what the problem is...

dilligaf
02-13-2005, 10:06 AM
I'm not sure what I'm supposed to be seeing but you've got two <head>'s and two <body>'s

jlknauff
02-13-2005, 10:08 AM
arggg
it's always something stupid...

jlknauff
02-13-2005, 10:12 AM
hmmm, still broken actually.
It drops the right menu below and far to the right

dilligaf
02-13-2005, 10:32 AM
??
#secondnav{
float:right;
width:185px;
margin:12px 0px 0px 0px;
font-size:100%;
}

jlknauff
02-13-2005, 10:35 AM
that is the part of the CSS for that part of the page, yes.

dilligaf
02-13-2005, 10:46 AM
I use tables so the positioning is a little new to me. You placed the includes below the table so it would be presented there unless dictated by your style sheet. If you're not using the style sheet to position the includes wouldn't you just place it above the table?

Forgive my css newbieness.

jlknauff
02-13-2005, 12:02 PM
actually the include puts the table into the page. It's pulled from sm-cont.php

ebizbuys
02-17-2005, 05:46 PM
That code doesnt look right. The include placement needs to be within the table structure doesnt it? Sorry I use tables also and rarely use div's

dilligaf
02-17-2005, 06:07 PM
That, the <div> placed in the css or in the html above the includes.... or?

jlknauff
02-17-2005, 06:14 PM
huh?

D, you confused me man ;)

dilligaf
02-17-2005, 07:07 PM
[QUOTE=jlknauff]D, you confused me man ;)[/QUOTE]It's a hobby (smiley here).

What I meant was it would seem as the code for the second nav would have to appear before the includes table either in the css file or in the html (and it didn't appear so to me either way).

Personally, I'd just do the site map in tables as you're using them anyway.

I'm assuming you tried just placing the code for the second nav above the includes for the table?

jlknauff
02-18-2005, 09:20 AM
Here's the problem.

The include is in the same place in the code as the center column is in the rest of the pages, so it *should* appear in the center and the other nav should appear next to it just like the remainder of the site.

The idea of the include is so that as I add new content to a rapidly growing site I can update one file and the pages that have a site map on them will not have to be changed. Granted, there are only 4 or 5 pages with a site map but still...it's the principle now :p

Thermit
02-18-2005, 10:23 AM
J, if we strip out some of the extra stuff, things are more clear and we get this...


<div id="container">
<div id="contents">
<h1>Site map</h1>
<h2>Jeremy Lang</h2>
<h2>Info for Men</h2>
<h2>Admin</h2>
<h2>Corporate bios</h2>
<h2>Other news</h2>
</div>
</div> [extra div end]

<div id="secondnav">
<h1>Men's products</h1>
</div>

</div>


You'll see that the div starts and ends aren't matching up, due to the extra div end that occurs before the secondnav div starts.

I think if you remove the one I marked in the code above, you'll get what you want...

jlknauff
02-18-2005, 12:12 PM
I'll have to take another look when I get home but if I remember correctly, taking out the extra div screwed something up-I don't know why. I'll see what I can find tonight.