473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Noframes version of page with overriding css stylesheets

Hi all.

I want to create a noframes version of a certain page (not written by
me),
that has three frames, each loading a page with few external
stylesheets.
If I copy the content of each framed page into a div on the noframes
page,
and put all the external links to stylesheets in the head, different
styles
override each other and the page looks like a mess.

So my question is:
Is there a way to create a noframes version of a page,
which will look exactly the same as the original, but with all
the content from different frames, each in separate correctly
positioned div,
and the correct style information from the external stylesheets
applied only to that div, and not to the whole page.
For example, if two different framed pages have stylesheets each
defining different body backgroung, I want each div with the content
of a corresponding page to have the correct background.

Hope that I explained myself well.

Thank you all very much for help.

Anna
Jul 20 '05 #1
2 1729
On 12 Oct 2004 08:04:21 -0700, Anna <an**@ubaccess.com> wrote:
Hi all.

I want to create a noframes version of a certain page (not written by
me),
that has three frames, each loading a page with few external
stylesheets.
Excellent decision.
If I copy the content of each framed page into a div on the noframes
page,
and put all the external links to stylesheets in the head, different
styles
override each other and the page looks like a mess.


You'll have to sort that out. I'd do the following:

1) Wrap each section in a div with an id.
2) Edit each of the three stylesheets so that, say, h2 {font: 120%
Helvetica, Arial, sans-serif;} becomes #menu h2 {font: 120% Helvetica,
Arial, sans-serif;}
3) References to the body element which do not apply to the whole page
need to be changed to refer to the id. So body {font-size: 100%} becomes
#header {font-size: 100%}
4) Be sure, though, to extract any styles which truly do apply to the
whole page and don't state them three times with three ids, just state
them normally. If something applies to two sections but not all, #menu h3,
#header h3 {font: 110% Helvetica, Arial, sans-serif;} works fine.

Jul 20 '05 #2
Thank you Neal.
This really helped.

Anna

Neal <ne*****@yahoo.com> wrote in message news:<op**************@news.individual.net>...
On 12 Oct 2004 08:04:21 -0700, Anna <an**@ubaccess.com> wrote:
Hi all.

I want to create a noframes version of a certain page (not written by
me),
that has three frames, each loading a page with few external
stylesheets.


Excellent decision.
If I copy the content of each framed page into a div on the noframes
page,
and put all the external links to stylesheets in the head, different
styles
override each other and the page looks like a mess.


You'll have to sort that out. I'd do the following:

1) Wrap each section in a div with an id.
2) Edit each of the three stylesheets so that, say, h2 {font: 120%
Helvetica, Arial, sans-serif;} becomes #menu h2 {font: 120% Helvetica,
Arial, sans-serif;}
3) References to the body element which do not apply to the whole page
need to be changed to refer to the id. So body {font-size: 100%} becomes
#header {font-size: 100%}
4) Be sure, though, to extract any styles which truly do apply to the
whole page and don't state them three times with three ids, just state
them normally. If something applies to two sections but not all, #menu h3,
#header h3 {font: 110% Helvetica, Arial, sans-serif;} works fine.

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: fartsniff | last post by:
hello all, i am using FRAMES on my PHP site, basically i am using just on frame with the entire site inside. this is mainly for cosmetics so that http://www.mydomain.com always is displayed in the...
11
by: annie | last post by:
Hello all. I am writing an XSL stylesheet that automatically converts a page with frames to a noframes equivalent of this page, using tables. I can get the positioning of each frame write in the...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
89
by: Randy Webb | last post by:
There is an updated version of the FAQ at: <URL: http://jibbering.com/faq/newfaq/> The changes/modifications to date are: 2.3 Corrected "span" to "spam". 2.3 Updated with a note about not...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.