Help - Search - Members - Calendar
Full Version: Externally Linked. . Divs?
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
caerr
Hello, im beginning to design a site which hopefully will one day be large with many sub-pages. i want to keep it as easy to change as possible and have therefore been using external style sheets and script files. how though would it be possible to externally link my navigation side bar, footer and header, as to be able to change it for the entire site quickly and easily? somehow to externally link a div? i have been thinking about using a javascipt function and document.write, but is it safe to assume that all visitors will have js enabled? or how is this done for large sites?


thanks for any help.
Cmain
This can be easily done with a PHP include().

There are many tutorials on this, just use Google. Here is the manual page:
http://us3.php.net/include/
caerr
well im afraid my server is not set up for php scripts. are there any other possibilities?
Colin
:S what server are you using?...
caerr
im using zappa.brainiac.com, which a friend of mine runs so im getting free hosting. is there a way i could do this with cgi or perl?



and btw, how can i create a min-height: 75%; attribute in css for content divs that will take up that minimum height but expand if necessary. i can accomplish this by default in IE, but only due to its glitch in css processing.


thanks again.
Colin
Uhhm you mean like what div to use...Do this:
CSS:
CODE
.wrapper {
width: 700px;
min-height: 600px;

that might work, just change the width to what your width is now and your min-height to however big you want it then before content put:
CODE
<div class="wrapper">
<!-- Other Content / Divs here -->
</div>

That might work, I am not the best in css tongue.gif
caerr
thats actually the very first thing i tried, but to no avail.


if it helps, my site, (still very much under construction), is Lloyd and Ballard inc.

i also just managed to fix my div centering problem. . . . . for everything but AOL, which until now, has matched IE in its display. what the hell. any ideas for that? haha.

i mind as well also ask, any ideas why firefox and some other browsers dont seem to read my css link styling?



thanks again
caerr
well ive now solved all of the above problems except for the original one about external divs without php or javascript or inline frames for that matter.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.