Chcem Vas poprosit
trosku som pomenil desing kedze som nikoho nenasiel a je tam problem vo firefoxe mi to zobrazuje super presne ako chcem aj v chrome ale problem je ze asi len u mna doma hocikde inde je to na kkt.
Skuste mi poradit kde je chyba
prvy subor layout.css
kód:
Kód:
/*posunutie okraja na 10*/
body {
/* margin: 10 auto; */
/* padding: 0; */
background-color: white;
background-image: url(bg.gif);
}
a {
text-decoration:none;
color: blue;
}
/*hlavicka tam kde je nadpis*/
h1 {
font-size: 2.5em;
margin: 0 0 0.7em;
padding: 0.2em;
text-align: center;
background-color: #B9B9B9;
color: #B22222;
border: 2px black;
text-decoration: none;
}
h2 {
border-bottom: 1px solid #B22222;
}
html>body h1 {
border-color: black; /* needed by IE */
}
ul#Navigation {
font-size: 0.83em; /*poziciovanie*/
/* float: right; */
position: absolute;
top: 83px;
left: 1008px;
width: 18em;
margin: 0 0 0.0em;
padding: 0;
border: 1px black; /*farba asi pozadia menu urobilo to medzeru */
/*background-color: #F1E470;*/
color: black;
}
ul#Navigation li {
list-style: square;
margin: 0;
padding: 0.5em;
}
ul#Navigation a {
display: block; /*rozostupy*/
padding: 0.5em;
font-weight: bold;
background-color: Aqua;
text-decoration: none;
}
ul#Navigation a:link {
color: #B22222;
background-color: #F1E470;
text-decoration: none;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
ul#Navigation a:visited {
color: Black;
background-color: #F1E470;
text-decoration: none;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
ul#Navigation a:hover {
color: White;
background-color: #B22222;
text-decoration: none;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
ul#Navigation a:active {
color: Olive;
background-color: #B22222;
text-decoration: none;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
div.info {
font-size: 0.9em;
float: right;
width: 12em;
margin: 0 0 1.1em;
padding: 0;
background-color: #F1E470;
color: black;
border: 1px black;
border-right: 9px;
}
div.info a {
background-color: #F1E470;
color: #B22222;
}
/*menu suroviny*/
div#blank {
font-size: 0.9em;
/* float: right; */
position: absolute;
top: 90px;
left: 10px;
margin: 0 0 1.1em;
padding: 0;
/*background-color: #FFFFFF; */
color: black;
border: 0px dashed black;
}
div.info h2 {
font-size: 1.33em;
margin: 0.2em 0.5em;
}
div#blank h2 {
font-size: 1.33em;
margin: 0.2em 0.5em;
}
div.info p {
font-size: 1em;
margin: 0.5em;
}
div#blank p {
font-size: 1em;
margin: 0.5em;
}
div#content {
position: absolute;
top: 90px;
left: 200px;
width: 60%;
height: auto;
padding: 1em;
background-color: #F1E470;
color: #B22222;
border: 3px;
}
* html div#content {
height: 1em; /* Workaround against the 3-pixel-bug of the IE */
}
div#content h2 {
font-size: 1.2em;
margin: 0.2em 0;
}
div#content p {
font-size: 1em;
margin: 1em 0;
}
/*peticka*/
/* p#footer {
clear: both;
font-size: 0.9em;
margin: 0;
padding: 0.1em;
text-align: center;
background-color: silver;
color: black;
border: 0px solid black;
position: auto; */
}
tr.row_1 {
background-color: #898989;
color: black;
}
tr.row_2 {
background-color: #999999;
color: black;
}
tr.title {
background-color: #DD0000;
color: green;
}
table.nice {
border: 1px solid ;
}
table.nice td, table.nice th {
border: 1px solid #B22222;
}
.no_border {
background-color: #F1E470;
color: #B22222;
width: 100%;
}
.no_border_boxed {
background-color: #F1E470;
color: #B22222;
width: 94%;
border: 1px solid black;
}
.no_border_box {
background-color: #F1E470;
color: black;
width: 4%;
border: 1px solid black;
}
.submit {
background-color: #6666FF;
color: black;
border: 1px solid black;
}
.input {
background-color: #F1E470;
color: black;
border: 1px solid black;
}
.nice_input {
background-color: #F1E470;
color: black;
border: 1px solid black;
}
#information div.info {
color: white;
position: absolute;
width: 300px;
border: 1px solid black;
display: none;
background-color: silver;
font-size: 11px;
}
ramcek {
position: absolute;
top: 90px;
left: 200px;
}
druhy index.php
kód:
Kód:
<?
?>
<?
//informations for this file
$designname = 'default';
$bannerurl = 'images/banner_1.gif';
$iconurl = 'images/icon.ico';
$javascripturl = 'includes/java.js';
$normal_color = "silver";
$shortusername = substr("$benutzername", 0, 11);
//informations for the includes sites, e.g. the news output
$color_news_message = "#999999";
$color_news_title = "#777777";
$news_width = "90%";
$date_width = "110";
echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>".$game_name."</title>\n";
echo '<meta http-equiv="Content-Type" content="text/html;charset=utf-8">'."\n";
echo "<SCRIPT src='".$javascripturl."' type='text/javascript'></SCRIPT>\n";
echo "<link rel='shortcut icon' href='".$iconurl."'>\n";
echo "<link rel='stylesheet' type='text/css' href='design/".$designname."/layout.css'>\n";
echo "</head>\n\n";
echo "<body bgcolor='#999999'>\n";
echo "<h1><img src='".$bannerurl."' alt='".$game_name."' border=1></h1>\n\n";
echo "<!-- Navigation Box -->\n";
echo "<ul id='Navigation'>\n";
echo "$navigation";
echo "</ul>";
echo "<!-- Raw Materials Box -->\n";
echo "<div id='blank'>\n";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n";
echo "<tr>\n";
echo "<td>\n\n";
echo "<div class='info'>\n";
echo "<h3>",$lang["rawmaterials"],"</h3>\n";
echo "<table border=0>";
echo "<p><img src='picture/gold.png'></img>",$lang['gold'],":$raw_material_gold</tr>\n";
echo "<p><img src='picture/stone.png'></img>",$lang['stone'],":$raw_material_stone</tr>\n";
echo "<p><img src='picture/wood.png'></img>",$lang['wood'],":$raw_material_wood</td></tr>\n";
echo "<p><img src='picture/food.png' width='18' height='18'></img>",$lang['food'],":$raw_material_food</tr>\n";
echo "<p><img src='picture/gold.png'></img>",$lang['iron'],":$raw_material_iron</tr>\n";
echo "<p><img src='picture/drop.png' width='15' height='15'></img>",$lang['oil'],":$raw_material_oil</tr>\n";
echo "<p><img src='picture/gold.png'></img>",$lang['energy'],":$raw_material_energy</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n\n";
echo "</div>\n\n";
echo "</ul>";
echo "<!-- Info Box -->\n";
echo "<div class='info'>\n";
if(isset($_GET['adminpanel'])){$adminpanel = securevar($_GET['adminpanel']);}
if(isset($_POST['adminpanel'])){$adminpanel = securevar($_POST['adminpanel']);}
if($adminpanel != 1)
{
if($admin == 1)
{
echo "<h2><a href='index.php?site=".$site."&adminpanel=1' style='color:black;' ";
echo "title='".$benutzername."'>".$shortusername."</a></h2>\n";
}
else
{
echo "<h2><a href='index.php?site=profil&user=".$nummer."' ";
echo "title='".$benutzername."' style='color:black;'>".$shortusername."</a></h2>\n";
}
echo "<table border=0>\n";
echo "<tr>\n";
echo "<td>".$lang[inbox].":</td>\n";
echo "<td>".count_messages($benutzername, 'messages_in')."</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>".localize("user_online").":</td>\n";
echo "<td>".online()."</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
else
{
if($admin == 1)
{
echo "<h2><a href='index.php?site=".$site."&adminpanel=0' style='color:black;'>",$lang['adminpanel'],"</a></h2>\n";
echo "<b><a href='index.php?site=admin&adminpanel=1' style='color:black;'>",$lang['home'],"</a></b><br>\n";
echo "<b><a href='index.php?site=admin_clan&adminpanel=1' style='color:black;'>",$lang['clan'],"</a></b><br>\n";
echo "<b><a href='index.php?site=admin_units&adminpanel=1' style='color:black;'>",$lang['unit'],"</a></b><br>\n";
echo "<b><a href='index.php?site=admin_era&adminpanel=1' style='color:black;'>",$lang['era-system'],"</a></b><br>\n";
echo "<b><a href='index.php?site=admin_news&adminpanel=1' style='color:black;'>",$lang['news'],"</a></b><br>\n";
echo "<b><a href='index.php?site=admin_user&adminpanel=1' style='color:black;'>",$lang['user'],"</a></b><br>\n";
echo "<b><a href='index.php?site=admin_other&adminpanel=1' style='color:black;'>",$lang['other'],"</a></b><br>\n";
$show_adminpanel = 1;
}
else
{
echo $lang['right'];
}
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n\n";
echo "<div id='content'>\n";
include 'includes/inhalt.php';
echo "</div>\n\n";
//echo "<p id='footer'><a href='index.php?site=impressum'>BATTLE ERA 0.1a</p>\n\n"; //
echo "</body>\n";
echo "</html>\n";
?>
Momentalne projekt bezi na battle-era.bhole.sk
demoucet
user test
pass test
Poprosim pomoc lebo tomuto fakt nechapem
| Kody vkladaj do znacky [code]. Ďuri