Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2008, 12:16 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 112
Thanks: 12
Thanked 0 Times in 0 Posts
Default Question on Horizontal Menu

Hi to all...

I have a question...
I'm using Horizontal Menu and its working fine...
But how can I keep it on one line because right now depending on my width if i have my favorities open the menu goes on two lines if I close it it stay on one line...
how can I always keep it on one line even if the window size changes...

I tried nowrap command and it does work...
is there something else I can use...

code:
<ul class="glossymenu">
<li><a href="/Mens.asp"><b>Mens</b></a></li>
<li><a href="/Ladies.asp"><b>Ladies</b></a></li>
<li><a href="/Kids.asp"><b>Children</b></a></li>
<li><a href="/Shoes.asp"><b>Shoes</b></a></li>
<li><a href="/Toys.asp"><b>Toys</b></a></li>
<li><a href="/Linens.asp"><b>Linens</b></a></li>
<li><a href="/Giftware.asp"><b>Giftware</b></a></li>
<li><a href="/Houseware.asp"><b>Houseware</b></a></li>
<li class="current"><a href="/Furniture.asp"><b>Furniture</b></a></li>
<li><a href="e/Seasonal.asp"><b>Seasonal Items</b></a></li>
</ul>

Thanking you in advance...

Rino


 
Old March 11th, 2008, 11:45 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

I managed to keep mine on one line using position:absolute, and specifying the container width. That way the container is what it is no matter the window size, so as long as the container is wide enough to always hold the menu it always "fits" on one line. This may mean that it runs off the edge of the screen though.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 15 Context Menu - Element Menu Items Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 2 November 9th, 2008 03:53 PM
Asp.Net 2 Horizontal Menu Display Problem ivotive ASP.NET 2.0 Professional 1 December 15th, 2006 04:28 AM
<asp:menu question paco ASP.NET 2.0 Professional 0 August 22nd, 2006 08:05 AM
right click menu hidden by drop-drown menu Andraw HTML Code Clinic 0 March 18th, 2005 03:28 PM
Horizontal drop-down menu examples? nyc_courtney Javascript How-To 3 October 7th, 2004 09:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.