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, ...Control Panel adds Top Margin to body but from where?Control Panel adds Top Margin to body but from where?
Previous
 
Next
New Post
8/10/2017 2:36 PM
 

Hi, 

I am currently trying to implement a Telerik Drag and Drop Radgrid onto a page within our DNN site but am experiencing a problem whereby when dragging the items around they do not line up with where you would expect. 

I have tracked the problem back to a 38px margin-top on the body element of the HTML. I can see this within the inspector as an inline style (can therefore not see the source):

I can understand that this margin is needed to stop content hiding beneath the top admin bar but it is causing havoc with the RadGrid and so I'd rather change this to padding instead of margin unless anyone has a better approach?

It seems the value differs slightly as sometimes it is 36px sometimes 38px and so I cannot simply override this in the skin files. 

Has anyone any idea where this margin top is coming from and how I can go about changing it to some padding instead? This would mean the content would still start after the admin bar, not beneath it and it would not mess with the RadGrid

Thanks, 

Scott

(CMIS)

 
New Post
8/15/2017 12:01 PM
 
Which DNN version are you using?
Please note that DNN is currently phasing out the use of Telerik controls in the framework

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/15/2017 1:48 PM
 

Hi Sebastian, 

We are on DNN 07.04.01 (280).

Yes we are aware of the phasing out of the Telerik controls however we actually have our own license with Telerik and so will be continuing to make use of their controls for the foreseeable.

Scott

(CMIS)

 
New Post
8/15/2017 2:30 PM
 
unless it is stated in the Skin source, the margin might be added by core framework code

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Control Panel adds Top Margin to body but from where?Control Panel adds Top Margin to body but from where?


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.

Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out