ilch Forum » Allgemein » HTML, PHP, SQL,... » Style.css und implementierte Statistiken

Geschlossen
  1. #1
    User Pic
    SFW-Ozzwald Mitglied
    Registriert seit
    29.05.2012
    Beiträge
    99
    Beitragswertungen
    0 Beitragspunkte
    Hallo zusammen und euch einen schönen 1.Mai,

    ich habe mal eine Frage:

    Ich habe hier auf einer Seite eine Serverstatistik implementiert, welche die Style.css des Designs benutzt. Nur leider sieht das recht besch.... aus.

    Habt ihr ne Idee, wie ich ggf. die Style.css anpassen muss, oder an welcher anderen schraube ich drehen muss?

    Hier der Link zur problematischen Seite
    sfw-clan.de/index.php?Spind

    Hier der Code aus der Style.css
    body   
    { 
      background: #BDBDBD url(images/bg2.jpg);
      min-height: 800px;
      background-position:top center;
      background-attachment:fixed;  
      background-repeat: no-repeat;
      background-color: #000000;
      margin : 0 auto;
    }
    
    .abg
    {
    }
    
    #menu_inner a {
    display : block;
    float : left;
    height : 27px;
    line-height:27px;
    width : 100px;
    padding :0px 2px 0 1px;
    text-align : center;
    text-transform : uppercase;
    text-decoration:none;
    letter-spacing : 0.1em;
    font-weight : normal;
    color : #D0D0D0;
    background-image : url(images/button.gif);
    background-repeat : none;
    }
    #menu_inner a:hover {
    background-image : url(images/button2.gif);
    background-repeat : none;
    color : #d88f5c;
    }
    td 
    {
      color: #E2E2E2;
      font-family: tahoma; 
      font-size: 10px;
      text-align: center;
    
    }
    
    a 
    { 
      color: #D0D0D0; 
      font-family: tahoma; 
      font-size: 10px; 
      text-decoration: none;
    
    }
    
    a:hover 
    { 
      color: #d88f5c;
      text-decoration: none;
    
    }
    a.topbox 
    { 
      color: #D0D0D0; 
      font-family: tahoma; 
      font-size: 10px;
      padding-left:5px;
      display:block;
      text-align:left;
        margin:0 auto;
    }
    a.topbox2
    { 
      color: #D0D0D0; 
      font-family: tahoma; 
      font-size: 10px;
      padding-left:5px;
      display:block;
      text-align:right;
        margin:0 auto;
    }
    a.topbox:hover 
    {  
      color: #d88f5c;
      font-family: tahoma; 
      font-size: 10px;
      text-decoration: none;
    }
    
    a.box 
    { 
      color: #cccccc; 
      font-family: tahoma; 
      font-size: 10px;
      text-align:left;
      margin:0 auto;
      padding-left:5px;
    }
    a.box:hover 
    {  
      color: #d88f5c;
      text-decoration: none;
    }
    
    .shoutbox{
      font-family: tahoma; 
      font-size: 10px;
      text-align:left;
      margin:auto;
    }
    .Chead
    {
      color: #BCBCBC;
      text-decoration:underline;
      font-weight: bold;
      font-size: 11px;
    }
    
    .Chead td, .Chead td strong, .Chead h4, .Chead td b
    {
      color: #CCCCCC;
      text-align: left;
    }
    
    .Callg
    {
    	color: #ff9966;
    	text-align: left;
    }
    
    .Callg td
    {
      color: #CFCCC0;
      text-align: left;
        font-size: 12px;
    }
    
    .Cnorm 
    {
      background-color: #171819;
    }
    
    .Cmite
    {
      background-color: #222326;
    }
    .Cdark
    {
      background-color: #121212;
      background-image :  url(images/head.jpg);
      background-repeat :  repeat-x;
    }
    
    .Bhead
    {
    	color: #EEA200;
    	text-align: left;
    	padding-bottom:10px;
    }
    
    .navi
    {
    	color: #C0CAA0;
    	text-align: left;
    	padding-left:0px;
    }
    .navi_re
    {
    	color: #C0CAA0;
    	text-align: center;
    }
    
    .navtop
    {
    	color: #dddddd;
    	padding-bottom:5px;
    	text-align: left;
    	padding-left:10px;
    	font-family: tahoma; 
        font-size: 14px;
    	font-weight: bold;
    }
    
    .navtop_re
    {
    	color: #dddddd;
    	padding-bottom:5px;
    	text-align: left;
    	padding-left:10px;
    	font-family: tahoma; 
        font-size: 11px;
    }
    
    .smalfont 
    { 
        color: #cccccc;
        font-size: 10px;
    	text-decoration: none;
    
    }
    
    .border 
    { 
        border-left: 1px solid #3C3C3C;
    	border-top: 1px solid #3C3C3C;
    	border-right: 1px solid #7B7B7B;
    	border-bottom: 1px solid #7B7B7B;
    }
    
    hr 
    { 
        height: 0px; 
    	border-top-width: 1px; 
    }
    
    input, textarea, select
    { 
        color: #131313;  
        font: 10px tahoma;  
        border-color: #17181F;
      	border-width: 1px;
        border-style: solid;  
        font-weight: none;  
        text-decoration: none;
    	background-color:#cccccc;
        /*background-color:#859952;*/
    }
    #home { 
            padding-top: 5px; 
    		padding-right:20px;
    		margin: 0px; 
    		list-style:none;
    		color: #B1B1B1;
            text-align: right;
    		font: 10px tahoma;
    }
    #log { 
    text-align:left;
    background-color:none;		
    }
    #log2 { 
    		margin-left: 0px; 
    		color:#202020;
    		text-align:left;
    }
    #copy { 
    float:left;
            padding-left: 40px; 
    		padding-top:60px;
    		list-style:none;
    		color: #E2F9FC;
    		font: 10px tahoma;
    }
    #copy a{ 
    		color: #E2F9FC;
    		font: 10px tahoma;
    }
    #copy a:hover{ 
    		color: #d88f5c;
    		font: 10px tahoma;
    }
    #sponsor { 
    margin:0 auto;
    		padding-top:50px;
    		list-style:none;
    }
    #werbung { 
    float:left;
    padding-left:10px;
    padding-top:20px;
    
    }
    #menu {
            color: #393939;
    		}
    #menu ul { 
            padding-left: 0px; 
    		margin: 0 auto; 
    		list-style:none;
    }
    
    #menu li a {
        display		        : block;
    	width				: 154px;
    	line-height			: 26px;
    	font-size			: 12px;
    	color				: #cccccc;
    	font-weight			: normal;
    	background			: url(images/menu.jpg) no-repeat;
    	padding-bottom		: 0px;
    	text-indent			: 15px;
    float:left;
    }
    #menu li a:hover {
    	color				: #d88f5c;
    	text-indent			: 15px;
    	background-position	: 0 -26px;
    	text-decoration		: bold;
    }
    
    #menu_re {
            color: #CACACA;
    		margin:0 auto;
    		}
    #menu_re ul { 
            padding-left: 0px; 
    		list-style:none;
    }
    
    #menu_re a {
        display				: block;
    	font-size			: 10px;
    	color				: #C3C89F;
    	font-weight			: normal;
    	padding-bottom		: 2px;
    	text-align          : center;
    }
    #menu_re a:hover {
    	color				: #d88f5c;
    	text-decoration		: bold;
    }
    #smallmenu { }
    #smallmenu li { font-size: 9px; }
    #smallmenu a { font-size: 9px; }


    Hier der Link zur "Anleitung" Implementation der Statistik

    externer Link


    Verlinkt ist das in der Seite dann wie folgt:

    <iframe src="http://37.187.25.126:8081/stats/index.html?server_id=33325&embedded=true&css_file=include/designs/schlachtfeldwichser/style.css"  width="620px" height="600" name="rconNET_stats" scrolling="auto" frameborder="0">
    </iframe>



    Lieben Dank schon mal vorab!


    verwendete ilch Version: 1.1 P

    betroffene Homepage: externer Link
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    Lord|Schirmer Administrator
    Registriert seit
    21.03.2007
    Beiträge
    7.644
    Beitragswertungen
    1195 Beitragspunkte
    Der Link zur style.css kann aus dem Iframe heraus nicht stimmen ... eher so

    include/designs/schlachtfeldwichser/style.css

    zu
    http://sfw-clan.de/include/designs/schlachtfeldwichser/style.css


    also:

    <iframe src="http://37.187.25.126:8081/stats/index.html?server_id=33325&embedded=true&css_file=http://sfw-clan.de/include/designs/schlachtfeldwichser/style.css"  width="620px" height="600" name="rconNET_stats" scrolling="auto" frameborder="0">
    </iframe>



    Zuletzt modifiziert von Lord|Schirmer am 01.05.2014 - 15:09:56
    rules :: doku :: faq :: linkus
    0 Mitglieder finden den Beitrag gut.
  3. #3
    User Pic
    Mairu Coder
    Registriert seit
    16.06.2006
    Beiträge
    15.334
    Beitragswertungen
    386 Beitragspunkte
    Naja in der style.css für dein design bzw. ilch stehen ja keine Styles für den Viewer, also ganz so einfach ist das nicht.

    Um mal ein kleinen Vergleich zu bringen, du kannst mit den Zutaten für einen Apfelkuchen ja auch kein Schnitzel zubereiten zunge

    Wenn du an deine Seite anpassen willst, solltest du eine neu css Datei erstellen, die du beim Laden des Iframes übergeben kannst. Welche Elemente/Klassen in der css dann drin sein müssen, müsstest du der Doku des viewers oder direkt aus dem Quelltext entnehmen.

    Das macht natürlich nur Sinn, wenn man ein gewisses Verständnis für HTML und CSS mitbringt.


    Zuletzt modifiziert von Mairu am 01.05.2014 - 15:13:31
    Und auch immer mal ein Blick auf die FAQ werfen. | Mairus Ilchseite
    0 Mitglieder finden den Beitrag gut.
  4. #4
    User Pic
    SFW-Ozzwald Mitglied
    Registriert seit
    29.05.2012
    Beiträge
    99
    Beitragswertungen
    0 Beitragspunkte
    @Lord|Schirmer

    Super, da war ich mir eh schon nicht sicher, das sieht jetzt auf jeden Fall schon mal so aus, als ginge es in die richtige Richtung.
    Wenn ich jetzt noch den schwarzen Hintergrund wegbekommen würde :/

    Aber bis hier schon mal vielen Dank!
    0 Mitglieder finden den Beitrag gut.
  5. #5
    User Pic
    Lord|Schirmer Administrator
    Registriert seit
    21.03.2007
    Beiträge
    7.644
    Beitragswertungen
    1195 Beitragspunkte
    Den Hinweis von mir mit dem von Mairu ergänzen ...

    Am Besten eine eigene style.css für dieses Iframe erstellen.

    Klicke auf diesen Link und schau Dir den Quelltext an. Dann weisst Du welche Klassen und Tabellen usw. angesprochen werden können.


    Zuletzt modifiziert von Lord|Schirmer am 01.05.2014 - 15:55:58
    rules :: doku :: faq :: linkus
    0 Mitglieder finden den Beitrag gut.
  6. #6
    User Pic
    SFW-Ozzwald Mitglied
    Registriert seit
    29.05.2012
    Beiträge
    99
    Beitragswertungen
    0 Beitragspunkte
    Hab ein default.css dafür gefunden, jetzt heißt es wohl "bastelstunde" ...

    html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:none}
    body{color:black;background:white}
    table{border-collapse:separate;border-spacing:0}
    
    
    .big-title
    {
    	padding-bottom:10px;
    	font-family:"Arial",sans-serif;
    	font-weight:bold;
    	font-size:20px;
    	color:#353535;
    	line-height:30px;
    	margin-top:3px;
    }
    
    
    body
    {
    	margin:0;
        padding:0px;
        border:0;
    	font-family: "Segoe UI", Tahoma, Geneva, Verdana;
    	font-size: 0.8em;
    	font-weight: normal;
    	background-color:#f4f4f4;
    }
    
    
    a
    {
    	color:#308dbf;
    	text-decoration:none;
    }
    
    a:hover
    {
    	text-decoration:underline;
    }
    
    a:visited
    {
    	color:#308dbf;
    }
    
    table
    {
    	border-spacing:0px;
    	width:100%;
    	border-collapse:collapse;
    }
    
    .wrapper_div
    {
    	min-width: 700px;
    	padding:10px;
    }
    
    .table-header-row td
    {
    	line-height:20px;
    	border:1px solid;
    	border-color:#d7d7d7;
    	border-top:0;
    	color:#8a8a8a;
    	font-size:11px;
    	height:30px;
    	background: url('../images/box-title-gradient.png');
    	text-shadow:0px 1px 0px #FFFFFF;
    }
    
    .table-row td
    {
    	/*cursor:pointer;*/
    	font-size:12px;
    	color:#666666;
    	border:1px solid;
    	border-color:#ededed;
    	background-color:#fafafa;
    	padding-left:8px;
    	height:30px;
    	text-shadow:0px 1px 0px #FFFFFF;
    }
    .table-scoreboard-player-row td 
    {
    	font-size:12px;
    	color:#666666;
    	border:1px solid;
    	border-color:#ededed;
    	padding:0px;
    	padding-left:8px;
    	height:20px;
    	text-shadow:0px 1px 0px #FFFFFF;
    }
    
    .table-scoreboard-player-row 
    {
    	background-color: #fafafa; 
    }
    
    .table-scoreboard-player-row:hover 
    {
    	background-color: #EEEEEE; 
    }
    
    .table-row a
    {
    	text-decoration:none;
    	color:#308dbf;
    	font-size:13px;
    }
    .table-row a:hover
    {
    	text-decoration:underline;
    }
    td
    {
    	padding-left:6px;
    	padding-right:6px;
    }
    
    .box-gray {margin-top:10px;background-color:#ececec;padding:10px;border: 1px solid;border-color:#dbdbdb;}
    .box-titel-small {font-family: Verdana, Geneva, Tahoma, sans-serif;font-weight:bold;font-size: 11px;color:#308dbf;margin-bottom:8px;padding-bottom:5px;border-bottom:1px solid;border-color:#dbdbdb;}
    
    
    .button-tiny{background:url(../images/action_button_blank.png) no-repeat;width:16px;height:16px;cursor:pointer;font-size:10px;font-family:Arial,sans-serif;color:#000;text-shadow:0 1px #fcda87;border:0;text-align:center;padding:0;}
    .button-tiny-32{width:32px;background:url(../images/action_button_blank_32.png)}
    .button-tiny a{text-align:center;}
    .button-tiny-active {font-size:11px;font-weight:bold}
    
    .button-small{margin:3px;background:url(../images/button-small.png) no-repeat;width:106px;height:29px;cursor:pointer;line-height:29px;font-size:12px;font-family:Arial,sans-serif;color:#000;text-shadow:0 1px #fcda87;border:0;font-weight:bold;text-align:center;padding:0;}
    .button-small:hover{background-position:0 -29px;}
    .button-small:active{background-position:0 -58px;-ms-background-position-x:1px;-ms-background-position-y:-57px;}
    .button-small:disabled{background-position:0 -87px;cursor:auto;color:#c3c3c3;text-shadow:0 0 transparent;}
    .button-small a{text-align:center;}
    0 Mitglieder finden den Beitrag gut.
  7. #7
    User Pic
    Lord|Schirmer Administrator
    Registriert seit
    21.03.2007
    Beiträge
    7.644
    Beitragswertungen
    1195 Beitragspunkte
    Genau ... hau rein Yes

    ... und dann am Besten als zB. include/designs/schlachtfeldwichser/statistik.css speichern und dann so einbinden:

    <iframe src="http://37.187.25.126:8081/stats/index.html?server_id=33325&embedded=true&css_file=http://sfw-clan.de/include/designs/schlachtfeldwichser/statistik.css"  width="620px" height="600" name="rconNET_stats" scrolling="auto" frameborder="0">
    </iframe>



    Zuletzt modifiziert von Lord|Schirmer am 01.05.2014 - 16:04:18
    rules :: doku :: faq :: linkus
    0 Mitglieder finden den Beitrag gut.
  8. #8
    User Pic
    SFW-Ozzwald Mitglied
    Registriert seit
    29.05.2012
    Beiträge
    99
    Beitragswertungen
    0 Beitragspunkte
    Dürfte ja eigentlich nicht schwer sein

    In der Page guck ich mir mit "Elementinformation anzeigen" das an, was es dann im css ist, pass da an und hoffe lächeln


    Mal eine Frage noch:

    Ich will eigentlich keinen Hintergrund da haben, sondern den nehmen den die HP eh hat.

    Also einfach nur den Text auf dem bereits vorhandenen Hintergrund.
    Auch die Buttons muss ich ändern, aber diese Buttons liegen ja nicht als Datei vor, woher kommen die denn?



    Zuletzt modifiziert von SFW-Ozzwald am 01.05.2014 - 16:44:50
    0 Mitglieder finden den Beitrag gut.
  9. #9
    User Pic
    Mairu Coder
    Registriert seit
    16.06.2006
    Beiträge
    15.334
    Beitragswertungen
    386 Beitragspunkte
    Du musst die Buttons halt "stylen", dabei kannst du auch Hintergrundbilder festlegen ( www.w3schools.com/css/css_background.asp ).
    Der Pfad von Urls muss dann aus Sicht der css Datei erfolgen.

    Wenn die Bilder im gleichen Ordner liegen, wie die css-Datei, dann einfach nur den Namen, ansonsten halt ggf. den Unterordner mit angeben.
    Und auch immer mal ein Blick auf die FAQ werfen. | Mairus Ilchseite
    0 Mitglieder finden den Beitrag gut.
  10. #10
    User Pic
    SFW-Ozzwald Mitglied
    Registriert seit
    29.05.2012
    Beiträge
    99
    Beitragswertungen
    0 Beitragspunkte
    Guten Morgen,
    das was ich aber noch nicht verstehe ist, die bisherigen Buttons sind ja auch nicht in der css angegeben; wenn das wäre, dann könnte ich mich daran ja entlang hangeln
    0 Mitglieder finden den Beitrag gut.
  11. #11
    User Pic
    Mairu Coder
    Registriert seit
    16.06.2006
    Beiträge
    15.334
    Beitragswertungen
    386 Beitragspunkte
    Da sind doch 2 css Dateien angeben, in der 2. sind auch Bilder drin, ganz unten: 37.187.25.126:8081/templates/stats/default_embedded.css
    Und auch immer mal ein Blick auf die FAQ werfen. | Mairus Ilchseite
    0 Mitglieder finden den Beitrag gut.
  12. #12
    User Pic
    SFW-Ozzwald Mitglied
    Registriert seit
    29.05.2012
    Beiträge
    99
    Beitragswertungen
    0 Beitragspunkte
    Die machen aber leider nur die Buttons oben "search", "clear search", 1,2,3 usw....


    In der ersten css steht ein Code für die Sortierbuttons, nur komm ich damit noch nicht ganz zurecht

    Habe das versucht mal zusammen zu packen, leider passiert: Nix traurig

    html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:none}
    body{color:black;background:white}
    table{border-collapse:separate;border-spacing:0}
    
    
    
    .big-title
    {
    	padding-bottom:10px;
    	font-family:"Arial",sans-serif;
    	font-weight:bold;
    	font-size:15px;
    	color:#FFFFFF;
    	line-height:20px;
    	margin-top:3px;
    }
    
    
    body
    {
    	margin:0;
        padding:0px;
        border:0;
    	font-family: "Segoe UI", Tahoma, Geneva, Verdana;
    	font-size: 0.8em;
    	font-weight: normal;
    	background-color:#333333;
    }
    
    
    a
    {
    	color:#308dbf;
    	text-decoration:none;
    }
    
    a:hover
    {
    	text-decoration:underline;
    }
    
    a:visited
    {
    	color:#308dbf;
    }
    
    table
    {
    	border-spacing:0px;
    	width:100%;
    	border-collapse:collapse;
    }
    
    .wrapper_div
    {
    	min-width: 500px;
    	padding:0px;
    }
    
    .table-header-row td
    {
    	line-height:20px;
    	border-top:0;
    	color:#FAFAFA;
    	font-size:11px;
    	height:16px;
    }
    
    .active_player
    {
    	color:green !important;
    }
    
    .active_player_row
    {
    	background-color:#edf9eb;
    }
    
    .order_button
    {
    	margin: 0;
    	display:inline;
    	padding:0;
    	cursor: pointer;
    	border:0px;
    	background: url(images/order_arrow.png) no-repeat;
    	width:10px;
    	height:10px;
    }
    
    .order_desc_active
    {
    	background-position:-10px 0px;
    }
    
    .order_desc
    {
    	background-position:-30px 0px;
    }
    .order_desc:hover
    {
    	background-position:-10px 0px;
    }
    
    .order_asc
    {
    	background-position:-20px 0px;
    }
    .order_asc:hover
    {
    	background-position:0 0px;
    }
    
    .order_asc_active
    {
    	background-position:0 0px;
    }
    
    .table-row td
    {
    	/*cursor:pointer;*/
    	font-size:12px;
    	color:#666666;
    	border:1px solid;
    	border-color:#ededed;
    	background-color:#fafafa;
    	padding-left:8px;
    	height:30px;
    }
    .table-scoreboard-player-row td 
    {
    	font-size:10px;
    	color:#FAFAFA;
    	padding:0px;
    	padding-left:8px;
    	height:12px;
    }
    
    .table-scoreboard-player-row 
    {
    	background-color: #333333;
    }
    
    .table-scoreboard-player-row:hover 
    {
    	background-color: #555555; 
    }
    
    .table-row a
    {
    	text-decoration:none;
    	color:#308dbf;
    	font-size:13px;
    }
    .table-row a:hover
    {
    	text-decoration:underline;
    }
    td
    {
    	padding-left:6px;
    	padding-right:6px;
    }
    
    .box-gray {margin-top:10px;background-color:#333333;padding:10px;border: 1px solid;border-color:#dbdbdb;}
    .box-titel-small {font-family: Verdana, Geneva, Tahoma, sans-serif;font-weight:bold;font-size: 11px;color:#F0F0F0;margin-bottom:8px;padding-bottom:5px;border-bottom:1px solid;border-color:#dbdbdb;}
    
    .button-tiny{background:url(../images/action_button_blank.png) no-repeat;width:16px;height:16px;cursor:pointer;font-size:10px;font-family:Arial,sans-serif;color:#000;border:0;text-align:center;padding:0;}
    .button-tiny-32{width:32px;background:url(../images/action_button_blank_32.png)}
    .button-tiny a{text-align:center;}
    .button-tiny-active {font-size:11px;font-weight:bold}
    
    .button-small{margin:3px;background:url(../images/button-small.png) no-repeat;width:106px;height:29px;cursor:pointer;line-height:29px;font-size:12px;font-family:Arial,sans-serif;color:#000;border:0;font-weight:bold;text-align:center;padding:0;}
    .button-small:hover{background-position:0 -29px;}
    .button-small:active{background-position:0 -58px;-ms-background-position-x:1px;-ms-background-position-y:-57px;}
    .button-small:disabled{background-position:0 -87px;cursor:auto;color:#c3c3c3;}
    .button-small a{text-align:center;}



    EDIT:

    Ah, es wird lächeln


    Zuletzt modifiziert von SFW-Ozzwald am 03.05.2014 - 13:01:28
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu HTML, PHP, SQL,...

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten