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 ...Strange alignment issue with links moduleStrange alignment issue with links module
Previous
 
Next
New Post
9/16/2008 3:46 AM
 

Hi,

I am using a links module called Glinks where you can add an icon to the left of the link and html below the link.  I've added the icon and used css to modify the alignment, and when I view my changes in "edit" mode everything is aligned.  When I view my changes in "view" mode a large gap to the left of the image appears.  I have attached a screenshot with both views and I've pointed out where the gap is in the "view" mode screenshot.  Below is the code for Links.ascx for reference.

If this makes any sense to you please make suggestions.  I'm not sure why there is an indentation there or how to fix it.  If you've seen something similar please let me know.  I tried emailing support@vsnetcoder.com and visiting http://www.vsnetcoder.com/ but have gotten no response.  Tap that guy on the shoulder if you know him ;).

Any help is appreciated!

MyKa

 

 

 

 

GLINKS CODE:

*******************************************************************************

<%@ Control language="vb" Inherits="Thayer.GLinks.Links" CodeBehind="Links.ascx.vb" AutoEventWireup="false" Explicit="True" %>

<asp:panel id="pnlList" runat="server" >
    <asp:Literal ID="GLinksScriptLit" runat="server"></asp:Literal>
    <asp:datalist CssClass="GLinksMain" id="lstLinks" runat="server" summary="Links Design Table" itemstyle-verticalalign="Top" cellpadding="0">
        <itemtemplate>
            <table class="GLinksMainTable" border="0" cellpadding="0" cellspacing="0">
                <tr class="GLinksTopRow">
                    <td class="GLinksTopCell" nowrap>
                        <table class="GLinkTable" border="0" cellpadding="0" cellspacing="0" <%#GetLinkHeight() %>>
                            <tr class="GLinkRow" width="<%# TLeftPad() %>">
                                <td class="GLinkCell1" nowrap width="<%# TLeftPad() %>" align="right">
                                    <asp:HyperLink CssClass="EditGLinkClass" id="editLink" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>' Visible="<%# IsEditable %>" runat="server" ><asp:Image id="editLinkImage" ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%# IsEditable %>" Runat="server" /></asp:hyperlink>
                                    <asp:Image CssClass="GLinkImageClass" ID="Image1" ImageUrl="<%# formatIcon() %>"  Visible="<%# DisplayIcon() %>" runat="server" />
                                    <asp:Image CssClass="GLinkImageClass" ID="LinkImageLeft" runat="server" />
                                </td>
                                <td class="GLinkCell2" nowrap>
                                    <asp:Table CssClass="MainGLinkTable" ID="LinkTable" runat="server" BorderWidth="0px" CellPadding="0" CellSpacing="0">
                                        <asp:TableRow CssClass="MainGLinkRow1" ID="LinkRow" runat="server" Height="100%">
                                            <asp:TableCell CssClass="MainGLinkCell" ID="LinkCell" runat="server" Wrap="<%# GetWrap() %>">
                                            <asp:HyperLink ID="Link" CssClass="Normal" Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' NavigateUrl='<%# formatURL(DataBinder.Eval(Container.DataItem,"Url"),DataBinder.Eval(Container.DataItem,"TrackClicks")) %>' ToolTip='<%# DisplayToolTip(DataBinder.Eval(Container.DataItem,"Description")) %>' Target= '<%# IIF(DataBinder.Eval(Container.DataItem,"NewWindow"),"_blank","_self") %>' runat="server" />
                                            </asp:TableCell>
                                        </asp:TableRow>
                                    </asp:Table>
                                    </td>
                                <td class="GLinkCell3" nowrap>
                                    <asp:Image CssClass="GLinkImageClass" ID="LinkImageRight" runat="server" />
                                    <asp:linkbutton CssClass="CommandButton" Runat="server" Text='...' CommandName="Select" Visible='<%# DisplayInfo() %>'/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" class="GLinkCell2" nowrap>
                                    <asp:Table CssClass="MainGLinkTable" ID="Table1" runat="server" BorderWidth="0px" CellPadding="0" CellSpacing="0">
                                        <asp:TableRow CssClass="GLinkHTMLRow" ID="TableRow2" runat="server" Height="100%">
                                            <asp:TableCell CssClass="GLinkHTMLCell" ID="TableCell2" runat="server" Wrap="<%# GetWrap() %>">
                                            <asp:Literal ID="HTMLLiteral" runat="server"></asp:Literal>
                                            </asp:TableCell>
                                        </asp:TableRow>
                                    </asp:Table>
                                    </td>
                           </tr>
                        </table>
                    </td>
                </tr>
                <tr class="GLinkBottomRow">
                    <td>
                        <asp:panel CssClass="GLinkBottomRowPanel" id="pnlDescription" visible="false" runat="server">
                            <asp:Label runat="server" CssClass="Normal" Text='<%# HtmlDecode(DataBinder.Eval(Container.DataItem, "Description")) %>' ID="Label1"/>
                        </asp:panel>
                    </td>
                </tr>
            </table>
        </itemtemplate>
        <ItemStyle VerticalAlign="Top" />
    </asp:datalist></asp:panel>
<asp:panel id="pnlDropdown" runat="server">
    <table cellspacing=0 cellpadding=0 summary="Links Design Table" border=0>
        <tr>
            <td nowrap>
                <asp:imagebutton id=cmdEdit runat="server" imageurl="~/images/edit.gif" alternatetext="Edit" resourcekey="Edit"></asp:imagebutton>
                <label style="DISPLAY: none" for="<%=cboLinks.ClientID%>">Link</label>
                <asp:dropdownlist id=cboLinks runat="server" datatextfield="Title" datavaluefield="ItemID" cssclass="NormalTextBox"></asp:dropdownlist>&nbsp;
                <asp:linkbutton id=cmdGo runat="server" cssclass="CommandButton" resourcekey="cmdGo"></asp:linkbutton>&nbsp;
                <asp:linkbutton id=cmdInfo runat="server" cssclass="CommandButton" text="..."></asp:linkbutton>
            </td>
        </tr>
        <tr>
            <td><asp:label id=lblDescription runat="server" cssclass="Normal"></asp:label></td>
        </tr>
    </table>
</asp:panel>

***********************************************************************************************

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Strange alignment issue with links moduleStrange alignment issue with links module


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