Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-30-2008, 10:22 AM   PM User | #1
petternitter
New Coder

 
Join Date: Mar 2008
Location: Bergen, Norway / York, England
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
petternitter is an unknown quantity at this point
Minor non-breaking space issue in Firefox

Hello,

I'm doing a project for school making a website about short term memory loss. It's all going fine and dandy, until firefox 3.0 desided to trouble me just slightly.

In my navigation I have created a menu with mouseover effect using this css code:

Code:
a.home {
   display:block;
   width:66px;
   height:45px;
   background:url(images/nav/1_02.jpg);
   text-decoration:none; /* erases an underline that some browsers create */
}

a:hover.home {
   display:block;
   width:66px;
   height:45px;
   background:url(images/nav/2_02.jpg);
   text-decoration:none; /* erases an underline that some browsers create */
}

a:active.home {
   display:block;
   width:66px;
   height:45px;
   background:url(images/nav/3_02.jpg);
   text-decoration:none; /* erases an underline that some browsers create */
}
This works just fine in both IE and Firefox alongside this HTML:

Code:
<div id="menu">
<ul>
<li><a class="home" href="#"><span>Hjem</span></a></li>
</ul>
</div> <!-- ends menu -->
I also have used the code to not display span, so that the background images are displayed without the text on top. However, I would much prefer to use just a simple non-breaking space tag rather than span and not displaying it. The issue is that when I use the non-breaking space code in Firefox it displays a very small white line ontop of the background images. This only happens with the first background image, not the ones that are displayed for hover and active.

Does anyone know a way to resolve this? I have tried defining the text colour and background colour in the menu div to the same colour of the buttoms, but that does not help.

Thanks in advance for any help, it is much appriciated.

Kindest,
Petter.
__________________
A Wilhelm Scream: the scream that ignites the world.
petternitter is offline   Reply With Quote
Old 11-03-2008, 11:37 AM   PM User | #2
petternitter
New Coder

 
Join Date: Mar 2008
Location: Bergen, Norway / York, England
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
petternitter is an unknown quantity at this point
Bumping up.

I hate to bump, but I really need help on this.
__________________
A Wilhelm Scream: the scream that ignites the world.
petternitter is offline   Reply With Quote
Old 11-03-2008, 11:46 AM   PM User | #3
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Can we have a link to your page?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:05 PM.


Advertisement
Log in to turn off these ads.