Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Graduated Skin & Container Backgrounds using DX Image Transforms Graduated Skin & Container Backgrounds using DX Image Transforms
Previous
 
Next
New Post
2/5/2007 11:35 AM
 

Ho Ho Ho
I have just realised that DX Transforms can be applied to skins and containers.
 
Putting a line such as this into the css - in this case a container;
 
.containermaster_Orange {
 width: 100%;
 filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#B5FF95', EndColorStr='#ECC1E9');
 border-right: #fee5bf 2px solid;
 border-top: #fee5bf 0px solid;
 border-left: #fee5bf 2px solid;
 border-bottom: #fee5bf 2px solid;
 }
 
Will give you a graduated background with no pesky images.
The Gradient Type can be set to 0 - vertical or 1 horizontal.
 
I believe that like many of these effects this will only work in IE (but my logs still say thats over 85%)
All about it on MSDN
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/filters/basicimage.asp

The "ShowMe" buton on this Ms page also provides examples of using an alpha channel to futher modify.

Never seen this subject come up here so thought it worth a quick post.


Mutate and Survive
 
New Post
2/5/2007 5:14 PM
 
You are right, its' IE only, non W3C standard and you shouldn't use it IMHO.
Why wouldn't you use a background gif?
That's W3c compliant....
 
New Post
2/5/2007 5:46 PM
 

Hi Tim

I quite agree, not for most public sites or use but I had needed to provide a graduated BG for an intranet.
The problem with a gif (and why I tried it) is that it does not resize with the page and keep the same start and end colours without complex tables and even then . .

I have seen skins on other DNN sites using this "technique" so I guess this thread has informative value for others.

Thanks for putting the other side of it.


Mutate and Survive
 
New Post
2/5/2007 5:58 PM
 
If you know everyone will use IE it could be a solution.
Could you explain the gif background problem a bit more (or show me an example)?
I'm interested in what limitation you found.
 
New Post
2/5/2007 7:26 PM
 
Hi Timo
 (sorry about the Tim)
 
 If I wanted a graduated background for a fixed size table, cell or page its easy - a thin gif of the required size and repeated in the chosen direction.
 For example: a 200px table would have a 200 px image to fit it and the colour graduation would take place between the start and end colours in the image. The middle 100px would typically be taken up by the transition.
 
 If this same gif is used on a 100px table you see from px1 to px100 and lose the finish colour.
 The DX method scales and renders the whole colour range.
 Hope this makes sense.
 
 The reason I thought it was worth posting was this is simple, looks good and fails quietly in other browsers.
 IMHO it has more uses than the "similar" coloured drawbars that plagued the web for a while - with about the same significance.
 I suppose the other point may be that some people might do a repeating gif as an embedded style and may have more difficulty doing this in css.
 
 In any case it has provided a nice creative distraction to at least half of the work I had planned for today.
 Hooray !

Mutate and Survive
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Graduated Skin & Container Backgrounds using DX Image Transforms Graduated Skin & Container Backgrounds using DX Image Transforms


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out