September 18th, 2003, 10:13 AM
CSS and php's include?? Best way??
Trying to make a tabelles site. Going to start with setting everything absolute. Done this in footer.php which i include in
Now how do i set the included footer.php relative to some div i have in indexDev.php? In a way that the included footer.php is some 'vertical' distance from the content in indexDev.php
You understand what i mean?
any tips on this subject?
Last edited by D-flyer; September 18th, 2003 at 10:20 AM.
September 18th, 2003, 10:17 AM
September 18th, 2003, 10:30 AM
Yep, i know.
But that's is the next step. Where i will create classes for the div and combine them where nessecary
And use @import for netscape issue.
Your way is defenitly very good but i still have the issue:
i want something like this:
right now i have css in footer
But when it get's included it is over the header.php of course. So how do i set in way that it will take the end of content as the beginning.
<div id="btn_sitemap" style="position: absolute; left: 50px; top: 11px; width: 50; height: 20px; z-index: 2"><img src="images/btn_sitemap.gif" width="50" height="20"></div>
Pfff i hope you understand me
Im interested in this too if anyone has a hint or two for us?
Why dont you just use a globle style sheet like drgroove said and set it to include in the header with <link rel="stylesheet" type="text/css" href="style/style.css"> in the <head> and then all styles are controlled from there. There is no point that I see in having seperate style allocations. Not unless I'm missing the point. Once the all the css tags are set in the style sheet you then just use <div id="'####"> tags
I had a look around today and the best way I can find of doing what I wanted (and I hope what your talking about too) is to include a <div> above and a </div> below where you do the php include on the index page.
The included pages should then be relative to the divs that are set in the index.php page and not to the top of the page or to divs in other included pages.
Hope this makes sense.