Learnings of the Day Syndicate  
 
This section contains articles on things I've learned about DotNetNuke, Web Development, Graphics, and related topics. Ideally, I would add a new learned item everyday, but that seems highly unlikely.

Note: To learn about and download the Articles Module go here.

Something I've learned several times and have subsequently forgotten several times is that skinpath only works when your image does not specify runat="server".

When creating a skin, you often want to include images. This can be a bit tricky as DNN's friendly URLs makes it so that your path may be very different for the same page, i.e. www.efficionconsulting.com/default.aspx is the same as http://www.efficionconsulting.com/Home/tabid/1/Default.aspx. This means that most relative paths just won't work, i.e. /images/spacer.gif, image/spacer.gif, ... You can use more hard coded paths such as ~/Portals/0/_default/efficion/images/spacer.gif but that really limits flexibility as if you want to install the same skin as a site specific skin on a different DNN instance.

SkinPath is a great new feature where DNN will figure it out for you. Though I don't know why it won't work when runat="server is used"... Scott Wilhite has a nice write-up on this in this post.
  
For one of my clients, I needed to take their logo, shrink it down and place it against a dark brown background... easy enough it seemed. Since their main logo was dark in color, I had them send me a light colored version. It was an Adobo Illustrator file with a transparent background and I thought, "great, I'll just shrink it down as a gif with a transparent background and voila!".

But it was not to be... no matter what I did, the logo came out jagged and the text was unreadable... I talk to a Graphic Designer friend and he mentions anti-aliasing so I do my research and all becomes clear...

In order for an image to be anti-aliased, it needs to have a background color in order to blend it together with the other colors for the smoothing effect. With transparent GIFs, that can't happen as the software doesn't have a background color to blend.

And that's why most designers don't use transparent gifs much, they just don't look as good as a properly anti-aliased image... if you know the background color for the image, it's best to set that as the background in your image editing program and resize the image with that background.

Seems like opacity should be able to help out here... still more to learn...
  
Page 3 of 3First   Previous   1  2  [3]  Next   Last