Results 1 to 2 of 2

Thread: Easy question for anyone here but me: vertically align the text anchor tag?

  1. #1
    Join Date
    Jun 2010
    Posts
    7

    Question Easy question for anyone here but me: vertically align the text anchor tag?

    i can move the text in the button up and down by adding padding, but that increases the visible are of the button and therefore begins to show the top of the next state ( image for other state is directly below)

    here's the page on line:
    http://www.pauljameswilliams.com/portfolio.html

    CSS:
    Code:
    .tabs{
        margin: 0 auto;
        padding: 0;
    	list-style-type:none;
    	display:inline;
    }
    
    #menu{
    	position:absolute;
    	right:31px;
    	top:0px;
    	height: 27px;
    	width: 500px;
    	text-decoration:none;
    	}
    #menu a{
    	width:125px;
    	height: 27px;
    	text-decoration: none;
    	
    	font-family: Helvetica, Arial, sans-serif;
    	font-size:14px;
    	color:#FFF;
    	display: inline-block;
    	vertical-align:middle;
    	float:left;
    	text-align:center;
    	background-image:  url('../tab.png');
    	background-position: 0 -30px;
    }
    #menu a:hover{
    	
    	background-position: 0 -60px;
    }
    #menu a:active {
        background-position:0 -90px;
    	color:#999933;
            }
    #menu a.current {
        background-position:0 0px;
    	color:#fff;
    	}

  2. #2
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    544
    I put overflow: hidden on the #menu id, along with a padding top of 5px on the "a" tag and it works in FF.
    Steve,

    Aero Web Design

    Man I hate being dumb!

Tags for this Thread

Posting Permissions

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