View Full Version : web layout in CSS...


.:morpheus:.
10-07-2004, 02:27 PM
Hi, I only been learnin html for a short while but im getting quite good at it now only Im always changing my webdesign layout. I have many many pages setup on my website, normally at least 60 and this website will still be very incomplete - in terms of content. What I would like to know, that instead of using PHP includes or Iframes or SSI, is it possible to input your webpage layout into the CSS so that all you have to do is change the CSS and the page changes. I always have one or two main content boxes full of lots of text, it is the content I would like to keep the same, but only anything else around it to change. Only editting one CSS file would make this alot easier than renaming all files to PHP or SHTML for example.

But...is it possible to put your main layout into a CSS? If so, how can you achieve it...

Thanks very much for any help

Monkey Bizzle
10-07-2004, 03:56 PM
you have to plan it out very carefully but it can be done... check out this page for the very very basics of making a layout with CSS...

http://www.lissaexplains.com/

here is a website who's layout is done entirely with CSS... you can click on the different designs on the right and it loads a new style sheet. this site demonstrates just how much power you can have over your layout using CSS.

http://csszengarden.com

pb&j
10-07-2004, 06:37 PM
css will format the various areas, so essentially, if you have your things contained into their own div areas... menu, main content, and so forth, you can change the css to adjust the formatting and positioning as you desire. the csszengarden link in the previous post is a very good example of this.

css however cannot really do the same job as an "include" but it can do something similar in a different sortof way.

Monkey Bizzle
10-07-2004, 07:27 PM
derrr... i gave you the link to lissa's main site... i meant this one for the CSS stuff

http://www.lissaexplains.com/css.shtml