Witam.....
mam dwa przyciski których nie moge ustawić... Jak widać ----Link----
Użyłem aby to zrobić:
Kod
left: 50px;  
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');

}


  1. <?php
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  4. <title>KMP.eu | Klub Młodego Przedsiębiorcy</title>
  5. <link type="text/css" rel="stylesheet" href="style.css" media="all" />
  6. </head>
  7. <script>
  8. myWidth = 775;
  9. function $S(id){
  10. return document.getElementById(id).style;
  11. }
  12. function setupDivs(){
  13. var leftMargin = parseInt((screen.width - myWidth)/2);
  14. $S('tab1').marginLeft = leftMargin;  
  15. }
  16. </script>
  17. <body align="center" onload="setupDivs()">
  18.  <div id="tab1">
  19.  <div class="heder">
  20. <class="home" href="index.php"></a>
  21. <class="kontakt" href="kontakt"></a>
  22. </div>
  23.  <div class="heder2"></div>
  24.  <div class="heder3"></div>
  25.  </div>
  26.  
  27.  </body></html>
  28. ?>


Przepraszam za link ale musiałem go podać aby pokazać problem