Hi, Strictly speaking this is really an "off-list" topic but here's my solution.
I generate my pages that require this using PHP. I create the basic template page in XHTML and then break down each section into separate files. I then add the PHP tags so that the page gets recreated correctly using the separate files. So a simple header.php file would look like <? $header = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"> <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <title>something in here</title> <style type=\"text/css\"> <!-- @import url(\"stylesheet.css\"); --> </style> </head>"; ?> Create a menus.php and footer.php in a similar way. So in this case my page8.php will look like this <? include 'header.php'; include 'menus.php'; include 'page8content.php'; include 'footer.php'; ?> <?echo "$header"; ?> <body id="page8"> <? echo "$menus"; ?> <? echo "$content"; ?> <? echo "$footer"; ?> </body> </html> and will load up all the separate sections. So when I want to update page8 then the only file that needs changing is page8content.php. I include the <body id="page8"> in the page PHP file so I can use this to highlight the current page but if you don't need this then put the body tag in the header.php file. If I add a menu item then I only change the menus.php file and add in a new pageX.php file and a new pageXcontent.php file. Everything else uses the newly updated files without any further changes. Hope this helps and gives you some ideas. Trevor ----- Original Message ---- From: Kaye <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, 4 June, 2007 4:55:36 AM Subject: [css-d] multiple similar pages with same navigation bar I am just learning CSS so hopefully I know enough to adequately explain what I am trying to do. I have looked at the example of a css layout with a header, footer, and two columns - the left one I want to contain a nav bar and the right one the different content on each page. The example I have been looking at is here: http://www.maxdesign.com.au/presentation/two-columns/final_fullwidth.htm My question is whether it is possible to turn this example into an external style sheet with the header, footer and left column content there and then just have each separate page's content (for the right column) in an html page that uses that external style sheet. I can't seem to make it work and am not sure if it's possible, or if I just haven't got it working right, or if I have some kind of major conceptual problem and this is just totally the wrong way to go about this. So is this a good way to go about this task, or is there some other way to use css to have multiple pages all with the same navbar (without duplicating it in each page)? Thanks for any suggestions. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
