Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Square design Frage
#1
Moin Moin zusammen,
so langsam verzweifele ich .
Ich möchte für mein Forum welches demnächst auf 1.8 umgestellt werden soll ein neue Design verwenden .
Ich habe mich für das Square Design entschieden da es sich für mich recht einfach und perfekt anpassen lässt.
Mein Problem nur mein Headergrafik soll so bleiben wie sie ist also muss ich es irgendwie hinbekommen das sie die Menü-Buttons im Header von der Hintergrund Grafik abheben.
Da es sich um ein Imkerforum handel dachte ich mir ich nehme mal Honigwaben das passt dann .
Soweit so gut .
Nach langem tüfteln habe ich es mehr oder weniger hinbekommen das die Menügrafiken passen .
Jetzt möchte ich aber gerne das diese Mennü-Hintergrundgrafik sich bei einem Mouseover in eine andere Grafik wechselt.
Also dachte ich mir, ok die Daten vom normalen auf den Hover css Eintrag einfügen und den Grafiknamen ändern.
Tja und da hab ich wohl falsch gedacht -.-
Jetzt wäre ich natürlich sehr Dankbar wenn mir hier jemand helfen könnte .
Im Grunde möchte ich 3 Grafiken dafür verwenden .
Normal Ansicht,
Mous Over
und Aktiv Link also die Seite die derzeit angesehen wird.
Versteht mich überhaupt noch einer ? ??
Die Grafiken lauten wie folgt :
/images/button-off.png
/images/button-on.png
/images/button-now.png


Hier einmal die CSS:
Code:
.tipsy {
   position: absolute;
   padding: 5px;
   z-index: 100000;
}

.tipsy-inner {
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
   background: #161616;
   color: #FFFFFF;
   max-width: 200px;
   padding: 5px 8px;
   text-align: center;
}

.tipsy-arrow {
   position: absolute;
   width: 0;
   height: 0;
   line-height: 0;
   border: 5px dashed #161616;
}

.tipsy-arrow-n {
   border-bottom-color: #161616;
}

.tipsy-arrow-s {
   border-top-color: #161616;
}

.tipsy-arrow-e {
   border-left-color: #161616;
}

.tipsy-arrow-w {
   border-right-color: #161616;
}

.tipsy-n .tipsy-arrow {
   top: 0px; left: 50%;
   margin-left: -5px;
   border-bottom-style: solid;
   border-top: none;
   border-left-color: transparent;
   border-right-color: transparent;
}

.tipsy-nw .tipsy-arrow {
   top: 0;
   left: 10px;
   border-bottom-style: solid;
   border-top: none;
   border-left-color: transparent;
   border-right-color: transparent;
}

.tipsy-ne .tipsy-arrow {
   top: 0;
   right: 10px;
   border-bottom-style: solid;
   border-top: none;
   border-left-color: transparent;
   border-right-color: transparent;
}

.tipsy-s .tipsy-arrow {
   bottom: 0;
   left: 50%;
   margin-left: -5px;
   border-top-style: solid;
   border-bottom: none;
   border-left-color: transparent;
   border-right-color: transparent;
}

.tipsy-sw .tipsy-arrow {
   bottom: 0;
   left: 10px;
   border-top-style: solid;
   border-bottom: none;
   border-left-color: transparent;
   border-right-color: transparent;
}

.tipsy-se .tipsy-arrow {
   bottom: 0;
   right: 10px;
   border-top-style: solid;
   border-bottom: none;
   border-left-color: transparent;
   border-right-color: transparent;
}

.tipsy-e .tipsy-arrow {
   right: 0;
   top: 50%;
   margin-top: -5px;
   border-left-style: solid;
   border-right: none;
   border-top-color: transparent;
   border-bottom-color: transparent;
}

.tipsy-w .tipsy-arrow {
   left: 0;
   top: 50%;
   margin-top: -5px;
   border-right-style: solid;
   border-left: none;
   border-top-color: transparent;
   border-bottom-color: transparent;
}

.catdesc {
     font-family: 'Exo 2', sans-serif;
     font-size: 11px;
     padding: 6px 12px;
     background: #003965;
     color: #FAFAFA;
}

#header {
    background: #0B3B0B url(images/header/1414-normal.png);
    height: 200px;
}

.logo {
     float: left;
     font-family: 'Exo 2', sans-serif;
     font-size: 72px;
     font-weight: 400;
     color: #FFFFFF;
     margin-top: 40px;
     transition: all 0.5s ease;
}

/*.logo2 {
    float: left;
    margin-top: 20px;
    transition: all 1.5s ease;
    
    color: #F7FE2E;
}

.logo:hover > .logo2 {
     transform: rotate(360deg);
}

*/

.menu {
    float: right;
    margin: 121px 0 0 0;
    padding: 0;
    text-align: right;
    
    width: 495px;
}

.menu ul {
    margin: 0 0 0 0px;
    padding: 0;
    
    color: rgba(180, 4, 4, 1);
}

.menu ul li {
    background: url(images/button-off.png);
    list-style: none;
    display: inline-block;
    margin: 0 0 0 1px;
    padding: 0;
    padding-left: 5px;
    padding-top: 20px;
    text-align: center;
    height: 81;
    line-height: 20px;
    
    color: rgba(180, 4, 4, 1);
    width: 85px;
}

.menu ul li a:link, .menu ul li a:visited {
     color: rgba(255, 255, 255, 0.5);
     text-decoration: none;
     transition: all 0.5s ease;
}

.menu ul li a:hover, .menu ul li a:active {
    background: url(images/button-on.png);
    transition: all 0.5s ease;
    margin: 0 0 0 1px;
    
    
    color: rgba(0, 0, 0, 1);
    width: 85px;
    text-decoration: none;
}

#panel {
    background: #B40404;
    height: 50px;
}

.news {
    padding: 0;
    margin: 0;
     width: 492px;
     height: 50px;
     line-height: 50px;
     float: left;
}

.announcements {
     width: 17px;
     padding: 0 5px 0 0;
   color: #FFFFFF;
     text-align: left;
     float: left;
     margin-top: 13px;
}

.automsj {
     width: 446px;
     float: left;
     padding: 0 5px;
     font-family: 'Exo 2', sans-serif;
     font-size: 13px;
     margin: 1px auto 0 auto;
}

.automsj ul {
     padding: 0;
     margin: 0;
}

.quotes {
   color: #FFFFFF;
     list-style: none;
     display: none;
     text-align: left;
}

.usersection {
     margin: 0;
     padding: 0;
     float: right;
     text-align: right;
     width: 492px;
     height: 50px;
     line-height: 50px;
     color: #FFFFFF;
}

.loginbutton a:link, .loginbutton a:visited {
     padding: 5px 8px;
     margin-left: 10px;
     color: #FFFFFF;
     transition: all 0.5s ease;
     background: #005ea7;
     text-decoration: none;
}

.loginbutton a:hover, .loginbutton a:active {
     transition: all 0.5s ease;
     background: #0073cd;
     text-decoration: none;
}

.registerbutton a:link, .registerbutton a:visited {
     padding: 5px 8px;
     margin-left: 10px;
     color: #FFFFFF;
     transition: all 0.5s ease;
     background: #5ea700;
     text-decoration: none;
}

.registerbutton a:hover, .registerbutton a:active {
     transition: all 0.5s ease;
     background: #79cd00;
}

.usermenu {
     font-size: 13px;
     margin-right: 20px;
}

.usermenu a:link, .usermenu a:visited {
     color: #008fff;
     transition: all 0.5s ease;
     text-decoration: none;
}

.usermenu a:hover, .usermenu a:active {
    color: #54b4ff;
     transition: all 0.5s ease;
}

.panelavatar {
     margin: 0 5px 0 0;
     padding: 0;
}

.wrapper-dropdown-5 {
   position: relative;
   top: -32px;
   float: right;
   cursor: pointer;
   outline: none;
   z-index: 999;
     color: #008fff;
     transition: all 0.5s ease;
}

.wrapper-dropdown-5 .dropdown {
    position: absolute;
    width: 190px;
   padding: 0;
    top: 18px;
    left: -172px;
    list-style: none;
    max-height: 0;
    overflow: hidden;
     transition: all 0.5s ease;
     color: #FFFFFF;
    background: #003965;
}

.wrapper-dropdown-5:hover, .wrapper-dropdown-5:active {
   cursor: pointer;
    transition: all 0.5s ease;
     color: #54b4ff;
}

.wrapper-dropdown-5 .dropdown li {
   padding: 5px;
}

.wrapper-dropdown-5 .dropdown li a {
   padding: 5px;
   height: 20px;
   line-height: 18px;
   display: block;
   font-size: 13px;
   text-decoration: none;
   color: #FFFFFF;
     transition: all 0.3s ease;
}

.wrapper-dropdown-5 .dropdown li:last-of-type a {
   border: none;
}

.wrapper-dropdown-5 .dropdown li i {
   margin-right: 5px;
   color: inherit;
   vertical-align: middle;
}

.wrapper-dropdown-5 .dropdown li:hover a {
   display: block;
   cursor: pointer;
    background: #008fff;
     transition: all 0.3s ease;
}

.wrapper-dropdown-5.active .dropdown {
   max-height: 400px;
}

.tduser {
   padding: 0;
   margin: 0;
}

.admincp a:link, .admincp a:visited {
     background: #d00000;
     padding: 4px 3px 4px 5px;
     transition: all 0.5s ease;
     color: #EFEFEF;
}

.admincp a:hover {
     background: #fe0000;
     transition: all 0.5s ease;
     color: #FFFFFF;
}

.modcp a:link, .modcp a:visited {
     background: #00abd0;
     padding: 4px;
     transition: all 0.5s ease;
     color: #EFEFEF;
}

.modcp a:hover {
     background: #00d1fe;
     transition: all 0.5s ease;
     color: #FFFFFF;
}

.breadcrumb {
    background: #8A0808;
    overflow: hidden;
    margin: auto;
    padding: 0;
    border: 1px none;
    height: 44px;
    
    color: #FFFFFF;
    width: 984px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: bold;
}

.breadcrumb .crust {
    background: #0B6121;
    display: block;
    float: left;
    position: relative;
    
    color: #0B6121;
}

.breadcrumb .crust:first-child a.crumb {
    background: #0B6121;
    padding-left: 10px;
}

.breadcrumb .crust a.crumb, .breadcrumb .crust b.lastcrumb {
    background: #0B6121;
    padding: 5px 5px 5px 30px;
    margin-bottom: -1px;
    outline: 0 none;
    display: block;
    transition: all 0.5s ease;
    
    color: #FFFFFF;
    text-decoration: none;
}

.breadcrumb .crust b.lastcrumb {
    background: transparent none;
    color: #0B6121;
}

.breadcrumb .crust a.crumb, .breadcrumb .crust b.lastcrumb {
    background: #0B6121;
    line-height: 35px;
}

.breadcrumb .crust .arrow {
    border: 22px solid transparent;
    border-right: 1px none;
    border-left-color: #003c6d;
    display: block;
    position: absolute;
    right: -22px;
    top: 0;
    z-index: 1;
    height: 0px;
    
    width: 0px;
}

.breadcrumb .crust .arrow span {
    border: 23px solid transparent;
    border-right: 1px none black;
    border-left-color: #0B6121;
    display: block;
    position: absolute;
    left: -24px;
    top: -23px;
    z-index: 51;
    white-space: nowrap;
    overflow: hidden;
    text-indent: 9999px;
    height: 0px;
    transition: all 0.5s ease;
    
    width: 0px;
}

.breadcrumb .refresh:hover {
    background: #0B6121;
    background-position: 0px -16px;
    
    color: #0B6121;
}

.breadcrumb .crust:last-child a.crumb {
}

.breadcrumb .crust:hover a.crumb {
    background: #04B431;
    cursor: pointer;
    transition: all 0.5s ease;
    
    text-decoration: none;
}

.breadcrumb .crust:hover .arrow span {
    border-left-color: #04B431;
    transition: all 0.5s ease;
}

.effect {
     opacity: 0.5;
     transition: all 0.5s ease;
}

.effect:hover {
     opacity: 1;
     transition: all 0.5s ease;
}

.scrolltotop {
   cursor: pointer;
   border: 1px solid #54b4ff;
   padding: 2px 11px 6px 11px;
   position: fixed;
   bottom: 1em;
   right: 20px;
   text-decoration: none;
   color: #54b4ff;
   display: none;
    transition: all 0.5s ease;
     font-size: 16px;
     opacity: 0.75;
}

.scrolltotop:hover {
   
   cursor: pointer;
   border: 1px solid #54b4ff;
   color: #54b4ff;
    transition: all 0.5s ease;
     opacity: 1;
}

.buttons {
   cursor: pointer;
   color: #FFFFFF;
   width: 44px;
   height: 29px;
   padding-top: 15px;
   text-align: center;
   background: #005ea7;
    transition: all 0.5s ease;
}

.buttons:hover {
   cursor: pointer;
   color: #FFFFFF;
   background: #0076D1;
    transition: all 0.5s ease;
}

.clickedbuttons {
    background: #0B6121;
    width: 44px;
    color: #FFFFFF;
    cursor: pointer;
    height: 29px;
    padding-top: 15px;
    text-align: center;
    transition: all 0.5s ease;
}

.clickedbuttons:hover {
    background: #04B431;
    cursor: pointer;
    transition: all 0.5s ease;
    
    color: #FFFFFF;
}

.thead {
    background: #5C0000 url(images/christmas/tcat_bg-red.png) repeat-x;
    height: 20px;
    line-height: 19px;
    
    color: #FAFAFA;
    font-size: 13px;
    font-weight: bold;
}

.thead a:link, .thead a:visited {
     color: #FAFAFA;
     text-decoration: none;
     font-weight: bold;
}

.thead a:hover, .thead a:active {
    background: #8A0808;
    color: #FAFAFA;
    text-decoration: none;
}

.theadend {
     height: 3px;
     background: #003965;
}

.language {
     float: right;
     margin-left: 20px;
}

.themes {
    float: right;
}

#footer {
     background: #003965;
     height: 200px;
}

#copyright {
    background: #DF0101;
    height: 50px;
    line-height: 50px;
}

#copyright a:link, #copyright a:visited {
     color: #54b4ff;
     transition: all 0.5s ease;
     text-decoration: none;
}

#copyright a:hover, #copyright a:active {
     color: #98D2FF;
     transition: all 0.5s ease;
     text-decoration: none;
}

.one {
     width: 330px;
     margin-right: 130px;
     float: left;
}

.two {
     width: 150px;
     margin-right: 170px;
     float: left;
}

.three {
     width: 150px;
     float: left;
}

.one h3 {
     font-size: 19px;
     color: #FAFAFA;
     margin: 20px 0;
}

.two h3 {
     font-size: 19px;
     color: #FAFAFA;
     margin: 20px 0;
}

.three h3 {
     font-size: 19px;
     color: #FAFAFA;
     margin: 20px 0;
}

.one p {
     font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
     line-height: 11px;
}

.two ul {
     margin: 0;
     padding: 0;
}

.two ul li {
     list-style: none;
     display: block;
     padding: 2px 0;
     margin: 0;
}

.two ul li a:link, .two ul li a:visited {
     text-decoration: none;
     color: rgba(255, 255, 255, 0.5);
     transition: all 0.5s ease;
}

.two ul li a:hover, .two ul li a:active {
     color: rgba(255, 255, 255, 1);
     transition: all 0.5s ease;
}

.three ul {
     margin: 0;
     padding: 0;
}

.three ul li {
     list-style: none;
     display: block;
     padding: 2px 0;
     margin: 0;
}

.three ul li a:link, .three ul li a:visited {
     text-decoration: none;
     color: rgba(255, 255, 255, 0.5);
     transition: all 0.5s ease;
}

.three ul li a:hover, .three ul li a:active {
     color: rgba(255, 255, 255, 1);
     transition: all 0.5s ease;
}

::-webkit-scrollbar {
 
   width: 15px;
}

::-webkit-scrollbar-track {
 
   background: #003965;
}

::-webkit-scrollbar-thumb {
 
   background: #005ea7;
}

::-webkit-scrollbar-thumb:hover {
 
   background: #008fff;
}

.userbrowsing {
     background: #FAFAFA;
     border: 1px solid #CCC;
     padding: 8px;
}

.moderatedby {
     background: #FAFAFA;
     border: 1px solid #CCC;
     padding: 8px;
}

.pagination2 a:link, .pagination2 a:visited {
     font-family: 'Exo 2', sans-serif;
     font-size: 11px;
     background: #003965;
     color: #FAFAFA;
     transition: all 0.5s ease;
     padding: 3px 7px 3px 6px;
}

.pagination2 a:hover, .pagination2 a:active {
     background: #005ea7;
     transition: all 0.5s ease;
}

.bigbutton a:link, .bigbutton a:visited {
     font-family: 'Exo 2', sans-serif;
     font-size: 13px;
     background: #003965;
     padding: 10px 16px 10px 12px;
     color: #FAFAFA;
     transition: all 0.5s ease;
}

.bigbutton a:hover, .bigbutton a:active {
     background: #005ea7;
     transition: all 0.5s ease;
}

.closedbutton a:link, .closedbutton a:visited {
     font-family: 'Exo 2', sans-serif;
     font-size: 13px;
     background: #650000;
     padding: 10px 16px 10px 12px;
     color: #FAFAFA;
     transition: all 0.5s ease;
}

.closedbutton a:hover, .closedbutton a:active {
     background: #a70000;
     transition: all 0.5s ease;
}

.centered {
     text-align: center;
}

.pbbutton a:link, .pbbutton a:visited {
     font-family: 'Exo 2', sans-serif;
     font-size: 13px;
     background: #005ea7;
     padding: 5px 8px 5px 6px;
     color: #FAFAFA;
     transition: all 0.5s ease;
}

.pbbutton a:hover, .pbbutton a:active {
     background: #0075d0;
     transition: all 0.5s ease;
}

.pbredbutton a:link, .pbredbutton a:visited {
     font-family: 'Exo 2', sans-serif;
     font-size: 13px;
     background: #a70000;
     padding: 5px 8px 5px 6px;
     color: #FAFAFA;
     transition: all 0.5s ease;
}

.pbredbutton a:hover, .pbredbutton a:active {
     background: #d00000;
     transition: all 0.5s ease;
}

.minibutton a:link, .minibutton a:visited{
    padding: 5px;
     text-align: center;
     background: #005ea7;
     transition: all 0.5s ease;
     color: #FAFAFA;
}

.minibutton a:hover, .minibutton a:active {
     background: #0075d0;
     transition: all 0.5s ease;
}

.welcomebox {
     width: 370px;
     margin: 10px 0 0 20px;
     float: left;
     text-align: justify;
     font-family: 'Exo 2', sans-serif;
     font-size: 13px;
     color: #363636;
     line-height: 22px;
}

.welcometitle h1 {
     font-family: 'Exo 2', sans-serif;
     font-size: 19px;
     font-weight: 400;
     text-align: center;
     margin: 0 0 30px 0;
     color: #FAFAFA;
}

.welcometitle {
     background: #005ea7;
     color: #FAFAFA;
}

.welcomelogin {
     width: 190px;
     margin: 10px 10px 0 50px;
     float: left;
     text-align: left;
     line-height: 22px;
}

input.loginbutton {
     padding: 5px 8px;
     color: #FFFFFF;
     transition: all 0.5s ease;
     background: #005ea7;
     text-decoration: none;
     border: 1px none;
}

input.loginbutton:hover {
     transition: all 0.5s ease;
     background: #0073cd;
     text-decoration: none;
}

.welcomelogin ul {
   float: left;
   margin: 0;
     padding: 0;
   list-style: none;
}

.welcomelogin li {
   display: block;
}

.log {
   color: #FFFFFF;
   padding: 8px 8px 7px 7px;
    margin: 0 0 10px 0;
   background: #363636;
   border-top: 1px solid #363636;
   border-left: 1px solid #363636;
   border-bottom: 1px solid #363636;
   border-right: 1px none;
}

.textlog {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
   width: 90px;
   color: #363636;
   background: #FFFFFF;
   border-top: 1px solid #363636;
   border-right: 1px solid #363636;
   border-bottom: 1px solid #363636;
   border-left: 1px none;
   padding: 8px 8px 7px 8px;
     margin: 0 0 10px 0;
}
Zitieren
#2
Hast du dem Button eine Klasse gegeben ?

ZB:

.button a:link {
}

.button a:active {
}

.button a:hover {
}

Nur noch mit variablen versehen, dann sollte es funktionieren.
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#3
Mhmm


Ich habe mit dem vom Template vorhanden CSS Vorgaben gearbeitet .

Code:
.menu ul {
   margin: 0 0 0 0px;
   padding: 0;
   
   color: rgba(180, 4, 4, 1);
}

.menu ul li {
   background: url(images/button-off.png);
   list-style: none;
   display: inline-block;
   margin: 0 0 0 1px;
   padding: 0;
   padding-left: 5px;
   padding-top: 20px;
   text-align: center;
   height: 81;
   line-height: 20px;
   
   color: rgba(180, 4, 4, 1);
   width: 85px;
}

.menu ul li a:link, .menu ul li a:visited {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.5s ease;
}

.menu ul li a:hover, .menu ul li a:active {
   background: url(images/button-on.png);
   transition: all 0.5s ease;
   margin: 0 0 0 1px;
   
   
   color: rgba(0, 0, 0, 1);
   width: 85px;
   text-decoration: none;
}

Oder kann ich es einfacher machen ?
Zitieren
#4
Soll der Button button_off.png der normale sein ?
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#5
Genau Off als normal,
On als Mouseover
Now die Seite die gerade angezeigt wird ( Muss aber nicht unbedingt )
Zitieren
#6
Code:
.menu ul li a:link {
   background: url(images/button-off.png);
   list-style: none;
   display: inline-block;
   margin: 0 0 0 1px;
   padding: 0;
   padding-left: 5px;
   padding-top: 20px;
   text-align: center;
   height: 81;
   line-height: 20px;
  
   color: rgba(180, 4, 4, 1);
   width: 85px;
}

Schon so versucht für den normalen Button ?
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#7
Wäre ich ne Frau würde ich dich nun knutschen bis zum umfallen !
DANKE DIR !
Nun muss es nur wieder richtig verschoben werden
Es ist ein wenig zu weit unten^^
Zitieren
#8
Lass ma lieber, sonst bekommste Ärger mit meiner Frau ^^. Schön das es funktioniert hat.
Mit freundlichen Grüßen

MrBrechreiz
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Theme: Square zum letzten Beitrag springen gugelugu 2 1.111 30.04.2015, 10:41
Letzter Beitrag: MrBrechreiz