Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wanting to nest a page in CSS

Status
Not open for further replies.

GladysPym

Technical User
Jan 6, 2003
76
GB
OK.

I'm converting this site:


At present, when you click, for example, 'Letter from the editor', then a very simple (bland and unattractive) html page gets introduced into a frame bottom centre.

Is there any way to reflect this in CSS without creating a full CSS page (not difficult, just faffy) for each of the papers - and there are many - which would need to be amended?

I'm guessing the answer is no, but thought I'd ask.

S
 
Sorry.

To reflect this, means, can I just embed the external page into a css page that doesn't change otherwise, (as with frames), or do I need to create a CSS page for each of the documents which are currently held in frames.

So, Let's say we have an index page, like the one on the site, and 3 letters.

The index page has a number of frames, top, left, and right.

Clicking a link on the left, a new page is put into the right frames, but the left and top remain the same.

If this can be reflected in CSS, then there would be a way - without using frames - to introduce the new content into the right hand side area without otherwise reloading the whole page.

If it can't, then I'll need to embed all the css data in a number of pages, one for each of the letters.

Hope this is clear.

S
 
You're still not being very clear. What is a 'CSS page', for example? Do you mean a bog-standard web page? If not, can you elaborate?

If all you want to do is style the pages loaded into the frame without having loads of CSS in each one, you could create a common style sheet and use the LINK element to include it in each page...

Or, are you trying to do away with frames altogether? Or perhaps something else? You still talk about this being 'reflected in CSS' - yet CSS is purely a mechanism to change the way the HTML on a page looks, not a mechanism for implementing web pages.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
OK.

So far my rewrite looks like this:

css is at
While the original site was frames based, this isn't.
What was the bottom right frame is now #rightcontent

What I was asking was whether, without going back to frames, I can embed data from another page into this non-frame page in such a way that the page doesn't need to be reloaded.
 
What I was asking was whether, without going back to frames, I can embed data from another page into this non-frame page in such a way that the page doesn't need to be reloaded.

Then the answer is 'yes' - but you'd have to use JavaScript to do so, which would make your site unusable to those people without JavaScript - including search engines.

If this isn't a problem, then forum1600 is probably your best bet.

Personally, however, I'd avoid both frames and JavaScript to load new pages, and just link to each page like a good old fashioned, traditional site. This doesn't mean you cannot use server-side scripting to cut down on the amount of duplication in terms of look-and-feel, however.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Yes you can load content into a single layout "template" page if you will.

so you have a single one of those, with the menus and what not, and load in the content such as the letter from the editor, and use your current CSS style sheet to style that content.

Dan said, you can use JS, which is not recommended, or you can use a server side language to import the content into your main "template' page.

The exact mechanism of this will vary depending on what server side language is available to you and is supported by the web server that will host this page.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top