Helmut Granda schrieb:

I discovered something weird today. When I was creating my layout that contains includes for some reason my rules would not work properly only if the layout was like this.

-- code starts

----Main Layout

<div id=’header’>

Include ‘header.php’;

</div>

<div id=’content’>

Include ‘content.php’;

</div>

<div id=’footer’>

Include ‘footer’;

</div>

--End of Main Layout

--Sample Include

//header.php

<div class=’tagline’>Blah</div>

<div class=’logout’>Logout</div>

-- end of code

BUT! If I did this…

--code starts

----Main Layout

Include ‘header.php’;

<div id=’content’>

Include ‘content.php’;

</div>

Include ‘footer’;

---End of Main Layout


If you do it in this way, make sure you defined the div´s in the footer:

*The "index.php"/main-layout:*
-----------------------------------

require ‘header.php’;

<div id=’content’>

require ‘content.php’;

</div>

/require ‘footer*.php*’;/

---End of Main Layout



*The "footer.php":
--------------------------------------
*....
<div id="footer">
<?php ..... ?>
</div>


Hope to helped you out.

All the best,

Soeren


--Sample Include

//header.php

<div id=’header’>

<div class=’tagline’>Blah</div>

<div class=’logout’>Logout</div>

</div>

--end of code

As you can see as long as I added my “header” wrapper in the “header.php” the rules would work fine, but if I didn’t then the rules would break. Has anyone experienced this? Is there any specific reason why rules would fail with includes?

TIA

...helmut


******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to