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:3375

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: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
backend is changing from sql2005 to sql2008 by meenu
hi all advance thanks. in my DNN0408 website am using sql2005 as backend.now planning to remove sq...
DotNetNuke Modules
RSS Feeds