Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Container: Do not create automatically DIV & SPAN-Tags and HTML-Comments
Previous Previous
 
Next Next
New Post 6/6/2008 9:10 AM
Resolved
User is offline acquire
10 posts
10th Ranked


Container: Do not create automatically DIV & SPAN-Tags and HTML-Comments 

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 5:53 AM
User is offline Timo Breumelhof
1693 posts
5th Ranked




Re: Container: Do not create automatically DIV & SPAN-Tags and HTML-Comments 

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.


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 6/13/2008 7:29 AM
User is offline acquire
10 posts
10th Ranked


Re: Container: Do not create automatically DIV & SPAN-Tags and HTML-Comments 

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 3:26 PM
Accepted Answer 
User is offline ROBAX
1851 posts
5th Ranked


Re: Container: Do not create automatically DIV & SPAN-Tags and HTML-Comments 

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 12:09 AM
User is offline acquire
10 posts
10th Ranked


Re: Container: Do not create automatically DIV & SPAN-Tags and HTML-Comments 

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

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Container: Do not create automatically DIV & SPAN-Tags and HTML-Comments
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com
Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP