Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Is this a possibilty and how?

Is this a possibilty and how?
Thread Tools
Mac Elite
Join Date: Nov 1999
Location: Sapulpa, OK
Status: Offline
Reply With Quote
May 3, 2002, 10:32 PM
 
I have three frames, (title top frame, nav left frame, main body frame) in the body frame I have a layer with a small gradient that I want to stay put so the body content flows UNDER it like it's a drop shadow from the top frame.

Here's a pic of my idea.


is this possible? and if so how can I do it?

Mac Guru
"The young people of America need be taught that the only pride they may properly hold is in the content of their character, and the achievements they make. There is no legitimate pride or moral credit to be gained by virtue of sharing the same race with a great and admirable individual. "

My Website
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
May 3, 2002, 10:50 PM
 
What I think you really want is for the text to render in front of the drop shadow, not behind it; this will enhance the illusion. What you need to do is add this to the CSS for the page in the main content frame:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>body {
color: black;
background-color: white;
background-image: url(url-of-image);
background-position: top left;
background-repeat: repeat-x; <font color = brown>/* Only repeat horizontally */</font>
background-attachment: fixed; <font color = brown>/* Don't scroll with the page */</font>
}</font>[/code]
This will work for IE4 and up, anything Gecko-based, and Opera 4 and up. NS4 and IE3 will still show the gradient as you intended, but it will scroll with the page (looking like you just put a grey gradient at the top of the page, which isn't quite what you intended but still doesn't look bad).
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Grizzled Veteran
Join Date: Jun 2001
Location: Seattle
Status: Offline
Reply With Quote
May 4, 2002, 05:24 AM
 
I did the same thing at http://www.thewonderllama.com. Be warned that OmniWeb doesn't support background-attachment and that it does significantly slow down scrolling on some computers.
~BS
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:34 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2