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, ...Container CSS when using IEContainer CSS when using IE
Previous
 
Next
New Post
3/11/2010 1:46 PM
 

Hello all!

This is my first post! :) I am creating a skin package for my work and I am having trouble attaching a CSS when the browser is IE. The container skin looks fine in FF and all, but not so much in IE (no surprise). So I am not sure what to do? I know for a skin file, you have the STYLES object and I tried inserting that into my container's skin.html file, but when I parse it I get an error:

DotNetNuke.Services.Exceptions.PageLoadException: Unable to cast object of type 'ASP.portals__default_containers_xxxx_v1_standard_ascx' to type 'DotNetNuke.UI.Skins.Skin'. ---> System.InvalidCastException

So I go over and check the container's skin.ascx file and the tags for Style is register and the object also generates the <dnn:STYLES > tags...so I tried a conditional statement in the container's skin.html file so see if the container will pick up the stylesheet that way after parsing, and it does.

So now I am at lost as how to attach this additional style sheet for my container when the user's browser is IE so that it will display correctly. Any help would be great appreciated.

Thanks!

-Kim

 
New Post
3/11/2010 3:16 PM
 

Kim,

What doctype are you using for the skin? It's extremely rare that I run into an IE specific problem these days that can't be fixed without the need of a unique CSS setting.

It may help if you could provide a link to an example of the container in action so we can see first hand what the issue is.

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
3/12/2010 10:39 AM
 

Rick,

Hey there! Thanks for helping out. I am not sure of the doc type that is being used for the containers?

I didn't come across a setting for it anywhere or changed it. But in my skin folder, there is a doctype.xml and in there I added

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/html4/strict.dtd

in addition to the one already there.. which was the 1.0 Transitional.

As far as a link goes, I don't have one to provide for you because it is on the intranet of our work but I can provide screen shots and hope this will suffice. Were you wanting screen shots of the error, or of what the container looks like between FF And IE?

-Kim

 
New Post
3/12/2010 11:12 AM
 

Kim,

If you can post a screenshot of the containers so we can see the difference between browsers that would be great.

I always work with an XHTML doctype, you should try changing this and seeing if that helps at all, you'd be surprised at what the doctype can fix when it comes to DNN. Also, have you created a working sample of the container just in HTML and CSS and cross browser tested this? I like to work all the HTML and CSS and browser testing before moving anything across to DNN, just because it's much easier to make changes through dreamweaver, and then simply refreshing rather than having to upload and parse...

If you can provide the screenshots, I'll see if I can help.

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
3/12/2010 12:34 PM
 

Rick,

 Here are the screen shots

Here it is in FF: http://screencast.com/t/YmExY2I2Yzk
and in IE: http://screencast.com/t/MzQxNzFlNW

As you can see, the top is cut off in IE. I

I have never really worked with doctypes before, I will research it and see what I come up with. And yes I am working locally right now through visual studios with the skin so that I don't have to upload and parse everytime.

Thanks,
-Kim

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Container CSS when using IEContainer CSS when using IE


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