Forum Moderators: not2easy

Message Too Old, No Replies

Frames to CSS

Using includes for header, sidebar and footer

         

calmseas

12:44 am on Jan 22, 2011 (gmt 0)

10+ Year Member



I'm in the middle of learning CSS and am stuck with the job of migrating a frames based design to CSS. If it is possible, what is the basic CSS technique to accomplish the following:

Assume a CSS designed page with a banner, sidebar and main content. When a link is executed off this page, how is it possible to keep the banner and sidebar the same and replace the main content with the contents of the executed link?

Appreciate any offered suggestions.

BeeDeeDubbleU

10:01 am on Jan 22, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If I am understanding you correctly it looks like what you are trying to do is design a frame based set up in CSS, which I don't think is the way to go. What I would do is design a layout and use this same layout on all pages. In other words the banner and sidebar would be common to all pages.

tbear

5:09 pm on Jan 22, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I tend to set the sidebar, header and footer (and any other elements it suits) as includes. This way, each time the page is called these are drawn from cache and load very fast, leaving content as the only new page elements that need loading fresh.

There are ways of replicating a frames page 'look' but I don't see the need for this, personally.

calmseas

7:58 pm on Jan 23, 2011 (gmt 0)

10+ Year Member



Got it!...............thanks for the inputs.