0
Why does CSS layout vanish when php include added?
New Here
,
/t5/dreamweaver-discussions/why-does-css-layout-vanish-when-php-include-added/td-p/3751
Aug 25, 2006
Aug 25, 2006
Copy link to clipboard
Copied
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>
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/dreamweaver-discussions/why-does-css-layout-vanish-when-php-include-added/m-p/3752#M187679
Aug 28, 2006
Aug 28, 2006
Copy link to clipboard
Copied
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"); ?>
<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"); ?>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
*Anton*
AUTHOR
New Here
,
LATEST
/t5/dreamweaver-discussions/why-does-css-layout-vanish-when-php-include-added/m-p/3753#M187680
Aug 29, 2006
Aug 29, 2006
Copy link to clipboard
Copied
Randy,
that's done it. Many thanks.
A
that's done it. Many thanks.
A
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

