Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Why does CSS layout vanish when php include added?

New Here ,
Aug 25, 2006 Aug 25, 2006
I am developing a mid sized web site using CSS layout, which has a persistant nav menu throughout. Seeing that theere is a pretty good chance this will be amended, I have decided to treat this element as a php include file.

When I add the php include into a main page, the CSS layout goes nuts. Within the design view of Dreamweaver, everything below the include point disappears, but works fine through a browser from the testing server.

I guess this is not a fault, but as a designer, it is difficult, and disconcerting to work with pages when half the page is missing.

Am I missing something.??


<div id="nav">

<?php include("menu.php"); ?>

</div>
TOPICS
Server side applications
449
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2006 Aug 28, 2006
Make sure that your menu.php file does not have <html>, <head>, or
<body> tags.

HTH,
Randy


> When I add the php include into a main page, the CSS layout goes nuts. Within
> the design view of Dreamweaver, everything below the include point disappears,
> but works fine through a browser from the testing server.
>
> <?php include("menu.php"); ?>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2006 Aug 29, 2006
LATEST
Randy,

that's done it. Many thanks.

A
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines