Zgodnie z tutorialem na stronie domowej projektu stworzyłem nasępujący kod generujący zakładki

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6. <head>
  7. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  8. <link rel="stylesheet" type="text/css" href="style.css" />
  9. <style type="text/css">
  10.  
  11. .tab {
  12. cursor: pointer;
  13. float: left;
  14. clear: none;
  15. width: 126px;
  16. height: 24px;
  17. line-height: 24px;
  18. color: White;
  19. text-align: center;
  20. margin: 0px 4px;
  21. background-image: url(img/tab.gif);
  22. }
  23.  
  24. .hover, .active {
  25. background-image: url(img/tab_hover.gif);
  26. }
  27.  
  28. .tabsContentOuter {
  29. width: 450px;
  30. height: 200px;
  31. border: 1px solid #68660B;
  32. float: left;
  33. clear: none;
  34. }
  35.  
  36. #tabsContent {
  37. padding: 2px 4px;
  38. }
  39.  
  40. </style>
  41. <script type="text/javascript" src="../js/mintajax.js"></script>
  42.  
  43. <script type="text/javascript">
  44.  
  45. function OnLoad() {
  46. var img = new Image();
  47. img.src = "img/tab_hover.gif";
  48.  
  49. var tabs = mint.gui.CreateTabWidget("tabsContent");
  50.  
  51. tabs.fading = true;
  52. tabs.activeClass = "active";
  53. tabs.hoverClass = "hover";
  54.  
  55. tabs.AddItem("tab1", "tab1", "text", "tab1.html");
  56. tabs.AddItem("tab2", "tab2", "text", "tab2.html");
  57. tabs.AddItem("tab3", "tab3", "text", "tab3.html");
  58.  
  59. mint.fx.Round("tabsContentOuter", "all", "small", true);
  60. }
  61.  
  62. </script>
  63. </head>
  64. <body onload="OnLoad()">
  65.  
  66. <div id="tab1" class="tab">Tab #1</div>
  67. <div id="tab2" class="tab">Tab #2</div>
  68. <div id="tab3" class="tab">Tab #3</div>
  69.  
  70. <div id="tabsContentOuter" class="tabsContentOuter">
  71. <div id="tabsContent"></div>
  72. </div>
  73.  
  74. </body>
  75. </html>


Czy ktoś orientuje się jak pozmieniać style, żeby obramowanie dostosowywało się do wielkości tekstu. Zmainay wysokości na auto nie przynoszą rezultatu. Może ktoś już coś takiego zrobił ? Proszę o pomoc