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
Nuke Active Member
Nuke Active Member
Posts:36

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
Nuke Master II
Nuke Master II
Posts:2951

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
mtarby
Nuke Active Member
Nuke Active Member
Posts:36

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: Query Regarding search fuctionality by kaustav_kar
Thanks for your help. Could you please tell me how to configure it?
Login page by shanny234
---resolved---
RE: Only registered users can access some parts of the module by nukedoubt
Solution Obtained !!!!!!!Follow the steps :To Checked In login mode as registered users or not - Do...
RE: Blog Module on 4.8.4 by bryan_homey
03.04.00 Thanks Bryan
RE: Repository template: YouTube by bryan_homey
Thanks!
RE: File Manager Upload (intermittent error) by dnnmq
banner_rotator.js is only 3KB.  This behavior was reported after we upgraded from 4.3.4 to 4.8.3.Bef...
RE: templates and modules by mmcinulty
Hi Bocheck back to issue 24 for info about page templates.about your other issue with modules login ...
templates and modules by cyborama
Hello Lee and Joe,My first question deals with templates.  I noticed in dotnetnuke apparently you ca...
News Feeds (RSS) module 4.0 ? by wolmar
I had some trouble with the old NewsFeeds module (the one coverd in tutorial) so i figured i'd insta...
style search CSS or XML by mmcinulty
CSS an XMLi was looking back at issue 29 about search styling. there was a skin i seen www.dnnskin.n...
RE: Query Regarding search fuctionality by jncraig
I believe that the Venexus search tools can be configured to do that.
RE: Create Bookmarks/Anchor Points/Page TOC by jncraig
I'm not aware of a module that does that. And, yes, you have to put the links in manually. I've us...
RE: Refreshing Bl... IE by jncraig
F5 reloads the page, but doesn't necessarily reload cached files associated with the page. CTRL-F5 ...
RE: Bitter Sweet Skin Menu by jncraig
No, I'm really not here 24/7. More like 16/7!
RE: News Feed from DNN Blog by aggiedan97
Thanks for the reply. I have tested with the XSL stylesheet specified and still no success. The Bl...
Create Bookmarks/Anchor Points/Page TOC by lb313
I am developing my first DNN site and have been doing some modifications to the skin I am using and ...
Query Regarding search fuctionality by kaustav_kar
Hi,On my site we have the search feature(dnn:search).  Right now when we search, the search is done ...
RE: Bitter Sweet Skin Menu by leesykes
You need to use the correct container for the content panes, otherwise the text will not display cor...
RE: Refreshing Bl... IE by leesykes
CTRL+F5 should do the trick - F5 by itself or refresh tends not to work.
RE: File Manager Upload (intermittent error) by leesykes
not sure - how large are the files?
DotNetNuke Modules
RSS Feeds