News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Centering the on/off icons.

Started by Nidoking, January 17, 2005, 12:05:31 AM

Previous topic - Next topic

Nidoking

URL: http://dragons.webplanethost.com
Problem: How do I center the on/off icons? I don't like the way they look now. They would look much better centered in their board cells.

[Unknown]

Looks okay to me.  Do you mean center vertically?

-[Unknown]

Nidoking

Yes. So the icons are in the center of the defined cell.

[Unknown]

Just add valign="middle" to the table cell the icon is in...

So instead of this in the BoardIndex template:
<td class="windowbg" width="6%" align="center" valign="top">

You would have:
<td class="windowbg" width="6%" align="center" valign="middle">

How do I modify files?

-[Unknown]

Nidoking

Okay, thanks. It worked to perfection.

Advertisement: