having trouble with button height

im trying to create a personal skin and im having trouble getting the taskbar buttons to go to the correct height. it keeps putting like 3 extra pixels at the bottom. ive tried resizing the image and changing margins, but nothing seems to work...


1,424 views 6 replies
Reply #1 Top
Hi animuson,

check how much space you have at the bottom of your buttons, and then remove that space......(hope that makes sense)

so for example if you have 3 pixels of space below your buttons (as you say, it keeps putting 3 extra pixels at the bottom) then cut them out of your graphics and then try the buttons and see if that improves the situation.

...i hope this helps you somewhat...
Reply #2 Top
its content margins...on the buttons...decrease top or bottom content margins...or both.
Reply #3 Top
What they said :)

Your taskbar buttons should be the same height as the taskbar itself (including empty canvas on the top and bottom)
Also check the height of your start button. If it is higher than your taskbar, it sometimes forces your taskbar higher which will give you space at the bottom of your taskbarbuttons. Check also the text margins in the quicklaunch buttons.
Reply #4 Top
Check also the text margins in the quicklaunch buttons.
End of quote


That part is true...the rest,not so much,sorry 2 of 3. ;) 

taskbutton(and quicklaunch,systray)content margins determine height of the taskbar.Buttons and taskbar graphics can be damn near any size...they will grow or shrink to fit.Start button will just be cut off on the bottom if its taller than the height of the taskbar.

I often use mismatched image sizes for various reasons...no problem.It does simplify things if they are all the same. ;) 

I have a special design currently that needed to tile properly at all heights...single,double,triple,etc...It is 60 pixels tall...but as a single it is 30.An oversized Start button(vertically)only pushes the quicklaunch buttons down further on a vertical taskbar.

Taskbar height near as I can figure...is...16 pixels for icon,6 pixels of icon space and however much more you need in content margins to achieve your desired taskbar height.(total of 8 in my case,4 top and 4 bottom)Huge or tiny fonts may affect this formula but you can get your taskbar the right height regardless of your image sizes. ;) 
Reply #5 Top
That part is true...the rest,not so much,sorry 2 of 3.
End of quote


One could write a book about what I don't know about skinning

Please disregard my ramblings, animuson
Reply #6 Top
No need to feel bad 2of3,think I know everything?I'm about to head off into Vista hell...I'll need plenty of help. ;)