You need to Register for free and Login to post a message in the forum.

Forum

Subject: Getting rid of a 1px space in IE
Prev Next
You are not authorized to post a reply.

Author Messages
mtarby
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:38

22 Jul 2008 9:24 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;
}


I checked the source code that's being generated by the module and there's no space being added, so I'm a bit stumped.

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3314

23 Jul 2008 3:04 AM  
When troubleshooting I tend to strip everything out of the CSS and then re-introduce it one at a time until the problem appears, you can then narrow it down to which part of the code is causing the problem in IE.

You may want to ensure all padding, margins, borders are set to 0 as a starting point and just see if you can get rid of the space without styling the menu.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
mtarby
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:38

23 Jul 2008 2:48 PM  
Thanks Lee - that did it. In case anyone runs into something similar, the gap in IE is caused by using display:block to create the rollover effect. All other browsers interpret it nicely, but IE treats it like a line break between my list items.
You are not authorized to post a reply.
Forums > Skinning Toolkit > Skinning Toolkit > Getting rid of a 1px space in IE



ActiveForums 3.7

Latest Forum Posts

RE: Need Help Changing Containers Contentpane's Text Color by leesykes
The default class for a container is .head so you will find that the .head class will override any s...
RE: Module not working when logged off. by t.ramya85
have to set the cache time to '0' in that module setting.
Trouble installing! Designer trying to be a Developer. by awright14
Hi Everyone,Just to let you know, I'm very new at this - very new to any type of dev environments in...
Skim Question by tlsadler
I've been going over your videos on skinning and may have missed something somewhere.Can you use the...
Include in Menu - Weird Request by nichord
I have a request from a customer that has put me at odds.  The customer has a lot of child pages to ...
RE: Need Help Changing Containers Contentpane's Text Color by CROKeefe
RE: Need Help Changing Containers Contentpane's Text Color by CROKeefe
I'm also having similar issues. While the .Normal helps most of it, the H1-H6 and the TITLEs for eac...
RE: Vertical SolpartMenu by y_knight
hi ... am new in DNN and i have installed Dnn and i work fine but i have 1 think to ask why i can n...
RE: Cannot view host filespace using text/html editor by NonStopMark
Hi Joe, The problem has gone away. May have been a caching issue. Thanks for posting. DNN : ht...
Firefox Does Not Display WMV File In Media Module by johnmk777
Hi All,I can't believe I am having such a hard time finding and answer to this question.  I have see...
advice wanted convert site to DNN while keeping existing asp functionality by max2o
I am running into the issue that a client wants to redesign their site and they want content managem...
RE: Site is not opening by leesykes
from the message it is referencing php - is it a dnn site? - is asp.net applied for the site?
RE: SolPart Menu Font Color Control by leesykes
Hello,I'm not aware of any documentation at the moment. But here is a list of Nav Menu PropertiesTo ...
Site is not opening by kaustav_kar
Hi,Whenever I'm writing the url (http://tajfood.com.sa) it's showing the following error; Index of ...
RE: SolPart Menu Font Color Control by cdees
 Lee, Is there documentation, or perhaps a tutotial on activating and using Nav menu?  Where would I...
RE: EasyCGI help? by Dr Joe
I found some interesting posts on some other sites that explain some of the challenges I've been exp...
RE: Menu's, menu's, and more menu's! by roadshow41
Thanks! I'm still a bit curious about some of the other options, but I think that gives me enough c...
RE: Menu's, menu's, and more menu's! by leesykes
Hello,Yes that should be possible with snapsis, I have used snapsis CSS with flyout menus on a horiz...
RE: Menu's, menu's, and more menu's! by roadshow41
I typically end up using a hybrid of a vertical menu and a horizontal menu due to the sheer number o...
DotNetNuke SEO (Search Engine Optimization) by leesykes
Hello,I regularly get asked for tips on SEO with DotNetNuke, there are several resources available o...
DotNetNuke Modules
RSS Feeds