Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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, ...Container: Do not create automatically DIV & SPAN-Tags and HTML-CommentsContainer: Do not create automatically DIV & SPAN-Tags and HTML-Comments
Previous
 
Next
New Post
6/6/2008 12:10 PM
 

DNN creates around my Modul in my Container.ascx always HTML Code like this:

<span id="dnn_ctr1071_ContentPane"><!-- Start_Module_1071 --><div id="dnn_ctr1071_ModuleContent">
    <span id="dnn_ctr1071_HtmlModule_HtmlModule_lblContent" class="Normal">

Module Content

</span>
<!-- End_Module_1071 -->
</div></span>

 

These HTML-Additions are useless for me and they make my HTML-table layout look bad in Internet Explorer (IE only).

 

So, how can I get these HTML-Code not automatically created in one special Container.ascx (or at all, if it doesn't cause any damage).

 

Thank you for reading this.

 
New Post
6/7/2008 8:53 AM
 

Unless you change the core there is no way to change this I think.

Apart form the fact that this div inside a span is not XHTML compliant it should not influence rendering in IE, unless you have some other HTML error on the page / in the container.

 
New Post
6/13/2008 10:29 AM
 

So, why does DNN generate such tags? Do they have any meaning?

If I validate the site I get only errors like these:
there is no attribute "ID".
NET-enabling start-tag requires SHORTTAG YES.
character data is not allowed here.

All these errors are not from my Skin, but made by DNN.

 

The problem I have:

I have a table. One <td>-tag has the size 162x229px.
If I add an image with this code I have noch problem: <td><img src="picture.jpg" width="229" height="162"></td>

But if I add a picture with a module the IE generates a break below the picture.

Does anybody have an ideo what I can do against it?

 
New Post
6/13/2008 6:26 PM
Accepted Answer 

If the gap is about the height of one line of text try setting style="font-size=0" for the td

or if the gap is a couple of pixels, style the image with display:block

Rob

 
New Post
6/16/2008 3:09 AM
 

Thank you Rob, style="font-size:0" in the container skin works well for me.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Container: Do not create automatically DIV & SPAN-Tags and HTML-CommentsContainer: Do not create automatically DIV & SPAN-Tags and HTML-Comments


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out