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

 

--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

 

Reply via email to