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

Forum

Positioning of DNN Footer - CSS problem
Last Post 2006-11-01 03:56 PM by Lee Sykes. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
e onUser is Offline
Nuke Ace
Nuke Ace
Posts:42

--
2006-10-29 08:17 AM  
I am in the process of developing a DNN portal. I have implemented a horizontal nav bar that uses the HouseMenu Skin object (and in doing this I took valuable guidance from the video turorial for a horizontal House Menu). My Skin has 5 panes and the left hand pane carries an Adsense Vertical 'sksyscraper' ad (guidance from video tutorial #12 helped me in this!)

My problem is this:

If the length of content in the main (i.e. middle) content pane is longer the height of the left hand pane's vertical google ad unit then the footer text runs 'behind' the text of the main content pane. For an example of this in action see this page in my test environement (you may need to scroll down a bit to see the issue).

I appears to be a positioning issue and my knowledge of CSS positioning is not too sophisticated. I have tried to play with the CSS to correct this issue - but without success. The relevant CSS files are as follows:
Anybody had a similar problem in the past and manage to solve it? Any ideas?

Thanks,

Eoghano
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-10-31 09:52 AM  
Hello,

Looking at the source code, you have placed a clear: both in the CSS for
#footercontent
{
    clear: both;
    padding-top: 10px;
}

But, when looking in your skin.html code, you have:
<div id="footercontent">

</div>
<div id="date">
<p><span id="dnn_dnnCURRENTDATE_lblDate" class="SkinItem">October 31, 2006</span>
</p>
</div>
<div id="footer">
	<p><span id="dnn_dnnCOPYRIGHT_lblCopyright" class="SkinItem">© 1999-2006 www.CLUAS.com & individual writers as indicated per by-line.</span>
&nbsp;&nbsp;<a id="dnn_dnnTERMS_hypTerms" class="SkinItem" href="http://208.106.151.10/indie-music/A...aspx">Terms of Use</a>&nbsp;&nbsp;<a id="dnn_dnnPRIVACY_hypPrivacy" class="SkinItem" href="http://208.106.151.10/indie-music/A...aspx">Privacy Statement</a></p>
</div>
</div>
Notice: - You have a closing div tag after the "footercontent" tag - Do you need to move this closing div tag to surround all of the footer content?
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
e onUser is Offline
Nuke Ace
Nuke Ace
Posts:42

--
2006-11-01 10:17 AM  
Lee,

Thanks for this. I tried moving the DIV tag as you suggested but it did not work. I think the problem is somehow rooted in the fact that this is a 5 pane skin.

I tried various other variations on DIV tags and where each pane appears in the order of the DIVs but to no avail. I also added in a <div style="clear:both"> after the left and main cotent panes in the Skin's index.html page. Currently the code in the skin's index.html page resmebles the following:
 
<div id="mainbody">
        <div id="content">
            <div id="contentpane" runat="server" visible="false"></div>
        </div>
        <div id="sidebar"> 
            <div id="leftpane" runat="server"> ADSENSE CODE HERE</div>
        </div>
</div>
<div style="clear:both"></div><!-- end #main-body -->
<div id="sidebar-2">
        <div id="rightpane" runat="server" visible="false"></div>
</div>
<div id="footercontent">
    <div id="footerpane" runat="server" visible="false"></div>
<div id="date">
    <p>[CURRENTDATE]</p>
</div>
<div id="footer">
    <p>[COPYRIGHT]&nbsp;&nbsp;[TERMS]&nbsp;&nbsp;[PRIVACY]</p>
</div>
</div>

The problem can be seen on this page (scroll down to see the issue of the footer text appearing behind the main content pan, also the right hand pane is now just below the lower edge of the left hand pane, thanks I presume to the 'clear:both' property I added inline ).

Any insights? I am stumped. But think the right hand pane holds the key to a solution!

Cheers.

Eoghan
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-11-01 03:56 PM  
Hello,

I've just been looking at the CSS code, I think this could be the problem:

#content
{
position: absolute; left: 1px; width: 60%;

}

When you absolute position items it takes them out of the flow of the document, which is then likely to be the reason why your footer is so far up the page.

I removed those details in the web developers toolbar and the footer was then placed at the bottom of the page.

I would also remove the inline style that you have added. - I wouldn't recommend adding any inline styles in this way, you should always try to add CSS into your actual skin.css file.

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

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
RE: Friendly URLs Broken by Joseph Craig
I don't entirely understand this, but I'm glad you got things working.
RE: How to build Skins for DNN 6.x by Christopher Adamakis
Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
RE: Dnn local setup problem by imran shaikh
this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
RE: Module permission does not work! by Abraham Tameru
I created a special role for the user to administer the site. The user is not a member of the Admini
Dnn local setup problem by imran shaikh
Hi All i have just installed the new site files on my local computer set the connection strin
RE: Firefox has detected that the server is redirecting the request for this address in a way that will never complete. by imran shaikh
Hi i have the same issue Firefox has detected that the server is redirecting the request for thi
DNN nav issue by imran shaikh
Hi All This is imran i am using DNN 6.0 in which issue is that while i am refreshing the site nav
RE: Problem After Attaching/Detaching Database.mdf by Prakasam Srinivasan
thanks joe! But I have connect with database.mdf file in App_Data. I detach the database from
RE: Ventrian News Article by Collin Stefani
Posted By Joseph Craig on 2012-01-18 10:51 AM I'm not sure that you can with the built-in UI.
RE: Friendly URLs Broken by Vistalogix Corporation
Well, we figured out that the problem is related to .Net framework 3.5. Friendly URLs works fine und
RE: Problem After Attaching/Detaching Database.mdf by Joseph Craig
That behavior of running the installation wizard indicates a problem connecting to the database.
RE: Friendly URLs Broken by Vistalogix Corporation
Nope, just a straight-up DNN install and configured in Host -> Friendly URLs as described in my orig
Problem After Attaching/Detaching Database.mdf by Prakasam Srinivasan
I successfully installed DNN 6 on my local machine using IIS 7.5. Its working good. When I attach to
RE: Module Security permissions by Bhushan Gholap
Thanks for the reply!!! I would definitely contact sales engineer team of DNN.
RE: There's a tutorial for this somewhere by Eric W
The error I got was the Connection Error(s): Index #: 0 Source: .Net SqlClient Data Provider
RE: DNN 6 Modules Not Showing by Joseph Craig
Where can I see this? If you'd like to send me some login credentials so that I can look, use the c
RE: DNN 6 Modules Not Showing by Mike DeBaise
No, modules are set to all viewers/users. Just cant figure this out, it really doesnt make any sense
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds