473,804 Members | 3,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stick to left

22 New Member
Hi

How can i stick tabs to left. Now it has 40px distance to left.

Expand|Select|Wrap|Line Numbers
  1. <style>
  2. #Content {
  3.             background-color: #fafafa;
  4.             border: 1px solid #a2b6cb;
  5.             padding: 10px;
  6.             margin-top: -13px;
  7.         }
  8.  
  9. UL#Tabs {
  10.             font-family: Verdana, Arial;
  11.             font-size: 12px;
  12.             font-weight: bold;
  13.             list-style-type: none;
  14.             padding-bottom: 28px;
  15.             border-bottom: 1px solid #a2b6cb;
  16.             margin-bottom: 12px;
  17.             z-index: 1;
  18.         }
  19.         #Tabs LI.Tab {
  20.             float: left;
  21.             height: 25px;
  22.             background-color: #deedfb;
  23.             margin: 2px 0px 0px 5px;
  24.             border: 1px solid #a2b6cb;
  25.         }
  26.         #Tabs LI.Tab A {
  27.             float: left;
  28.             display: block;
  29.             color: #666666;
  30.             text-decoration: none;
  31.             padding: 5px;
  32.         }
  33.         #Tabs LI.Tab A:hover {
  34.             background-color: #bfe0fe;
  35.             border-bottom: 1px solid #bfe0fe;
  36.         }
  37.         /* Selected Tab */
  38.         #Tabs LI.SelectedTab {
  39.             float: left;
  40.             height: 25px;
  41.             background-color: #fafafa;
  42.             margin: 2px 0px 0px 5px;
  43.             border-top: 1px solid #a2b6cb;
  44.             border-right: 1px solid #a2b6cb;
  45.             border-bottom: 1px solid #fafafa;
  46.             border-left: 1px solid #a2b6cb;
  47.         }
  48.         #Tabs LI.SelectedTab A {
  49.             float: left;
  50.             display: block;
  51.             color: #666666;
  52.             text-decoration: none;
  53.             padding: 5px;
  54.             cursor: default;
  55.         }
  56. </style>
  57.  
  58. <script type="text/javascript">
  59.         // Index Page
  60.         function index() {
  61.             // Tab
  62.             document.getElementById('IndexTab').className = 'SelectedTab';
  63.             document.getElementById('InstallTab').className = 'Tab';
  64.             document.getElementById('UpgradeTab').className = 'Tab';
  65.             document.getElementById('UsageTab').className = 'Tab';
  66.             // Page
  67.             document.getElementById('Index').style.display= 'block';
  68.             document.getElementById('IndexTab').className = 'SelectedTab';
  69.             document.getElementById('Install').style.display = 'none';
  70.             document.getElementById('Upgrade').style.display = 'none';
  71.             document.getElementById('Usage').style.display = 'none';
  72.         }
  73.         // Installation Page
  74.         function install() {
  75.             // Tab
  76.             document.getElementById('IndexTab').className = 'Tab';
  77.             document.getElementById('InstallTab').className = 'SelectedTab';
  78.             document.getElementById('UpgradeTab').className = 'Tab';
  79.             document.getElementById('UsageTab').className = 'Tab';
  80.             // Page
  81.             document.getElementById('Index').style.display= 'none';
  82.             document.getElementById('Install').style.display = 'block';
  83.             document.getElementById('Upgrade').style.display = 'none';
  84.             document.getElementById('Usage').style.display = 'none';
  85.         }
  86.         // Upgrade Page
  87.         function upgrade() {
  88.             // Tab
  89.             document.getElementById('IndexTab').className = 'Tab';
  90.             document.getElementById('InstallTab').className = 'Tab';
  91.             document.getElementById('UpgradeTab').className = 'SelectedTab';
  92.             document.getElementById('UpgradeTab').href = 'Tab';
  93.             document.getElementById('UsageTab').className = 'Tab';
  94.             // Page
  95.             document.getElementById('Index').style.display= 'none';
  96.             document.getElementById('Install').style.display = 'none';
  97.             document.getElementById('Upgrade').style.display = 'block';
  98.             document.getElementById('Usage').style.display = 'none';
  99.         }
  100.         // Usage Page
  101.         function usage() {
  102.             // Tab
  103.             document.getElementById('IndexTab').className = 'Tab';
  104.             document.getElementById('InstallTab').className = 'Tab';
  105.             document.getElementById('UpgradeTab').className = 'Tab';
  106.             document.getElementById('UsageTab').className = 'SelectedTab';
  107.             // Page
  108.             document.getElementById('Index').style.display= 'none';        
  109.             document.getElementById('Install').style.display = 'none';
  110.             document.getElementById('Upgrade').style.display = 'none';
  111.             document.getElementById('Usage').style.display = 'block';
  112.         }
  113. </script>
  114.  
  115. <ul id="Tabs">
  116.         <li id="UsageTab" class="Tab"><a href="#Usage" onclick="usage(); return false;" title="Usage Instructions">Usage</a></li>
  117.         <li id="UpgradeTab" class="Tab"><a href="#Upgrade" onclick="upgrade(); return false;" title="Upgrade Instructions">Upgrade</a></li>
  118.         <li id="InstallTab" class="Tab"><a href="#Installation" onclick="install(); return false;" title="Installation Instructions">Installation</a></li>
  119.         <li id="IndexTab" class="SelectedTab"><a href="#Index" onclick="index(); return false;" title="Index Instructions">Index</a></li>
  120.  
  121. </ul>
  122.  
  123. <div id="Content">
  124.     <!-- Index -->
  125.     <div id="Index">
  126.         INDEX
  127.     </div>
  128.  
  129.     <!-- Installation Instructions -->
  130.     <div id="Install" style="display: none;">
  131.         INSTALL
  132.     </div>
  133.  
  134.     <!-- Upgrade Instructions -->    
  135.     <div id="Upgrade" style="display: none;">
  136.         UPGRADE
  137.     </div>
  138.  
  139.     <!-- Usage Instructions -->    
  140.     <div id="Usage" style="display: none;">
  141.         USAGE
  142.     </div>
  143. </div>
  144.  
Attached Files
File Type: txt asdf.txt (4.5 KB, 433 views)
Oct 21 '09 #1
1 4441
ryachza
7 New Member
Add 'padding-left: 0;' to the UL#Tabs declaration. You set padding-bottom, but never zeroed out the left.

A recommendation for the future: try setting all margins/padding to 0 and build from there, rather than trying to debug default browser behavior.
Oct 23 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
7527
by: Mr.Clean | last post by:
I'd like to know how to "tack" a DIV to the bottom of the browser window This would also have to observe all other content in the flow. Please see this: http://www.austinmetrobaseball.com/2005_redesign/index.html The "Want to join AMBL?" content area I'd like to have stuck to the bottom below the standings at all times, no matter how wide the browser is.
2
5818
by: Marty | last post by:
Hi, How do we make a form "stick" to another window (something like Winamp)? I'm using C# .NET 2003. Thank you very much. Marty
2
1413
by: ellisydjogra | last post by:
i have down loaded net framework 1.1 but i still can not get my usb2.0 menory stick to work on my computer? any idea's pls?
0
1422
by: Stijn | last post by:
I wrote an application where the user needs an USB memory stick. When the user closes the program, some data is written to the stick. Can I write some code so my application is closing the usb stick whithout an action of the user? When I do not implement this, the user have to click on an icon in the taskbar for removing the usb stick safely. But i want to keep it simpel for the user ;)
4
1173
by: telesphore4 | last post by:
Is there a better way to make the subclassing of built-in types stick? The goal is to have the the fields of a class behave like strings with extra methods attached. That is, I want the fact that the fields are not strings to be invisible to the client programmers. But I always want the extras to be there for the clients too. What I'm doing is subclassing str. Of course, whenever you then set mystr = 'a string' you loose the extra...
10
3627
by: John Salerno | last post by:
Is there a way to 'install' and use Python on a memory stick, just as you would on any computer? I use Windows, and I know the installation does things with the registry, so probably I couldn't use the executable file to install it. But is it possible to do it some other way, such as how you might build it yourself on Linux (although I don't know how to do that yet) and then just write and run scripts normally straight from your memory...
4
2074
Eep˛
by: Eep˛ | last post by:
I'm trying to change the Firefox extension Scrollbar Anywhere so the mouse cursor does not move when scrolling. Here's the code but I don't know what to change: // Constants const sbawLeftButton = 0; const sbawMiddleButton = 1; const sbawRightButton = 2; var sbawIsWin, sbawIsMac, sbawIsNix; var sbawContentArea, sbawRenderingArea, sbawContextPopup; var sbawFxV1_0; var sbawEnableContextMenu;
12
1979
by: hufaunder | last post by:
I often find myself in the situation where at a customers site I have to do some quick debugging or program changes. Obvioiusly, I do not want to install VS2005 on their system. Is there a ways to install VS2005 on a big and fast USB stick, plug it into a computer without VS2005 and start using it there? If not are there any alternatives. Thanks
6
2233
by: Bobby | last post by:
Hi, I'm not 100% sure that this is an Access problem. A friend of mine has an Access 2003 database. Occasionally he brings a copy to me so that I can import some of his data into my Access 2003 database. For years he has done this with no problems by bringing his copy on a CD. However, last week he put his database onto a memory stick and brought it to me. When I try to open the database, I get the error "The Visual Basic for...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.