image padding in meu bar

Discussion in 'CSS' started by hovesh07, Aug 26, 2008.

  1. #1
    Hi All,
    I just switch to the newest FF.
    On my site at http://www.bluejaysjerseys.com/player/roy-halladay
    I use an AddMe button in the menu bar.
    On the old ff, I used <p style="padding-top=3px;"> within the <li> for the button.
    On the new FF, it kicks the button to the next line.
    I removed the <p> tag, but I'd like the button vertically placed in the middle of the menu bar. It's now flush with the top of the menu bar.

    Thanks!
     
    hovesh07, Aug 26, 2008 IP
  2. Forcefield

    Forcefield Peon

    Messages:
    314
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try using this instead...

    <p style="padding-top:3px;">
     
    Forcefield, Aug 27, 2008 IP
  3. King Dragon

    King Dragon Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    .menu {
    	clear: both;	
    	margin: 0; padding: 0 40px 0 0;
    	background: url(menu.jpg) repeat-y center top;	
    	font: bold 12px/26px Verdana, Arial, Tahoma, Sans-serif;
    	height: 26px;
    }
    .menu ul {
    	float: right;
    	list-style: none;
    	margin:0; padding: 0;
    }
    .menu ul li {
    	display: inline;
    }
    .menu ul li a {
    	display: block;
    	float: left;
    	padding: 0 8px;
    	color: #FFFFFF;	
    	text-decoration: none;
    }
    .menu ul li a:hover {
    	background-color: #ECECEC;
    	color: #064A89;	
    }
    .menu ul li#current a {	
    	background-color: #FFF;
    	color: #333;
    }
    
    Code (markup):
    When I seen your css style. I found you have ul li#current a, Then you can play with this style by php or other language. Example(php):

    
    Put this line on your top header
    <?php $onpage = 'homepage'; ?>
    
    
    <ul>
    <li <?php if($onpage=='homepage'){echo "id=\"current\";} ?><a href="http://www.BlueJaysJerseys.com/">Home</a></li>
    .
    .
    .
    </ul>
    
    
    Code (markup):
    Cheers,
     
    King Dragon, Aug 28, 2008 IP
  4. hovesh07

    hovesh07 Well-Known Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #4
    I typed it wrong in the post, but it's like you have it in my code.
    I can't figure out why the newest FF pushes it down to the next line.
    I have since removed the padding and the <p> tag, but it looks a little ugly.
    IE7 and FF 2.* were fine, but opera caused me trouble too.
    The right site in my sig still has this problem.
     
    hovesh07, Aug 28, 2008 IP