Modules

Support Forums
vertically centering text on tabs
Last Post 05 Apr 2010 05:04 PM by Amer Meknas. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
Amer Meknas
New Member
New Member
Posts:5

--
05 Apr 2010 12:31 AM  

 Hello Everyone,

I adjusted the high of the buttons of my digrotate to have 5 buttons instead of of the 8 needed to fill a 250 high banner.   

I adjusted the CSS and the image file to fill the space, I cannot figure out how to make the text vertically centered in the buttons... :(  I tried adding the text-aligh; vertical-align: middle; in the css with no luck :) 

 

any help would be greatly appreciated 

http://67.199.31.32/

digmike
Veteran Member
Veteran Member
Posts:1262

--
05 Apr 2010 02:31 AM  
Hi,
What happens when you increase the padding-top?

.drMenu6 a span {
padding-top:15px;
}

Thanks,
Mike
Amer Meknas
New Member
New Member
Posts:5

--
05 Apr 2010 03:21 AM  
I am really bad with CSS so excuse the ignorance

here is what I have under that section...
.drMenu6 a span {
display:block;
padding: 8px 0px 0 10px;
}

should I assume that the 0px is the top? what's the other 0 for? or should I just add a line under this section or another ?

thanks
digmike
Veteran Member
Veteran Member
Posts:1262

--
05 Apr 2010 03:32 AM  
Hi,
Here is a tutorial on css padding:
http://www.w3schools.com/css/css_padding.asp

The top is the first number.
Thanks,
Mike
Amer Meknas
New Member
New Member
Posts:5

--
05 Apr 2010 05:04 PM  
Thank YOU that worked...
You are not authorized to post a reply.

Active Forums 4.2