473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tabbed Menu Line Wrap Problem

I'm trying to generate a tabbed menu system that will wrap to the next line
when necessary.

I tried using the css shown on this website
http://www.sitepoint.com/print/accessible-menu-tabs

It works fine for a single row but as soon as it goes to a new row, the
format of the first tab on the new row goes wrong in IE6 though not in
Firefox 1.0.

The original markup is generated by an asp.net repeater control but a static
version of the problem can be found here
http://homepage.ntlworld.com/peter.h...lem/index.html

Do you have any ideas how I can fix this,

Thanks,
Peter

Jul 21 '05 #1
8 5728
The solution proved to be rather basic:-

Enclose the menu system in <ul> <li> tags.
For the <li> tag
display: inline;
float: center;

ul {
list-style: none;
padding: 0px;
margin: 0 10px 0 0;
font-family: "Trebuchet MS", sans-serif;
text-align: center;
line-height: 20px;
}

ul li {
font-weight: bold;
float: center;
display: inline;
position: relative; /*** IE6 needs this to display the links ***/
}

ul li span{
white-space: nowrap;
}

Cheers,
Peter
Jul 21 '05 #2
"Peter Hoyle" <pe*********@ntlworld-NOT.com> wrote:
float: center;


No such thing in css 2.x.

--
Spartanicus
Jul 21 '05 #3
>>float: center;

No such thing in css 2.x.

Spartanicus


Thanks for the information - actually I can't see it in css 1.x either.
It works for the moment but I'll keep a look out for a more valid method,

Peter
Jul 21 '05 #4
"Peter Hoyle" <pe*********@ntlworld-NOT.com> wrote:
float: center;
No such thing in css 2.x.


Thanks for the information - actually I can't see it in css 1.x either.


Duh, css1 is a subset of css2.
It works for the moment


No it doesn't, get rid of it, it doesn't do anything.

Btw, configure your news client to snip sigs when following up, or do it
manually.

--
Spartanicus
Jul 21 '05 #5
float: center;

Removed as informed.

Seems that ul{text-align: center} which I inadvertantly added at the same
time, was providing the wanted effect!

Thanks again,
Peter
Jul 21 '05 #6
"Peter Hoyle" <pe*********@ntlworld-NOT.com> wrote:
Removed as informed.


You're supposed to remove *sigs* when following up, quoting the minimal
relevant bit what you are replying to *should* be left in.

What follows is a sig:
--
Spartanicus
Jul 21 '05 #7
On Mon, 28 Feb 2005 17:00:18 +0000 Spartanicus wrote:
"Peter Hoyle" <pe*********@ntlworld-NOT.com> wrote:
Removed as informed.


You're supposed to remove *sigs* when following up, quoting the minimal
relevant bit what you are replying to *should* be left in.

What follows is a sig:
--
No this is not your signature it is my signature..so there.


Now could you tell us how to do that in Outlook Express?
Not even my fidolook plugin can remove the signature afaik.
Jul 21 '05 #8
"Richard" <An*******@127.001> wrote:
On Mon, 28 Feb 2005 17:00:18 +0000 Spartanicus wrote:
You're supposed to remove *sigs* when following up, quoting the minimal
relevant bit what you are replying to *should* be left in.


Now could you tell us how to do that in Outlook Express?
Not even my fidolook plugin can remove the signature afaik.


Google for OEquotefix

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #9

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

Similar topics

3
2703
by: David | last post by:
I have a problem that I cannot delete components that are placed on a Tabbed page in Visual Basic.Net 2003. (OS = Windows 2000 Professional) The form uses a Tab Control with several pages. I have...
4
1202
by: Usenet | last post by:
I've got a problem with my css when the user makes the menu's wrap above each other. At www.vowleyfarm.co.uk if you close up the browser narrow enough that the boxes stack above each other, the...
12
1680
by: gil | last post by:
I would like to display a Union Collective Agreement in HTML format and keep it as true as possible to the pdf version. The document uses Article Numbers such as 1.01, 1.02 which are not...
3
3070
by: Sjef Janssen | last post by:
I try to get a tabbed display work both in IE (6 and 7) and Firefox. The last does give a problem. What's going wrong here? I'm totally puzzled. <!doctype html PUBLIC "-//W3C//DTD XHTML 1.0...
1
2149
by: Don Miller | last post by:
I have a one-level static menu control with 18 menu items. When displayed in a browser, the menu items do not wrap and the menu extends well past the browser window. Is there a property to...
0
3114
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of...
5
1399
by: Angus | last post by:
I have had a look at http://javascript.internet.com/navigation/cascade-menu.html Which is roughly what I want to do. Roughly the menu looks like this: Menu #1 Menu #2 Menu #3 Menu #4
2
7318
by: Brian Kendig | last post by:
I'm trying to make a web page with a restaurant menu on it. Each line on the menu is the name of a dish (left-justified) and that dish's price (right-justified), with a dotted line between them....
2
4157
by: dharmbhav | last post by:
Hello all, I am trying to develop a roll-over menu effect on a page. It works fine with all other browsers except IE6. Can some one please help me? HTML: <div class="menu-item-wrap">...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7111
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
7319
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,...
0
7376
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...
1
7031
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
7485
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...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1542
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 ...

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.