SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weird happenings with font changer.

    alright - just a small 'thing' which is bugging me

    www.gavinbenda.com - have a look at it in IE6 and click on the 'font changer' (top right).

    Can anyone shed some light on that!? It seems to get the background image set to my <li> and shift into all sorts of weird positions

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    Germany
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is in your CSS:

    Code:
    .menu a:link, .menu a:visited, a:active {
    	font-size: 10px;
    	padding: 4px 10px 3px 25px;
    	float: left;
    	background: url('images/tab.gif') no-repeat;
    	text-decoration: none;
    }
    See that you don't have ".menu" in front of "a:active"? This way it also applies to the links of your fontchange div after being clicked.
    I assume IE is setting it active after being clicked, while mozilla doesn't.

    Just change the CSS to:

    Code:
    .menu a:link, .menu a:visited, .menu a:active {
    	font-size: 10px;
    	padding: 4px 10px 3px 25px;
    	float: left;
    	background: url('images/tab.gif') no-repeat;
    	text-decoration: none;
    }

  3. #3
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow - nice pickup!

    Thanks Martin.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •