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, ...Getting rid of a 1px space in IEGetting rid of a 1px space in IE
Previous
 
Next
New Post
7/21/2008 8:22 AM
 

I've been working on creating a mouseover effect for a HouseMenu - it works perfectly, but there's now a 1px space between the list items in IE that I can't get rid of.  Here's what I'm using to style my menu and the container its in.  Any suggestions of what I can try?

#navigation
{
    position: absolute;
    left: 0;
    top: 0;
    width:200px;
    background-color: #231f20;
    margin-top: -0.5em;   
}
#navigation ul
{
top: 1.1em;
}

#navigation ul li
{
height: 40px;
list-style-type: none;
text-align: center;
background-color: #dfba39;
font-family: Garamond;
font-weight: bold;
font-size: 14px;
border: 1px solid white;
margin: 0;
}
#navigation a
{
    color: #000;
    text-decoration: none;
display: block;
padding-top: 10px;
padding-bottom: 10px;
}
#navigation a:hover
{
text-decoration: none;
display: block;
background-color: #eed424;
}

#navigation ul li a.active
{
background: #7F8400;
}

 
New Post
7/21/2008 1:23 PM
 

Could you post the control code (ascx markup) sometimes this is an issue.  I fixed a bug with the Banner module due to the markup code chucking out a </br>


Leigh Pointer
User Group Champion [World Wide]
» Evangelising DotNetNuke Everywhere «

Nederlandstalige DotNetNuke Gebruikersgroep Subzero Solutions ARC for DotNetNuke Design is the craft of visualising concrete solutions that serve human needs and goals within certain contraints. Visulising concrete solutions is the essence of design.
 
New Post
7/21/2008 2:15 PM
 

Here's the code:

<%@ Control Language="vb" AutoEventWireup="false" Codebehind="HouseMenuSkinObject.ascx.vb" Inherits="TimRolands.DNN.SkinObjects.HouseMenuSkinObject.HouseMenuSkinObject" %>
<asp:literal id="litMenu" runat="server"></asp:literal>

That's all I can find.  I also looked at the source code my actual page is generating and don't see any extra line breaks.

 
New Post
7/23/2008 3:28 PM
 

if the <asp:literal id="litMenu" runat="server"></asp:literal> is appearing on one line that is a good start.  Check the source and make sure that the end tag of any control appears on one line.

i.e. This code below could produce unwanted effects.

<asp:literal id="litMenu" runat="server">
</asp:literal>


Leigh Pointer
User Group Champion [World Wide]
» Evangelising DotNetNuke Everywhere «

Nederlandstalige DotNetNuke Gebruikersgroep Subzero Solutions ARC for DotNetNuke Design is the craft of visualising concrete solutions that serve human needs and goals within certain contraints. Visulising concrete solutions is the essence of design.
 
New Post
7/23/2008 3:44 PM
 

Thanks - that's good to know for future reference.

I just figured out what was causing the problem - I was using display:block to achieve the rollover effect, which looks great in all browsers except IE.  IE treats is like a line break, which is why I was seeing the one pixel gap.

I thought I'd at least post what was causing it in case someone runs into the same problem in the future!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Getting rid of a 1px space in IEGetting rid of a 1px space in IE


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