IE specific doesn't work.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/31/2008 3:32:24 AM
Nux
Gravatar
Total Posts 183

IE specific css doesn't work.

Hey there,

little question: I have made my own skin, and off course I got bugs in IE. What else is new ;).
So I have inserted <portal:IEStyleIncludes /> in the master, and there is extra code for the IESpecific stylesheets.
But I don't see any difference with or without it. The result in html is:

<!--[if lt IE 7]>
<link runat="server" rel="stylesheet" href="http://..../IESpecific.css" type="text/css" id="IEMenuCSS" />
<![endif]-->
<!--[if gt IE 6]>
<link runat="server" rel="stylesheet" href="http://..../IE7Specific.css" type="text/css" id="IE7MenuCSS" />
<![endif]-->

Can it is because the link is marked as 'runat="server"'?

Stef

10/31/2008 6:03:38 AM
Gravatar
Total Posts 18439

Re: IE specific doesn't work.

Hi Stef,

runat=server must be there or it won't work.

Please note that position is important.

<portal:StyleSheet id="StyleSheet" runat="server" />
<portal:IEStyleIncludes id="IEStyleIncludes1" runat="server" />

In order to work the IEStyleIncludes must be below the main style sheets.

The IE7Specific.css file in your skin folder should only contain things needed to fix rendering in IE 7
The IESpecific.css file should only contain things needed to fix rendering in IE 6

I would try putting a border on something to make sure its working. You may also need to clear your browser cache periodically to get it to load the updates css files as you make changes.

Hope it helps,

Joe

10/31/2008 6:55:47 AM
Nux
Gravatar
Total Posts 183

Re: IE specific doesn't work.

Joe,

"runat=server" in pure html?
The ordering of the control are correct in my .master. I have it like this:

<portal:StyleSheet id="StyleSheet" runat="server" />
<portal:MetaContent id="MetaContent" runat="server" />
<portal:IEStyleIncludes id="IEStyleIncludes1" runat="server" />
<portal:Favicon id="Favicon1" runat="server" />
<link rel="StyleSheet" href="style.css" type="text/css" />

I have tried putting a border around a div, and it worked. So it's something very strange.
Man i hate IE :(

But please let me know why that runat tag must be in pure html.

Thanks
Stef

 

10/31/2008 7:02:16 AM
Gravatar
Total Posts 18439

Re: IE specific doesn't work.

Why do you have this at the bottom:

<link rel="StyleSheet" href="style.css" type="text/css" />

You should remove that. You are essentially adding the main style sheet again at the bottom and since its lower than the IE specific ones it overrides them.

Hope it helps,

Joe

10/31/2008 7:07:23 AM
Nux
Gravatar
Total Posts 183

Re: IE specific doesn't work.

Arg....

I didn't saw it in the pure html, cause it is putted after the favicon! Damn, thanks Joe.

And do you have an answer for that runat tag? :)

Thanks
Stef

10/31/2008 7:26:45 AM
Gravatar
Total Posts 18439

Re: IE specific doesn't work.

I guess I never noticed that its was rendering that runat=server in html. I don't think that should be there. I will remove it.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.