473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

horizontal tab menu

fj
I want to create a tab menu - horizontal with all the tabs left justified
except for the last one which I want right justified.

|------------| |----------| |---------| |---------|
|---------|
|------------|--|----------|--|---------|--|---------|----------------------
----|---------|

I think the above hives you the idea

cheers

fj
Jul 20 '05 #1
5 10454
On Wed, 7 Apr 2004 22:37:32 -0700, fj <fj@mailmefor.inf> wrote:
I want to create a tab menu - horizontal with all the tabs left justified
except for the last one which I want right justified.

|------------| |----------| |---------| |---------|
|---------|
|------------|--|----------|--|---------|--|---------|----------------------
----|---------|

I think the above hives you the idea

cheers

fj

I'm not sure I have what you want in mind. But if you set all the tabs to
float: left; and the last one to float: right;, AND there's sufficient
viewport width, all the tabs will line up L to R and the last one will be
far right.
Jul 20 '05 #2
fj
Cheers
Thanks for that, and thats what i thought but I have not managed to achieve
that yet - any chance of an example?
fj
"Neal" <ne*****@spamrcn.com> wrote in message
news:op**************@news.rcn.com...
On Wed, 7 Apr 2004 22:37:32 -0700, fj <fj@mailmefor.inf> wrote:
I want to create a tab menu - horizontal with all the tabs left justified except for the last one which I want right justified.

|------------| |----------| |---------| |---------|
|---------|
|------------|--|----------|--|---------|--|---------|---------------------- ----|---------|

I think the above hives you the idea

cheers

fj

I'm not sure I have what you want in mind. But if you set all the tabs to
float: left; and the last one to float: right;, AND there's sufficient
viewport width, all the tabs will line up L to R and the last one will be
far right.

Jul 20 '05 #3
Example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<style>
body{
font: 12px verdana;
}

span{
background: #e5e5e5;
padding: 3px 10px;
border: 1px solid #000000;

position: relative;
top: 2px;
}

..left{
float: left;
padding: 5px 1px;
}

..right{
float: right;
padding: 5px 1px;
}

..spacer {
clear: both;
}

..tabContent{
padding: 10px;
border: 1px solid black;
height: 200px;
}

</style>
</head>

<body>

<div class=tabContainer>
<div class=left>
<span>Tab1</span>
<span>Tab2</span>
<span>Tab3</span>
</div>
<div class=right><span>Tab Right</span></div>
<div class="spacer"></div>
</div>
<div class=tabContent>
tab content
</div>

</body>
</html>

For explanation read http://www.realworldstyle.com/split.html

Dont miss dtd declaration, may not work properly is some browsers if
it is left out.

Regards
Kiran Makam
Jul 20 '05 #4
fj
many thanks

fj

"kiran" <ki*******@yahoo.com> wrote in message
news:7c**************************@posting.google.c om...
Example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<style>
body{
font: 12px verdana;
}

span{
background: #e5e5e5;
padding: 3px 10px;
border: 1px solid #000000;

position: relative;
top: 2px;
}

.left{
float: left;
padding: 5px 1px;
}

.right{
float: right;
padding: 5px 1px;
}

.spacer {
clear: both;
}

.tabContent{
padding: 10px;
border: 1px solid black;
height: 200px;
}

</style>
</head>

<body>

<div class=tabContainer>
<div class=left>
<span>Tab1</span>
<span>Tab2</span>
<span>Tab3</span>
</div>
<div class=right><span>Tab Right</span></div>
<div class="spacer"></div>
</div>
<div class=tabContent>
tab content
</div>

</body>
</html>

For explanation read http://www.realworldstyle.com/split.html

Dont miss dtd declaration, may not work properly is some browsers if
it is left out.

Regards
Kiran Makam

Jul 20 '05 #5
fj
many thanks

fj

"kiran" <ki*******@yahoo.com> wrote in message
news:7c**************************@posting.google.c om...
Example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<style>
body{
font: 12px verdana;
}

span{
background: #e5e5e5;
padding: 3px 10px;
border: 1px solid #000000;

position: relative;
top: 2px;
}

.left{
float: left;
padding: 5px 1px;
}

.right{
float: right;
padding: 5px 1px;
}

.spacer {
clear: both;
}

.tabContent{
padding: 10px;
border: 1px solid black;
height: 200px;
}

</style>
</head>

<body>

<div class=tabContainer>
<div class=left>
<span>Tab1</span>
<span>Tab2</span>
<span>Tab3</span>
</div>
<div class=right><span>Tab Right</span></div>
<div class="spacer"></div>
</div>
<div class=tabContent>
tab content
</div>

</body>
</html>

For explanation read http://www.realworldstyle.com/split.html

Dont miss dtd declaration, may not work properly is some browsers if
it is left out.

Regards
Kiran Makam

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code...
2
by: Ansgar Hein | last post by:
I have been playing around with several different versions for a horizontal menu, but I haven't been able to build a horizontal navigation based on the vertical one featured on www.alistapart.com...
15
by: theo | last post by:
Hi, I'm working on a horizontal row menu, to use like folder tabs. Does anyone know what the CSS style "cursor" is supposed to produce? Any working samples? I put it in the code, but can't see...
5
by: Chris Beall | last post by:
Objective: Using an HTML list, create a horizontal nav menu with these characteristics: - All menu items have the same width at all times. - When the window width is reduced, the menu items...
2
by: Sergio E. | last post by:
Hi group, I write this post with the following question: How can I to build an absolutely horizontal menu?, This is because I can't find how can I configure the menu component of asp.net 2.0...
1
by: camphor | last post by:
hi, I have a single column webpage with a horizontal dropdown menu and am trying to make the nav bar fit across the page, the column is 800px, it looks ok in dreamweaver 8 but when I test it in...
5
Haitashi
by: Haitashi | last post by:
Hello everyone: I have a CFMenu with the type set to horizontal. I'd like to have the sub-menu items open vertically. Is that possible? Here is my code. I want the Portals sub-menu (Portal A,...
19
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.