Need
DNN Support
?
DeskPal.com
Learn DNN / DotNetNuke
Login
Subscribe to DNNCreative
Home
Subscribe
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
Search
Search
Home
Subscribe
+
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
You need to
Register
for free and
Login
to post a message in the forum.
Forum
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Forums
>
DotNetNuke®
>
DotNetNuke® Questions
skin objects and the css block model
Last Post 08/28/2010 11:29 AM by
Joseph Craig
. 1 Replies.
Sort:
Oldest First
Most Recent First
Check this box to subscribe to this topic.
Prev
Next
You are not authorized to post a reply.
Author
Messages
Bo
Nuke Master
Posts:215
08/25/2010 12:20 PM
Hello There, My question is in regards to using CSS styles like margin-top and margin-bottom to style the skin objects. In my situation I have a footer with a copyright notice to the far right in the footer area. The way I have structured this is to use div tags that float to the left inside a larger div tag container which gives me full flexibility using such css attributes as margin-top since a div tag is a block level elemnt. My problem is I am able to move the top margin or padding of all my footer content except the copyright info which is generated dynamically via the copyright skin object and populated via admin>sitesettings in dotnetnuke. What I am guessing is the problem is that the dynamically driven copyright info executed at runtime of the dnn application generates a span tag (an inline object) however this span tag is still encapsulated within a div tag that floats to the left which surrounds it. I can float this copyright info, style it in regards to color, font-weight, even adjust the right and left padding or margin of the text but for some reason even though I am adjusting the div tag id that encapsulates this skin object I still have no success adjusting the top margin even using a positive integar to bring the words down a little bit. This is needed because on this same footer my client wants a logo that is larger than the text that proceeds it and the text proceeding it must be flush with the middle of this logo not the top of it so I figured I could use a margin-top or padding-top css property. This worked great with the rest of the footer including the logo which was a hard coded img tag encapsulated in a div tag but this dnn copyright skin object no matter what I do does not want to allow me to invoke the margin-top property of css. I don't know if it is do to the fact that there is a runat="server" attribute in this tag and if that causes the top and bottom part of a block elment box model to go bonkers when a runat property is encapsulated within a div tag or if it is something else but if you have any ideas of what could be causing the full spectrum of block element css properties not to work on a block element of html like the div tag in which a skin object with the special runat="server is part of the objects attribute I would greatly appreciate it. Oh and by the way when asp.net parses this skin object it spits out a span tag but that span tag is still encapsulated with in the block level container which is floated within it's larger container so still seems like the blocked element div would be the element that took precedense over the inline elment span which by the way I even tried to turn this into a block level elment within the context of its class name attribute by creating a span.copyright { display:block; } and still no luck. Thanks again in advance, Bo
Joseph Craig
DNN MVP
Posts:11667
08/28/2010 11:29 AM
You are correct. The COPYRIGHT skin object uses a Label control, which renders as a span. The entire copyright object shows up in the page as something like
< span id="dnn_dnnCOPYRIGHT_lblCopyright" class="SkinObject" >Copyright 2007 by blah blah blah< / span >
You can always remove the COPYRIGHT skin object from the skin and insert your own copyright notice. For one site, I placed a Text/HTML module in the footer and used this as a copyright notice:
© Copyright 2007-[Date:Now|yyyy] blah blah blah
With token replacement used in the module, this results in the date being shown as 2007-2010. After the first of the year, this will be 2007-2011 without having to do anything.
Joe Craig,
Patapsco Research Group
Complete DNN Support
You are not authorized to post a reply.
Special Bonuses
--Subscriber Bonuses
--Readers Offers
Users Lounge
--Announcements
--DNN Creative Articles
--Everything Else
--Feedback, Suggestions and More
--Membership
--Site Review Please!
--Testimonials
--Podcasts
DotNetNuke®
--DotNetNuke® Questions
--Modules
--Modules - What's needed?
--Quick Tips
Hosting
--DotNetNuke® Hosting Providers
Skinning Toolkit
--Skinning Toolkit
UK DotNetNuke User Group
Forums
>
DotNetNuke®
>
DotNetNuke® Questions
Latest Forum Posts
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Billed for subscription that was canceled
by Ryan
I was just billed for a subscription that was canc eled / inactivetive how do I get a refund for th
Meta Title and Meta Description are not showing properly
by DNN User
Hi, On my site the meta title and meta descriptions are not showing properly. It's showing the m
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
DNN Platform import site optio
by Melanie Weaver
Is it possible to import site template in DNN Platform 8.0? We have internal Evoq Content 8.1 tha
Events Module for DNN V5?
by Tugboat
Would anyone have a download link for the version 5.0.3 Events Module? Thanks!
"Ghost" TabID Number?
by Tugboat
Hi! I have a portal instance with multiple child portals and on one of the child portals, there i
RE: DNN Load Testing
by ayman sharkawy
Hi. Have you already implemented a site using the DNN . And how the performance of the site and its
Publish All Pages
by NSUOK
I'm using DNN Evoq Content Basic 8.2.0. When I make the HTML Pro module display on all pages, I h
Simpler profile needed in 9.2.2
by Donald
We are upgrading a DNN 4.8.4 site to DNN 9.2.2. On 4.8.4, the top bar shows the user’s name. If yo
How to link from dnnmodal popup to web site page?
by Donald
Hello all. I am using a dnnmodal.show popup. The popup works correctly, showing the content that I
RE: Document Collaboration
by Nick Davern
That feature would be super beneficial for our needs as well! Does anyone have an update as to if th
RE: DNN 9.2, how to set default theme?
by Andy Stephenson DNN Creative
you do that under "Manage/Themes". Note the highlight blue border around the default container and d
DNN 9.2, how to set default theme?
by Donald
Please disregard, found Manage Themes I cannot find how to set a default portal theme in DNN 9.2
RE: Looking for DataSprings Dynamic Forms
by Andy Stephenson DNN Creative
Your best chance would be to contact Chad Nash @ http://www.datasprings.com/
Looking for DataSprings Dynamic Forms
by Jakir HM
Looking for DataSprings Dynamic Forms 3.4 for DNN 4.x 5.x for my site (https://themasters2018s.com/)
RE: Help with Cycle Image Carousel not displaying images
by peter
I had the same problem with the Will Strohl Content Slider after upgrading to DNN 9.1 The above an
RE: Object reference not set to an instance of an object
by Andy Stephenson DNN Creative
Check this one might be useful: http://www.dnnsoftware.com/answers/im-tryin-to-move-my-site-to-pr
Used
By
Testimonials