getting the layout to stay the same with each page

liunx

Guest
ok. this is my website - <!-- m --><a class="postlink" href="http://laura.sweet-deceit.com">http://laura.sweet-deceit.com</a><!-- m -->
currently, when you open a different page on it, it opens in a new window. How do I get the new page to open inside the layout? You know with the navigation bar and the graphic still there. I know I can copy paste the layout code into each different page but I dont have the time. Is there a way with style sheets or something else where you can have the layout there for everypage without manually putting it into every page's HTML?
I've barely used style sheets so I'm not that experienced with them. If you could help, it would be much appreciated :)It's done server-side, with SSI, PHP or the like.
Opening text files as html works in IE but not in any other browser.yes. i know about txt files not working in other browsers...I just haven't gotten around to converting the files. But you say I would have to use PHP...does that mean I would have to make the layout a header so that it comes up on every page? and I'm not familiar with SSI at all.In PHP your template would basically look like this:
<?php
include('header.php');
include('menu.php');
?>
<div id="content">
<!-- content of page -->
</div>
<?php
include('footer.php');
?>

The header, menu and footer would be the same for each page.

SSI (<!-- m --><a class="postlink" href="http://httpd.apache.org/docs/howto/ssi.html">http://httpd.apache.org/docs/howto/ssi.html</a><!-- m -->) is similar but offers less scope for dynamic content.ok. I've almost got it. This is what I have now- <!-- m --><a class="postlink" href="http://laura.sweet-deceit.com/linkme.php">http://laura.sweet-deceit.com/linkme.php</a><!-- m -->
I'm trying to get it all aligned with the main text box on the left and and nav. bar on the right.
Here's my div. layer stuff for each

nav bar-
<div id="menu" style="position:absolute; left:510px; top:309px; width:225px; z-index:5;">

main text area-
<div id="leftmenu" style="position:absolute;left:0px;top:0px;z-index:5; text-align: left; padding: 4px; height: 479px; overflow-y: auto; width:450px; background-color: ccffff; border: 1px #000000 solid; font-family: veranda; font-size: 7pt; color: #6699ff;">

The nav bar is in the right place. I'm just trying to move the main text are. I've tried a bunch of different things like changing the position from absolute to left and so on, and adjusting the numbers. nothing ever works.

Can you help?Look at the source: there's a load of images outside the closing </body></html> tagsOriginally posted by Fang
Look at the source: there's a load of images outside the closing </body></html> tags
I dont understand why it would be doing that. This is what the file looks like...the one I uploaded into my server


<LINK REL=stylesheet HREF=http://www.webdeveloper.com/forum/archive/index.php/"style.css" TYPE="text/css">
<?php
include('header.php');
include('menu.php');
?>
<div id="content">
<b>Link Me</b>
<p>
Link back to <a href=http://laura.sweet-deceit.com>http://laura.sweet-deceit.com</a>
<p>
Layout Related-
<br><img src=http://www.webdeveloper.com/forum/archive/index.php/"scar2.jpg"> <img src="scar3.jpg">
<p>
Other-
<br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"s1.jpg"> <img src="s2.JPG"> <img src="s5.JPG"> <img src="s3.jpg">
<p>
Previous layouts-
<br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"th_button2.gif"> <img src="th_247e39dd.jpg"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"don.jpg"> <img src="dar.jpg"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"th_BUTTONNUM1.jpg"> <img src="th_BUTTONNUM2.jpg"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"th_BUTTONNUM5.jpg"> <img src="th_BUTTONNUM6.gif"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"th_BUTTONNUM3.jpg"> <img src="th_BUTTONNUM4.jpg"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"th_sm.jpg"> <img src="th_sm2.jpg"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"th_button1.jpg"> <img src="th_button3.jpg"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"arival2.JPG"> <img src="arival3.JPG"><br>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"sm1.JPG"> <img src="sm3.JPG">
</div>
<?php
include('footer.php');
?>
</body></html>


-and would the fact that there are images out side these tags cause for the text areas not to align correctly?You really need to validate the html (<!-- m --><a class="postlink" href="http://validator.w3.org/check?verbose=1&uri=http%3A//laura.sweet-deceit.com/linkme.php">http://validator.w3.org/check?verbose=1 ... linkme.php</a><!-- m -->)
 
Back
Top