Use span insted of div, div is not allowed here.

This commit is contained in:
Michal Čihař
2004-06-03 14:36:24 +00:00
parent 14342bd2aa
commit f88a238a1f
3 changed files with 17 additions and 13 deletions

View File

@@ -22,6 +22,8 @@ $Source$
$cfg['ShowHttpHostTitle'].
* config.inc.php, css/phpmyadmin.css.php, libraries/config_import.lib.php:
Can disable main page icons (bug #965550).
* header.inc.php, css/phpmyadmin.css.php: Use span insted of div, div is
not allowed here.
2004-06-02 Alexander M. Turek <happybirthdaytome@derrabus.de>
* db_details_db_info.php, tbl_properties_tbl_info.php: Table type is called

View File

@@ -497,9 +497,11 @@ textarea {
/* Heading */
h1 div {
h1 span {
display: block;
float: left;
clear: none;
width: auto;
padding: 2px 2px 5px 2px;
margin: 0px;
font-family: <?php echo $right_font_family; ?>;
@@ -508,7 +510,7 @@ h1 div {
white-space: nowrap;
}
h1 div a {
h1 span a {
<?php if ($cfg['ErrorIconic']) { ?>
background-repeat: no-repeat;
background-position: 2px 50%;
@@ -516,25 +518,25 @@ h1 div a {
<?php } ?>
}
h1 div a {
h1 span a {
font-weight: bolder;
}
<?php if ($cfg['PropertiesIconic']) { ?>
h1 div.server a {
h1 span.server a {
background-image: url(../images/s_host.png);
}
h1 div.database a {
h1 span.database a {
background-image: url(../images/s_db.png);
}
h1 div.table a {
h1 span.table a {
background-image: url(../images/s_tbl.png);
}
<?php } ?>
div.database:before , div.table:before {
h1 span.database:before , h1 span.table:before {
content: '>';
padding-left: 5px;
padding-right: 5px;

View File

@@ -161,22 +161,22 @@ if (empty($GLOBALS['is_header_sent'])) {
: ':' . $cfg['Server']['port']
)
);
echo '<div class="server">' . $GLOBALS['strServer'] . ":\n"
echo '<span class="server">' . $GLOBALS['strServer'] . ":\n"
. '<a href="' . $GLOBALS['cfg']['DefaultTabServer'] . '?' . PMA_generate_common_url() . '">'
. htmlspecialchars($server_info) . '</a>' . "\n"
. '</div>' . "\n\n";
. '</span>' . "\n\n";
if (!empty($GLOBALS['db'])) {
echo '<div class="database">' . $GLOBALS['strDatabase'] . ":\n"
echo '<span class="database">' . $GLOBALS['strDatabase'] . ":\n"
. '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($GLOBALS['db']) . '">'
. htmlspecialchars($GLOBALS['db']) . '</a>' . "\n"
. '</div>' . "\n\n";
. '</span>' . "\n\n";
if (!empty($GLOBALS['table'])) {
echo '<div class="table">' . $GLOBALS['strTable'] . ":\n"
echo '<span class="table">' . $GLOBALS['strTable'] . ":\n"
. '<a href="' . $GLOBALS['cfg']['DefaultTabTable'] . '?' . PMA_generate_common_url($GLOBALS['db'], $GLOBALS['table']) . '">'
. htmlspecialchars($GLOBALS['table']) . '</a>' . "\n"
. '</div>' . "\n\n";
. '</span>' . "\n\n";
}
}
echo '</h1>';