diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2013-04-20 03:49:26 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2013-04-20 03:49:26 +0000 |
| commit | 9f8d32cf28cc4199a639ad5538aeb821d9416b8a (patch) | |
| tree | 8b0a864cfb8e33db2d0e5bcce7ccba0df82b98b8 /individual.php | |
| parent | e58560485402c0537bdf17e2d377833f449b1524 (diff) | |
| download | webtrees-9f8d32cf28cc4199a639ad5538aeb821d9416b8a.tar.gz webtrees-9f8d32cf28cc4199a639ad5538aeb821d9416b8a.tar.bz2 webtrees-9f8d32cf28cc4199a639ad5538aeb821d9416b8a.zip | |
14965 caused changes in style of other tabs. Need consistency, so have ensured all tabs use only <span> elements within the links. Using <div> does not validate properly (should not use block elements inside inline elements).
Diffstat (limited to 'individual.php')
| -rw-r--r-- | individual.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/individual.php b/individual.php index 0bea28ea27..200e4662be 100644 --- a/individual.php +++ b/individual.php @@ -227,9 +227,9 @@ foreach ($controller->tabs as $tab) { // id, which means that we cannot use the tab's title/description. (The // documentation suggests simply replacing spaces with underscores, but // this will only work for English.) We can wrap the tab's title in its - // own <div title="">, but jQueryUI gives the <a> element padding, which + // own <span title="">, but jQueryUI gives the <a> element padding, which // shows the correct title on the text but the wrong title on the padding. - // So,... move the padding from the <a> to the internal <div> + // So,... move the padding from the <a> to the internal <span>. echo '<li class="'.$greyed_out.'"><a title="', $tab->getName(), '" href="'; if ($tab->canLoadAjax()) { // AJAX tabs load only when selected @@ -238,7 +238,7 @@ foreach ($controller->tabs as $tab) { // Non-AJAX tabs load immediately echo '#', $tab->getName(); } - echo '"><div title="', $tab->getDescription(), '"><span>', $tab->getTitle(), '</span></div></a></li>'; + echo '"><span title="', $tab->getDescription(), '">', $tab->getTitle(), '</span></a></li>'; } } echo '</ul>'; |
