mam dwa przyciski których nie moge ustawić... Jak widać ----Link----
Użyłem aby to zrobić:
Kod
left: 50px;
top: 37px;
top: 37px;
Ale to wogóle nie działa...
CSS:
Kod
body{
padding: 0px;
margin: 0px;
background:#3d3730;
}
div#tab1
{
width: 775px;
}
.heder
{
width: 775px;
height: 90px;
background: url('images/1_03.jpg');
}
.home
{
left: 50px;
top: 37px;
width: 52px;
height: 24px;
background: url('images/home.jpg');
}
.home:hover
{
left: 50px;
top: 37px;
width: 52px;
height: 24px;
background: url('images/home1.gif');
}
.kontakt
{
left: 120px;
top: 37px;
width: 62px;
height: 24px;
background: url('images/kontakt.jpg');
}
.kontakt:hover
{
left: 120px;
top: 37px;
width: 62px;
height: 24px;
background: url('images/kontakt1.gif');
}
padding: 0px;
margin: 0px;
background:#3d3730;
}
div#tab1
{
width: 775px;
}
.heder
{
width: 775px;
height: 90px;
background: url('images/1_03.jpg');
}
.home
{
left: 50px;
top: 37px;
width: 52px;
height: 24px;
background: url('images/home.jpg');
}
.home:hover
{
left: 50px;
top: 37px;
width: 52px;
height: 24px;
background: url('images/home1.gif');
}
.kontakt
{
left: 120px;
top: 37px;
width: 62px;
height: 24px;
background: url('images/kontakt.jpg');
}
.kontakt:hover
{
left: 120px;
top: 37px;
width: 62px;
height: 24px;
background: url('images/kontakt1.gif');
}
<?php <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <title>KMP.eu | Klub Młodego Przedsiębiorcy</title> <link type="text/css" rel="stylesheet" href="style.css" media="all" /> </head> <script> myWidth = 775; function $S(id){ return document.getElementById(id).style; } function setupDivs(){ var leftMargin = parseInt((screen.width - myWidth)/2); $S('tab1').marginLeft = leftMargin; } </script> <body align="center" onload="setupDivs()"> <div id="tab1"> <div class="heder"> <a class="home" href="index.php"></a> <a class="kontakt" href="kontakt"></a> </div> <div class="heder2"></div> <div class="heder3"></div> </div> </body></html> ?>
Przepraszam za link ale musiałem go podać aby pokazać problem