<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="style.css" /> <style type="text/css"> .tab { cursor: pointer; float: left; clear: none; width: 126px; height: 24px; line-height: 24px; color: White; text-align: center; margin: 0px 4px; background-image: url(img/tab.gif); } .hover, .active { background-image: url(img/tab_hover.gif); } .tabsContentOuter { width: 450px; height: 200px; border: 1px solid #68660B; float: left; clear: none; } #tabsContent { padding: 2px 4px; } </style> <script type="text/javascript"> function OnLoad() { var img = new Image(); img.src = "img/tab_hover.gif"; var tabs = mint.gui.CreateTabWidget("tabsContent"); tabs.fading = true; tabs.activeClass = "active"; tabs.hoverClass = "hover"; tabs.AddItem("tab1", "tab1", "text", "tab1.html"); tabs.AddItem("tab2", "tab2", "text", "tab2.html"); tabs.AddItem("tab3", "tab3", "text", "tab3.html"); mint.fx.Round("tabsContentOuter", "all", "small", true); } </script> </head> <body onload="OnLoad()"> <div id="tabsContentOuter" class="tabsContentOuter"> </div> </body> </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