Witam.
Mam problem
Mógłby mi ktoś zrobić w tym kodzie:
Aby skin był wycentrowany:
na środku ekranu ?
Już sobie poradziłem wystarczy dodać w body:
Kompatybilność z Internet Explorer, Firefox, Opera, Google Chrome
Mam problem
Mógłby mi ktoś zrobić w tym kodzie:
Code:
/*
Copyright (C) 2007 Nicaw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
html {
overflow-y: scroll;
}
body {
background-color: white;
background-image: url(magma/background.gif);
background-repeat: repeat-x;
}
img {
border: 0;
}
a {
color: black;
}
h2 {
background-repeat: no-repeat;
font: normal normal 1.5em "Georgia",serif;
text-decoration: none;
height: 40px;
padding-left: 25px;
}
legend {
color: black;
}
form,input {
margin: 0;
padding: 0;
display: inline;
}
fieldset{
padding: 5px;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
a:hover{
font-weight: normal;
color: gray;
}
.color0 {
background-color: #a0a0a0;
color: white;
}
.color1 {
background-color: #e2e2e2;
}
.color2 {
background-color: #f5f5f5;
}
.top {
color: black;
}
.online {
color: #51850d;
font-weight: bold;
}
.offline {
font-weight: bold;
}
.rowselect {
cursor: pointer;
}
.rowselect:hover {
background-color: #fcecbf;
}
.task-menu{
cursor: pointer;
}
.task-menu li{
list-style-type: none;
height: 16px;
background-repeat: no-repeat;
padding-left: 20px;
padding-bottom: 5px;
}
.task-menu li:hover {
background-color: #a0a0a0;
}
#container {
width: 777px;
position: 0 auto;
}
#header {
background-image: url(magma/header.gif);
background-repeat: no-repeat;
position: absolute;
width: 800px;
height: 190px;
}
#server_name {
display: none;
}
#panel {
position: absolute;
margin-top: 180px;
}
#panel a:hover {
font-weight: bold;
color: #ff8707;
}
#panel li {
background-image: url(magma/list-item.gif);
background-repeat: no-repeat;
padding-left: 30px;
list-style-type: none;
height: 23px;
}
#panel .top {
background-image: url(magma/top.gif);
width: 174px;
height: 25px;
padding-left: 0;
padding-right: 0;
padding-top: 5px;
text-align: center;
font-weight: bold;
}
#panel .mid {
background-image: url(magma/mid.gif);
text-align: center;
padding: 5px;
}
#panel .bot {
background-image: url(magma/bot.gif);
background-repeat: no-repeat;
padding: 0;
margin: 0;
width: 174px;
height: 13px;
}
#panel ul {
width: 174px;
padding: 0;
margin: 0;
}
#panel a {
text-decoration: none;
color: black;
}
#panel a:hover {
font-weight: bold;
}
#content {
position: absolute;
margin-left: 174px;
margin-top: 180px;
}
#content .top {
background-image: url(magma/big-top.gif);
width: 626px;
height: 25px;
padding-left: 0;
padding-right: 0;
padding-top: 5px;
text-align: center;
font-weight: bold;
}
#content .mid {
background-image: url(magma/big-mid.gif);
background-repeat: repeat-y;
padding: 20px;
}
#content .bot {
background-image: url(magma/big-bot.gif);
background-repeat: no-repeat;
height: 40px;
}
#error {
background-image: url(magma/error.png);
background-repeat: no-repeat;
position: absolute;
font-family: Verdana;
font-size: 8pt;
font-weight: bold;
width: 175px;
height: 70px;
padding-left: 60px;
padding-right: 15px;
padding-top: 20px;
padding-bottom: 20px;
margin-left: 200px;
margin-top: 100px;
cursor: pointer;
}
#captcha-image {
margin-top: 5px;
}
#account-image {
background-image: url(magma/introduction.gif);
background-repeat: no-repeat;
width: 300px;
height: 200px;
float: right;
}
#choose-skill {
float: left;
margin-right: 20px;
}
#iobox {
z-index: 10;
position: fixed;
/*IE position: absolute;*/
background-color: #e2e2e2;
border: 2px outset #000;
cursor: move;
}
#iobox fieldset {
cursor: default;
}
Aby skin był wycentrowany:
na środku ekranu ?
Już sobie poradziłem wystarczy dodać w body:
Code:
width:50%;
min-width:500px;
max-width:50em;
margin: 0 auto;
Kompatybilność z Internet Explorer, Firefox, Opera, Google Chrome
Last edited by a moderator: