Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: dbrown - heinäkuu 28, 2006, 12:47:14 AP

Otsikko: Help aligning index images
Kirjoitti: dbrown - heinäkuu 28, 2006, 12:47:14 AP
Hi. I need some help aligning the images that notify whether or not a board has new posts or not. I use these little footballs, and although not a big deal, it bothers me that they're not vertically centered in the table. Does anyone know how I can fix this? I would imagine in CSS, but I don't know where. If someone could give me some direction, I'd appreciate it. Regards...

Otsikko: Re: Help aligning index images
Kirjoitti: Deaks - heinäkuu 28, 2006, 01:57:57 AP
there not in the style.css there in boardindex.template


1.0.7
look for
<td class="windowbg" width="6%" align="center" valign="top">';
around line 91 and replace it with
<td class="windowbg" width="6%" align="center" valign="middle">';

RC2
look for
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';


and replace it with

<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="middle"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

Otsikko: Re: Help aligning index images
Kirjoitti: dbrown - heinäkuu 28, 2006, 02:25:31 AP
Exactly what I wanted...Thanks!