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...Administration ...Administration ...HTML module blows upHTML module blows up
Previous
 
Next
New Post
6/4/2007 3:40 PM
 

Hey, I was creating an html module with tables and rollover graphics in DW first and took the main table code from DW and placed it in the html module and everything was out of alignment. I tried to recreated the problem outside of DNN in DW and was able to just by deleting the html, body and header tags. I know I can't put those in an html module, right? I made sure there were no th tags or anything like that. I'm not even concerned about making the rollover script work at this time. I just want to line things up. All my heights and widths are set correctly and everything is aligned top and left. There's 0 borders, cellspacing and cellpadding on all tables. Any clue how to fix this?

I really appreciate your help. I've been messing with this all day and finally figured out it was happening only when I removed the html, body and header tags, which I thought I needed to do. What am I doing wrong?

Thanks,

Marianne

 

 
New Post
6/4/2007 5:56 PM
 

without seeing your html, I am afraid it would be nearly impossible to help.

Couple of things, though - if you are using DW for your development grounds, make sure to a) copy only stuff that is between BODY tags, b) add any scripts and styles to Advanced Settings > Header area of the HTML module settings screen (it'll get stripped out of HTML module otherwise to protect against faul markup). Inline CSS can be left where it is, though. DW loves to add style tags to style your markup, so when it gets stripped by HTML module, your stuff might look different...


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
6/4/2007 9:43 PM
 

One thing I noticed really made a difference outside the body tag is the first DOCTYPE line.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Without it the whole thing blows up. What do I need to do within the body tag to make sure the code is read right? I had it speced to XHTML-transitional compliant. Is that the problem? What html code standard should I go by?

What do I need to do to make these tables and cells lign up? Here's the code between the body tags.... Thank you for your help!

<table width="348" height="370" border="0" align="left" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td align="left" valign="top" scope="col"><div align="left"><img src="top.png" alt="top" name="top" width="348" height="21" border="0" align="left" id="Image1" /></div></td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" align="left" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td width="62" align="left" valign="top" scope="col"><div align="left"><img src="apply.png" width="62" height="58" border="0" align="left"></div></td>
                        <td width="286" align="left" valign="top" scope="col"><div align="left"><img src="otherbuttons_03.png" alt="nothing" width="286" height="58" border="0" align="left" /></div></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" align="left" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td width="62" align="left" valign="top" scope="col"><div align="left"><img src="otherbuttons_04.png" alt="nothing" width="62" height="61" border="0" align="left" /></div></td>
                        <td width="59" align="left" valign="top" scope="col"><div align="left"><img src="prequalify.png" width="59" height="61" border="0" align="left"></div></td>
                        <td width="227" align="left" valign="top" scope="col"><div align="left"><img src="otherbuttons_06.png" alt="nothing" width="227" height="61" border="0" align="left" /></div></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" align="left" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td width="121" align="left" valign="top" scope="col"><div align="left"><img src="otherbuttons_07.png" alt="" width="121" height="59" border="0" align="left" /></div></td>
                        <td width="59" align="left" valign="top" scope="col"><div align="left"><img src="calculator.png" width="59" height="59" border="0" align="left"></div></td>
                        <td width="168" align="left" valign="top" scope="col"><div align="left"><img src="otherbuttons_09.png" alt="nothing" width="168" height="59" border="0" align="left" /></div></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" align="left" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td width="180" align="left" valign="top" scope="col"><img src="otherbuttons_10.png" alt="nothing" width="180" height="57" border="0" align="left" /></td>
                        <td width="58" align="left" valign="top" scope="col"><div align="left"><img src="interest.png" width="58" height="57" border="0" align="left"></div></td>
                        <td width="110" align="left" valign="top" scope="col"><img src="otherbuttons_12.png" alt="" width="110" height="57" border="0" align="left" /></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" align="left" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td width="238" align="left" valign="top" scope="col"><img src="otherbuttons_13.png" alt="" width="238" height="60" border="0" align="left" /></td>
                        <td width="67" align="left" valign="top" scope="col"><div align="left"><img src="snapshot.png" width="67" height="60" border="0" align="left"></div></td>
                        <td width="43" align="left" valign="top" scope="col"><div align="left"><img src="otherbuttons_15.png" alt="" width="43" height="60" border="0" align="left" /></div></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td valign="top" align="left"><div align="left"><img src="bottom.png" alt="" width="348" height="54" border="0" align="left" /></div></td>
        </tr>
    </tbody>
</table>

 

 
New Post
6/5/2007 10:10 AM
 

top
nothing
nothing nothing
nothing
nothing

<table width="348" height="370" border="0" cellpadding="0" cellspacing="0">
   
        <tr>
            <td valign="top"><img src="top.png" alt="top" name="top" width="348" height="21" border="0" id="Image1" /></td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" cellpadding="0" cellspacing="0">
               
                    <tr>
                        <td width="62" valign="top"><img src="apply.png" width="62" height="58" border="0"></td>
                        <td width="286" valign="top"><img src="otherbuttons_03.png" alt="nothing" width="286" height="58" border="0" /></td>
                    </tr>
               
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" cellpadding="0" cellspacing="0">
               
                    <tr>
                        <td width="62" valign="top"><img src="otherbuttons_04.png" alt="nothing" width="62" height="61" border="0" /></td>
                        <td width="59" valign="top"><img src="prequalify.png" width="59" height="61" border="0"></td>
                        <td width="227" valign="top"><img src="otherbuttons_06.png" alt="nothing" width="227" height="61" border="0" /></td>
                    </tr>
               
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" cellpadding="0" cellspacing="0">
               
                    <tr>
                        <td width="121" valign="top"><img src="otherbuttons_07.png" alt="" width="121" height="59" border="0" /></td>
                        <td width="59" valign="top"><img src="calculator.png" width="59" height="59" border="0"></td>
                        <td width="168" valign="top"><img src="otherbuttons_09.png" alt="nothing" width="168" height="59" border="0" /></td>
                    </tr>
               
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" cellpadding="0" cellspacing="0">
               
                    <tr>
                        <td width="180" valign="top"><img src="otherbuttons_10.png" alt="nothing" width="180" height="57" border="0" /></td>
                        <td width="58" valign="top"><img src="interest.png" width="58" height="57" border="0"></td>
                        <td width="110" valign="top"><img src="otherbuttons_12.png" alt="" width="110" height="57" border="0" /></td>
                    </tr>
               
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table width="348" border="0" cellpadding="0" cellspacing="0">
               
                    <tr>
                        <td width="238" valign="top"><img src="otherbuttons_13.png" alt="" width="238" height="60" border="0" /></td>
                        <td width="67" valign="top"><img src="snapshot.png" width="67" height="60" border="0"></td>
                        <td width="43" valign="top"><img src="otherbuttons_15.png" alt="" width="43" height="60" border="0" /></td>
                    </tr>
               
            </table>
            </td>
        </tr>
        <tr>
            <td valign="top"><img src="bottom.png" alt="" width="348" height="54" border="0" /></td>
        </tr>
   
</table>


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
6/5/2007 10:42 AM
 

Did you change anything?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...HTML module blows upHTML module blows up


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