You need to Register for free and Login to post a message in the forum.

Forum

Subject: Challenging problem for a DNN/CSS guru
Prev Next
You are not authorized to post a reply.

Author Messages
bmoffitt
Nuke Newbie
Nuke Newbie
Posts:1

20 Jan 2006 11:47 AM  

I've been setting up for first ever installation of DNN and after absorbing information from various sources, I've figured out most everything I've needed to know.  I've installed DNN 4.x and created my own skin and containers.  I'm having a few problems with my container, though.  I've created a container that has a translucent (CSS: opaque) background.  The background behind that has a watermark type of image on the page.  The transparency allows this image to show through the tinted background.  It looks pretty neat except for a few problems:

1. The visibility option doesn't work as it should.  Whenever I minimize and maximize a module, upon maximization, the original content of the module disappears until I refresh the page.  This isn't a huge problem because I can take away the button to minimize, except that the discussion module seems to minimize itself by default and whenever I maximize it, I can't see the discussion thread.  I've selected that particular module to maximize by default but it seems to make no difference (this happens in IE and Firefox).

2. Alignment is goofy in Firefox when viewed with the rest of the page.  I'm not familiar with CSS for Firefox.

3. Also in Firefox, when I view the page, the modules with the 50% transparent background also make the text on top of that transparent, so it's hard to read.

I discovered the Firefox problems when viewing on a friend's computer, and was disappointed after spending so much time to get what I thought was finally a perfectly functioning skin.

Here's the HTML code for the module:

<link href="container.css" rel="stylesheet" type="text/css">
      <TABLE class="containermaster_FH" cellSpacing="0" cellPadding="0" align="center" border="0">
        <TR>
          <TD class="containerrow1_FH">
            <TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
              <TR>
                <TD valign="middle" nowrap>[ACTIONS]</TD>
                <TD valign="middle" nowrap>[ICON]</TD>
                <TD valign="middle" width="100%" nowrap>&nbsp;[TITLE]</TD>
                <TD valign="middle" nowrap>[VISIBILITY][ACTIONBUTTON:5]</TD>
              </TR>
            </TABLE>
          </TD>
        </TR>
        <TR>
          <TD align="center" class="containerrow2_FH"><!--contentpane-->
     <div id="bg">
      <div id="transbox">
        
          <div>
            <TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
      <td colspan="2" id="ContentPane" runat="server" align="left" valign="middle"></td>
     <TR>
                <TD align="left" valign="middle" nowrap>[ACTIONBUTTON:1]</TD>
                <TD align="right" valign="middle" nowrap>[ACTIONBUTTON:2]&nbsp;[ACTIONBUTTON:3]&nbsp;[ACTIONBUTTON:4]</TD>
              </TR>
            </TABLE></div>
      </div>
   </div> 
    </TD>
        </TR>
       
      </TABLE>
     
<BR/>

Here's the CSS code (kind of messy, sorry):

/*
================================
 Container Styles for DotNetNuke
================================
*/  

.containermaster_FH {
 width: 100%;
 background-color: transparent;
 z-index: 0;
}
.containerrow1_FH {
 background-color:FFFF66;
 border-right: #339933 0px solid;
 border-top: #339933 0px solid;
 border-left: #339933 0px solid;
 border-bottom: #339933 2px solid;
/* moz-border-radius-bottomleft: 15px;
 moz-border-radius-bottomright: 15px;
 moz-border-radius-topleft: 3px;
 moz-border-radius-topright: 3px; */
}
.containerrow2_FH {
 /*background-color: #006600;*/
 background-color: #transparent;
 /*filter:alpha(opacity=40);*/
 z-index:1
 width: 100%;
 height: 100%;
}
.containerrow2_FH_verB {
 /*background-color: #006600;*/
 background-color: transparent;
 /*filter:alpha(opacity=40);*/
 z-index:1;
 width: 100%;
 height: 100%;
 padding: 6px;
}
/* This is the background image */
#bg {
 width: 100%;
 height: 100%;
 background: transparent;
 border: 0px solid black;
 border-style: none;
 }
 
/* This is the transparent box */
#transbox {
 width: 100%;
 margin: 0 0px;
 padding: 5px;
 background-color: #006600;
 border: 0px solid black;
 border-style: none;
 filter:alpha(opacity=50);
 opacity: 0.5;
 -moz-opacity:0.5;
 }
 
/* This is the container which set text to solid color.
position: relative used for IE */ 
#transbox div {
 padding: 0px;
 font-weight: bold;
 color: #000;
 filter:alpha(opacity=100);
 opacity: 1;
 -moz-opacity:1;
 position: relative;
 border-style: none;
 }
-->

The "verB" version of the containerrow2 style is for the version of the above HTML which doesn't have the extra divisions needed to create the transparent effect.

Thanks in advance for taking a look at this issue.  If you want to see the website that is using this skin, go to dnn.isufarmhouse.org.  You'll see the problems I'm talking about.

-Brett

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3352

22 Jan 2006 5:22 AM  
Hi Brett,

Nice design - It maybe a container problem. Could you email me your complete skin and container files packaged up in a zip and I will have a look around. - I will be out for the rest of today, but will get back to you on Monday if you haven't found a solution.

lee at dnncreative.com

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3352

24 Jan 2006 5:02 AM  
Hi Brett,

He Hey - I've managed to solve the problem! - Thanks for emailing me the skin & container - Certainly took a bit of thought! - I've emailed you the full zips of the skin and container.

First I formatted the html to ensure the html was fully validated ie. to ensure all text is in lowercase and all tags are well formed.

I then removed the div tags that you placed around the content area

From this I then edited the  containerrow2_FH class

and added the opacity details into that class.

the only elements you need are the filter: and the -moz-opacity: you don't need to add opacity:

There was the odd error in the css file with missing ";" so I fixed that up as well

So, you now find that Firefox & IE look the same. - The only problem you now have is that the text on both versions is now faded!

- So I first of all tried using a background image with an opacity but this didn't work

- So to solve this I changed the level of the opacity to 0.8 and 80 and used a lighter background colour of: #7FB27F; (This was the original colour at 0.5 opacity)

This gives a balance between the text and background colour with both values having an opacity. - Of course the background colour is slightly lighter, so you may wish to experiment between the opacity and the background colour, but the current setting is now readable.

I tested this in Firefox, IE6, IE5.5 - all work fine - IE5 doesn't have the opacity, but with the lighter background colour it still works well and the text is readable.

One thing I would really recommend is that you download firefox & as a minimum test your skin on IE & Firefox.

As a further tip - when you are testing the css, I always comment out big chunks of the css and then re-introduce small elements until I find the element that is causing the problem.

So I hope this helps, oh and I recognised those comments in the css! - it was nice to see that you've put the skinning video tutorials to good use!

Cheers,

Lee
 

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Challenging problem for a DNN/CSS guru



ActiveForums 3.7

Latest Forum Posts

Need UK Hosting by Liz
Hi,Not sure if this is the right place, but I am currently with Power DNN, and whilst I am a big fan...
RE: search not working by sanju_k1421
host==>admin search page that is set both limits min //max page reindex content button is ...
RE: No Access for me too by leesykes
hello,I have fixed the problem and I have given you a years access beginning from today December 2nd...
old skins for DNN 4.9.0 ? by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
Web.config Error by derpir
HelloI got this error, does this seem familiar to you? Can anyone say how to fix this error?Error 98...
No Access for me too by ristori
I suscribe for the magazine novembre 2008 13. I receive this ticket from Paypal : Prix de l...
How can I list our offices by country by bluehoops
Hi everyone!Apologies if this is a simple question, but it is driving me nuts.I run a small ISV and ...
RE: DNN Creative vs FireFoX V3 by DavidWSnow
It now looks like the error'ing extension is StumbleUpon and it effects FireFox on some, but not all...
Issue 39 Authentication by DavidWSnow
I was glad to see you address this topic. When LiveId was first added to DNN, I tried to implement i...
RE: (catalook) Itempane changes on product pages ?? by Vilaplana
Hi, I think the problem is been caused by your skin and not by Catalook itself.  In the main page, C...
Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
AppTheory
RSS Feeds