Gradient background effect

D

Daniel

Good morning,

This is a 2 part question.

I have a web page composed of 4 frames (header, footer, navigation and
content). I have the following code which create a gradient background
effect on any individual webpage:

<body
style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');">

I there a way to apply it to the backgroup of all frames so that it is
seemless? I tried inserting it into the main page but it did not work. Is
there another approach that I can use?

Secondly, a while back I was told to stay away from Frames as they were not
always supported.... Does this concern still exist? From a compatibility
and best practices point of view what is the current opinion on Frames?

Thank you,

Daniel
 
T

Thomas A. Rowe

No, as each frame hold a individual htm page.

Frames are supported in all major browser, but you end up with problem such as your current one,
etc.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
P

P@tty Ayers

Thomas A. Rowe said:
No, as each frame hold a individual htm page.

Frames are supported in all major browser, but you end up with problem
such as your current one, etc.

Exactly. There's no problem with frames and any modern browsers, but there
are all kinds of hassles like the problem you currently have. If you weren't
using frames, there would be no problem adding a background to the whole
page (although I would do it with a simple .jpg rather than that disturbing
proprietary code!).
 
J

John Malone

1st.... That code for a gradient effect will only be seen in IE others do
not support the "Style=Filter"
So that "IS" a problem.... But you can get the same effect with a background
image. (doable)
http://www.xmas-i-am.com/test/gradent.htm
The code is on the page and if that isn't enough View | Source in your
browser to get it all.
Even the image is on the page for downloading.
Be creative and make your own new image so it's the way you want.


As for the Frames... They cause more problems than they solve.

--
John Malone
==============
| Good morning,
|
| This is a 2 part question.
|
| I have a web page composed of 4 frames (header, footer, navigation and
| content). I have the following code which create a gradient background
| effect on any individual webpage:
|
| <body
|
style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2',
startColorstr='#FFFFFF', gradientType='0');">
|
| I there a way to apply it to the backgroup of all frames so that it is
| seemless? I tried inserting it into the main page but it did not work.
Is
| there another approach that I can use?
|
| Secondly, a while back I was told to stay away from Frames as they were
not
| always supported.... Does this concern still exist? From a compatibility
| and best practices point of view what is the current opinion on Frames?
|
| Thank you,
|
| Daniel
 
D

Daniel

If 'FRAMES' are not the answer, then what approach would you suggest for
having a standard header,footer and nav bar areas and only have the content
area change/update as user navigate throughout a site?

Can a table do this? Can you load a sepearte htm within a cell of a table?
What about scrolling if htm pages are not all the same length?

Thank you,

Daniel
 
T

Thomas A. Rowe

You can use tables with FP Include Page component or if using FP2003 then consider using Dynamic Web
Templates.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
J

John Malone

You might want to look at this
It could give you ideas...
This is a list of all 14 courses for FrontPage.....
http://office.microsoft.com/en-us/training/CR061832701033.aspx
FREE!

--
John Malone
==============
| If 'FRAMES' are not the answer, then what approach would you suggest for
| having a standard header,footer and nav bar areas and only have the
content
| area change/update as user navigate throughout a site?
|
| Can a table do this? Can you load a sepearte htm within a cell of a
table?
| What about scrolling if htm pages are not all the same length?
|
| Thank you,
|
| Daniel
 
T

Trevor L.

Daniel said:
If 'FRAMES' are not the answer, then what approach would you suggest
for having a standard header,footer and nav bar areas and only have
the content area change/update as user navigate throughout a site?

I faced this problem also.
Can a table do this?
Yes, tables are useful.
Can you load a sepearte htm within a cell of a table?
No, but you can use an iframe and load an html file into this (see my Home
Page - "Open/Close News of this Site")
What about scrolling if htm pages are not all the same length?
This was the last problem I had to solve, i.e. what if pages are different
lengths ?

The solution was a combination of using <div>s styled with CSS and use of a
table with a transparent gif as a filler to make all pages a minimum length.

I am now thinking frames was easier, but look at the code on my site if you
wish
My index file is http://tandcl.homemail.com.au/index.html . All html and
CSS is at this level.
The JS is at http://tandcl.homemail.com.au/scripts
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top