Dołącz do zespołu ekspertów! Backend lub Frontend Developer?

Sprawdź najnowsze oferty pracy naszego partnera - 8lines.io!

Rozmieszczenie navigacji oraz button.

Błąd   Założony przez  nae1994.

wersja skryptu MyBB: 1.6.9
adres forum: www.polskastrefaskilla.cba.pl
na czym polega problem (screen, opis, komunikaty):

1. Problem polega na tabelce którą wziąłem z tego tematu:
https://webboard.pl/thread-39238.html
Wygląda to u mnie tak:
[Obrazek: adasdasoy.png]
Jak widać cały ten przycisk "Strona Główna" po naciśnięciu jest za wysoki, chciałbym, żeby nacisnięty button wyglądał tak samo jak po najechaniu, czyli jak pokazany na screenie "Regulamin"
Plik CSS:


body {
    background: #1a1a1a url(images/body_bg.png) top left repeat;
    line-height: 2.7;
    margin: auto auto;
    padding-bottom: 20px;
    color: #FFF;
    text-align: left;
    font-family: tahoma;
    font-size: 11px;
}



a:link {
    color: #0e79ca;
    text-decoration: none;
}

a:visited {
    color: #0e79ca;
    text-decoration: none;
    
}

a:hover, a:active {
    color: #0e79ca;
    text-shadow: 0px 1px 5px #0048ff;
    text-decoration: none;

}


a:focus {
outline: none;
}

.header {
    background: #1a1a1a url(images/logo.png) bottom left no-repeat;
    text-align: canter;
        width: 0%;
    height: 160px;
}

.header_right {
    background: url(images/logo.png) top left no-repeat;
    height: 20px;
        width: 1255px;
        padding-top: 264px;
        padding-right: 10px;
        float: left;
}

.header_in {
    margin: canter;
}

.logo {
    float: left;
        margin-top: 40px;
        margin-left: 40px;
}

#container {
    background: #101010;
        border: 1px solid #2a2a2a;
    width: 82%;
    color: #808080;
    margin: auto auto;
    padding: 20px;
    text-align: canter;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
}

#content {
    width: auto !important;
}

#footer {
        width: 95%;
        color: #fff;
        margin: auto auto;
        padding: 10px 20px 20px 20px;
        text-align: left;
        text-shadow: 0 1px 0 #000;
}

.menu2 {
    width: 540px;
        padding-right: 20px;
}

.menu {

    background: url(images/menu_bg.png)top right no-repeat;
    height: 27px;
        width: 570px;
    padding: 7px 300px 8px;
    -moz-border-radius:4px;
    -webkit-border-radius: 4px;
}

.menu ul {
    width: 130%;
    float: right;
    color: #fff;
    font-weight: bold;
    text-align: right;
}

.menu ul a:link, .menu a:visited {
    background: rgba(0, 0, 0, 0.102);
    width: 800px;
    border-radius: 3px;
    box-shadow: inset rgba(0, 0, 0, 0.804) 0px 1px 5px, rgba(255, 255, 255,
0.016) 0px 0px 0px 1px, rgba(255, 255, 255, 0.047) 0px 1px 0px;
    color: #9A9A9A;
    height: 34px;
    line-height: 34px;
    outline: medium none currentColor;
    padding: 0px 15px;
    position: relative;
}

.menu ul a:hover, .menu ul a:active {
    background: rgba(0, 0, 0, 0.298);
    box-shadow: inset rgba(0, 0, 0, 0.804) 0px 1px 5px, rgba(255, 255, 255,
0.031) 0px 0px 0px 1px, rgba(255, 255, 255, 0.102) 0px 1px 0px;
    color: #FFFFFF;
    text-shadow: 0px 1px 5px #0072ff;
}


#calendar .calendar, #portal .portal, #index .index, #search .search, #members .members, #help .help {
    background: url(images/menu_active.png) top left repeat-x;
    padding: 9px 7px 8px;
    color: #0184dc;
    text-decoration: none;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}


#panel {
    background: url(images/panel_bg.png) top left no-repeat;
    width: 95%;
    padding: 0px 0px 0px 0px;
    position: top;
    z-index: 9999;
        top: 0px;
    color: #d1d1d1;
    font-family: tahoma;
    font-size: 11px;
}

#panelimg {
    background-image: url(images/panel_bg.png) top left no-repeat;
}

#panel .remember_me input {
    vertical-align: middle;
    margin-top: 2px;
}

table {
    color: #e1e1e1;
    font-family: tahoma, arial;
    font-size: 12px;
    text-shadow: 1px 1px 1px #000000;
}

.tborder {
    background: #111111;
    width: 100%;
    margin: auto auto;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}

.thead {
    background: #0256d8 url(images/thead_bg.gif) top left repeat-x;

    color: #eaeaea;
    text-shadow: 1px 1px 1px #292929
}


.thead a:link {
    color: #ebebeb;
    text-decoration: none;
}

.thead a:visited {
    color: #;
    text-decoration: none;
}

.thead a:hover, .thead a:active {
    color: #;
    text-decoration: underline;
}

.tcat {
    background: #151515;
    color: #808080;
    font-size: 11px;
        padding: 3px 10px 3px 10px;
    border-left: 1px solid #252525;
}

.tcat a:link {
    color: #808080;
}

.tcat a:visited {
    color: #808080;
}

.tcat a:hover, .tcat a:active {
    color: #909090;
}

.trow1 {
    background: #1a1a1a url(images/trow_bg.png) top left repeat-x;
    border-top: 1px solid #292929;
    border-left: 1px solid #292929;
}

.trow2 {
    background: #1a1a1a url(images/trow_bg.png) top left repeat-x;
    border-top: 1px solid #292929;
    border-left: 1px solid #292929;
}

.trow_h {
    background: #1a1a1a url(images/trow_bg.png) top left repeat-x;
    border-top: 1px solid #292929;
    border-left: 1px solid #292929;
}

.trow_h:hover {
    background: #252525 url(images/trow_hover_bg.png) top left repeat-x;
    border-top: 1px solid #292929;
    border-left: 1px solid #292929;
}

.trow_plain {
    background: #1a1a1a url(images/trow_bg.png) top left repeat-x;
}

.trow_shaded {
    background: #303030;
}

.trow_selected td {
    background: #000;
}

.trow_sep {
    background: #2a2a2a;
        padding: 5px 10px 5px 10px;
    color: #808080;
    font-size: 11px;
    font-weight: bold;
}

.tfoot {
    background: #0256d8 url(images/thead_bg.gif) top left repeat-x;
    color: #ffffff;
        padding: 5px 10px 5px 10px;
    -moz-border-radius-bottomleft: 30px;
    -webkit-border-bottom-left-radius: 30px;
    -moz-border-radius-bottomright: 30px;
    -webkit-border-bottom-right-radius: 30px;
}

.tfoot a:link {
    color: #ffffff;
    text-decoration: none;
}

.tfoot a:visited {
    color: #ffffff;
    text-decoration: none;
}

.tfoot a:hover, .tfoot a:active {
    color: #000000;
}

#bottommenu {
        margin: auto;
    padding: 10px;
    color: #303030;
        font-size: 11px;
        font-weight: bold;
        text-align: middle;
}

#bottommenu img {
    padding-right: 5px;
    vertical-align: top;
}

#bottommenu a:link, #bottommenu a:visited {
       margin: 0 5px;
}

.navigation {
    background: #1a1a1a url(images/trow_bg.png) top left repeat-x;
        padding: 6px;
    border: 1px solid #292929;
    -moz-border-radius: 8px;
    -webkit-border-radius: 5px;
    color: #808080;
    font-size: 11px;
    font-weight: bold;
}

.navigation a:link {
    height: 90px;
    text-decoration: none;
    color: #0e79ca;
}

.navigation a:visited {
    text-decoration: none;
    color: #0e79ca;
}

.navigation a:hover, .navigation a:active {
    height: 70px;
    text-decoration: none;
    color: #808080;
}

.navigation .active {
    color: #808080;
    font-weight: bold;
}

.smalltext {
    font-size: 11px;
}

.smalltext2 {
    font-size: 11px;
    text-shadow: 0px 1px 5px #0096ff;
    
}
.largetext {
    font-size: 14px;
    font-weight: bold;
        font-family: arial;
}

input.textbox {
    border: 1px solid #007eff;
    background: #3c3c3c url(images/textbox_bg.png) bottom left repeat-x;
    color: #fff;
    padding: 3px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    font-family: tahoma;
    font-size: 11px;
}

input.button {
    background: #161616 url(images/dsbutton_bg.png) bottom left repeat-x;
    color: #008aff;
    border: 1px solid #006cff;
    padding: 1px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    font-weight: bold;
    font-family: tahoma;
    font-size: 11px;
}

textarea {
    background: #181818;
    color: #808080;
    border: 1px solid #121212;
    padding: 2px;
    font-family: Verdana, Arial, Sans-Serif;
    line-height: 1.4;
    font-size: 13px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
        -moz-box-shadow: 0px 0px 1px #404040;
        -webkit-box-shadow: 0px 0px 1px #404040;
        box-shadow: 0px 0px 1px #404040;
        -khtml-box-shadow: 0px 0px 1px #404040;
}

select {
    background: #101010;
    color: #808080;
    border: 1px solid #303030;
}

.editor {
    background: #f1f1f1;
    border: 1px solid #ccc;
}

.editor_control_bar {
    background: #fff;
    border: 1px solid #0f5c8e;
}

.autocomplete {
    background: #fff;
    border: 1px solid #000;
    color: black;
}

.autocomplete_selected {
    background: #adcee7;
    color: #000;
}

.popup_menu {
    background: #101010;
    border: 1px solid #202020;
        margin-top: 2px;
}

.popup_menu .popup_item {
    background: #101010;
    color: #808080;
}

.popup_menu .popup_item:hover {
    background: #202020;
    color: #fff;
}

.trow_reputation_positive {
    background: #ccffcc;
}

.trow_reputation_negative {
    background: #ffcccc;
}

.reputation_positive {
    color: green;
}

.reputation_neutral {
    color: #444;
}

.reputation_negative {
    color: red;
}

.invalid_field {
    border: 1px solid #f30;
    color: #f30;
}

.valid_field {
    border: 1px solid #0c0;
}

.validation_error {
    background: url(images/invalid.gif) no-repeat center left;
    color: #f30;
    margin: 5px 0;
    padding: 5px;
    font-weight: bold;
    font-size: 11px;
    padding-left: 22px;
}

.validation_success {
    background: url(images/valid.gif) no-repeat center left;
    color: #00b200;
    margin: 5px 0;
    padding: 5px;
    font-weight: bold;
    font-size: 11px;
    padding-left: 22px;
}

.validation_loading {
    background: url(images/spinner.gif) no-repeat center left;
    color: #555;
    margin: 5px 0;
    padding: 5px;
    font-weight: bold;
    font-size: 11px;
    padding-left: 22px;
}

/* Additional CSS (Master) */
img {
    border: none;
}

.clear {
    clear: both;
}

.hidden {
    display: none;
    float: none;
    width: 1%;
}

.hiddenrow {
    display: none;
}

.selectall {
    background-color: #FFFBD9;
    font-weight: bold;
    text-align: center;
}

.float_left {
    float: left;
}

.float_right {
    float: right;
}

.menu ul {
    list-style: none;
    margin: 0;
}

.menu li {
    display: inline;
    padding-left: 5px;
}

.menu img {
    padding-right: 5px;
    vertical-align: top;
}

#panel .links {
    margin: 0;
    float: right;
}

#panel img {
    padding-right: 5px;
    vertical-align: top;
}

.panel-irt {
    padding-right: 5px;
    vertical-align: top;
}

.expcolimage {
    float: right;
    width: auto;
    vertical-align: middle;
    margin-top: 3px;
}

img.attachment {
    border: 1px solid #E9E5D7;
    padding: 2px;
}

hr {
    background-color: #000000;
    color: #000000;
    height: 1px;
    border: 0px;
}

#copyright {
    font: 11px Verdana, Arial, Sans-Serif;
    margin: 0;
    padding: 3px 0 0 0;
}

#debug {
    float: right;
    text-align: right;
    margin-top: 0;
}

blockquote {
    border-left: 6px solid #606060;
        -moz-box-shadow: 0px 0px 1px #101010;
        -webkit-box-shadow: 0px 0px 1px #101010;
        box-shadow: 0px 0px 1px #0098ff;
        -khtml-box-shadow: 0px 0px 1px #101010;
    margin: 0;
    background: #404040;
    padding: 5px;
        color: #fff;
}

blockquote cite {
    font-weight: bold;
    border-bottom: 1px solid #606060;
    font-style: normal;
    display: block;
    margin: 4px 0;
}

blockquote cite span {
    float: right;
    font-weight: normal;
}

blockquote cite span.highlight {
    float: none;
    font-weight: bold;
    padding-bottom: 0;
}

.codeblock {
    border-left: 6px solid #606060;
        -moz-box-shadow: 0px 0px 1px #101010;
        -webkit-box-shadow: 0px 0px 1px #101010;
        box-shadow: 0px 0px 1px #0098ff;
        -khtml-box-shadow: 0px 0px 1px #101010;
    margin: 0;
    background: #404040;
    padding: 5px;
        color: #fff;
}

.codeblock .title {
    border-bottom: 1px solid #606060;
    font-weight: bold;
    margin: 4px 0;
}

.codeblock code {
    overflow: auto;
    height: auto;
    max-height: 200px;
    display: block;
    font-family: Monaco, Consolas, Courier, monospace;
    font-size: 13px;
}

.subforumicon {
    border: 0;
        margin-right: 5px;
    vertical-align: middle;
}

.separator {
    margin: 5px;
    padding: 0;
    height: 0px;
    font-size: 1px;
    list-style-type: none;
}

form {
    margin: 0;
    padding: 0;
}

.popup_menu .popup_item_container {
    margin: 1px;
    text-align: left;
}

.popup_menu .popup_item {
    display: block;
    padding: 3px;
    text-decoration: none;
    white-space: nowrap;
}

.popup_menu a.popup_item:hover {
    text-decoration: none;
}

.autocomplete {
    text-align: left;
}

.subject_new {
    font-weight: bold;
}

.highlight {
    background: #FFFFCC;
    padding-top: 3px;
    padding-bottom: 3px;
}

.pm_alert {
    background: #FFF6BF;
    border: 1px solid #FFD324;
    text-align: center;
    padding: 5px 20px;
    margin-bottom: 15px;
    font-size: 11px;
}

.red_alert {
    background: #FBE3E4;
    border: 1px solid #A5161A;
    color: #A5161A;
    text-align: center;
    padding: 5px 20px;
    margin-bottom: 15px;
    font-size: 11px;
}

.high_warning {
    color: #CC0000;
}

.moderate_warning {
    color: #F3611B;
}

.low_warning {
    color: #AE5700;
}

div.error {
    padding: 5px 10px;
    border-top: 2px solid #FFD324;
    border-bottom: 2px solid #FFD324;
    background: #FFF6BF;
    font-size: 12px;
}

div.error p {
    margin: 0;
    color: #000;
    font-weight: normal;
}

div.error p em {
    font-style: normal;
    font-weight: bold;
    padding-left: 24px;
    display: block;
    color: #C00;
    background: url(images/error.gif) no-repeat 0;
}

div.error.ul {
    margin-left: 24px;
}

.online {
    color: #15A018;
}

.offline {
    color: #C7C7C7;
}

.pagination {
    font-size: 11px;
    padding-top: 10px;
    margin-bottom: 5px;
}

.tfoot .pagination, .tcat .pagination {
    padding-top: 0;
}
.pagination .pages {
    font-weight: bold;
}

.pagination .pagination_current, .pagination a {
    padding: 2px 6px;
    margin-bottom: 3px;
}

.pagination a {
    background: #1a1a1a url(images/trow_bg.png) top left repeat-x;
        padding: 3px 7px 4px 7px;
    color: #808080;
    border-top: 1px solid #292929;
    -moz-border-radius:2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    text-shadow: 0 -1px 0 #101010;
}

.pagination .pagination_current {
    background: #0256d8 url(images/thead_bg.png) top left repeat-x;
        padding: 4px 7px;
    color: #ffffff;
    -moz-border-radius:3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    text-shadow: 0 -1px 0 #002661;
    font-weight: bold;
}

.pagination a:hover {
    background: #1a1a1a url(images/trow_bg.png) top left repeat-x;
        padding: 3px 7px 4px 7px;
    color: #ffffff;
        border-top: 1px solid #292929;
    -moz-border-radius:3px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    text-shadow: 0 -1px 0 #101010;
}

.thread_legend, .thread_legend dd {
    margin: 0;
    padding: 0;
}

.thread_legend dd {
    padding-bottom: 4px;
    margin-right: 15px;
}

.thread_legend img {
    margin-right: 4px;
    vertical-align: bottom;
}

.forum_legend, .forum_legend dt, .forum_legend dd {
    margin: 0;
    padding: 0;
}

.forum_legend dd {
    float: left;
    margin-right: 10px;
}

.forum_legend dt {
    margin-right: 10px;
    float: left;
}

.success_message {
    color: #00b200;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 10px;
}

.error_message {
    color: #C00;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 10px;
}

.post_body {
    padding: 5px;
}

.post_content {
    padding: 5px 10px;
}

.quick_jump {
    background: url(images/jump.gif) no-repeat 0;
    width: 13px;
    height: 13px;
    padding-left: 13px; /* amount of padding needed for image to fully show */
    vertical-align: middle;
    border: none;
}

.repbox {
    font-size:16px;
    font-weight: bold;
    padding:5px 7px 5px 7px;
}

._neutral {
    background-color:#FAFAFA;
    color: #999999;
    border:1px solid #CCCCCC;
}

._minus {
    background-color: #FDD2D1;
    color: #CB0200;
    border:1px solid #980201;
}

._plus {
    background-color:#E8FCDC;
    color: #008800;
    border:1px solid #008800;
}

.pagination_breadcrumb {
    background-color: #f5f5f5;
    border: 1px solid #fff;
    outline: 1px solid #ccc;
    padding: 5px;
    margin-top: 5px;
    font-weight: normal;
}

.pagination_breadcrumb_link {
    vertical-align: middle;
    cursor: pointer;
}
        
.lastpost {
        float: left;
        text-align: left;
        margin-top: 1px;
}

fieldset {
    background-color: #303030;
        color: #fff;
        border: 1px solid #303030;
        margin: 2px;
        padding: 5px;
}

.qsearch {
    background: url(images/search_bg.png) top left no-repeat;
    height: 50px;
        width: 160x;
        float: right;
    padding: 0;
    margin: 0;
        border: none;
}

.qsearch input {
    background: transparent;
    color: #202020;
    border: none;
    float: left;
    font-size: 11px;
    font-family: trebuchet ms, arial;
    padding: 1px 5px 5px 5px;
        margin: 0;
}

.qsearch .btn:hover {
    background: url(images/search_icon.png) top left no-repeat;
        border: none;
    float: right;
    margin-left: 2px;
    margin-top: 1px;
        padding: 0;
    width: 23px;
        height: 20px;
}

.topmenu {
    padding: 9px 5px 0 5px;
background: #000;
text-align: left;
margin: auto auto;
height: 23px;
}

.topmenu a:link {
    padding: 5px 15px 5px 15px;
color: #ccc;
text-decoration: none;
}

.topmenu a:visited {
    padding: 5px 15px 5px 15px;
color: #ccc;
text-decoration: none;
}

.topmenu a:hover {
    padding: 5px 15px 0px 15px;
color: #fff;
text-decoration: underline;
}

.test {
background: #151515;
display: block;
width: 120px;
margin: 3px 3px 0px 3px;
padding: 2px 3px;
border-bottom:1px solid #2a2a2a;
-moz-border-radius: 3px;
text-align: right;
font-weight: bold;
}
2. Drugi problem polega na wysokości "nawigacji"
Nawigacja najeżdża na zdjęcie, chciałbym tą nawigacje ustawić niżej.
Oto screen:
[Obrazek: navvvr.png]
Plik css wyżej a tutaj może się przyda showthread.php

<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
    var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
</head>
<body>
    {$header}
    {$pollbox}
    <div class="float_left">
        {$multipage}

    </div>
    <div class="float_right">
        {$newreply}
    </div>
    {$ratethread}
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
        <tr>
            <td class="thead" colspan="2">
                <div style="float: right;">
                    <span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
                </div>
                <div>
                    <strong>{$thread['threadprefix']}{$thread['subject']}</strong>
                </div>
            </td>
        </tr>
        {$classic_header}
    </table>
    <div id="posts">
        {$posts}
    </div>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
        <tr>
            <td colspan="2" class="tfoot">
                {$search_thread}
                <div>
                    <strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
                </div>
            </td>
        </tr>
    </table>
    <div class="float_left">
        {$multipage}
    </div>
    <div style="padding-top: 4px;" class="float_right">
        {$newreply}
    </div>
<div class="float_left">

<navigation>

</div>





    <br style="clear: both;" />
    {$quickreply}
    {$threadexbox}
    {$similarthreads}
    <br />
    <div class="float_left">
        <ul class="thread_tools">
            <li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
            <li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
            <li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
        </ul>
    </div>

    <div class="float_right" style="text-align: right;">
        {$moderationoptions}
        {$forumjump}
    </div>
    <br style="clear: both;" />
    {$usersbrowsing}
    {$footer}
</body>
</html>
Matslom napisał 10.04.2013, 17:11:
Przenoszę
U mnie nawigacja jest dobrze wyświetlana, może u Ciebie coś szwankuje
Niemożliwe, na chrome jak i na firefoxie wystepuje ten błąd.
a istnieją tylko dwie przeglądarki? a dalczego miałbym kłamać, że mówisz że niemożliwe. Korzystam z operye, więc nie mów, że niemożliwe ;)
Dobrze dobrze, ale w takim razie co zrobić, żeby na firefoxie i chrome poprawnie wyświetlało?
Dalej czekam na odpowiedź.
Dziwne, mi nie pokazuje tego -> Forum -> Strona Główna ?
(11.04.2013, 20:37)gibonpl napisał(a): Dziwne, mi nie pokazuje tego -> Forum -> Strona Główna ?
Musisz wejsc w jakis temat przecież ^^
Mi pokazuje z boku .. ?
Jak z boku?



Użytkownicy przeglądający ten wątek:

3 gości