Solved

no break/wrap problem

Posted on 2007-03-28
2
7,403 Views
Last Modified: 2012-08-13
Hi,

is there a way to not have the horizontal buttons (menu_h) here
http://www.cadante.com/cadante_css/vini.asp
break, having half of it on one line and the other part in the next line?*

*depends on the display resolution and size.
===================================================
eg:

Basilicata - Campania - Emilia Romagna - Friuli - Lazio - Lombardia -
Marche - Piemonte - Puglia - Saqrdegna - Sicilia - Toscana - TRENTINO ALTO
ADIGE - Umbria - Veneto
===================================================

where "Trentino Alto Adige" should be all in one line, i.e. one button
===================================================

In other words is there a better way to do it than I did?

Thank you
0
Comment
Question by:keneso
2 Comments
 
LVL 5

Accepted Solution

by:
Argblat earned 200 total points
Comment Utility
try:

white-space: nowrap;

in your css
0
 
LVL 8

Assisted Solution

by:klykken
klykken earned 50 total points
Comment Utility
Argblat is right, put the code right into the CSS rule for your nav links:

#menu_h a { white-space: nowrap; color: #000000; text-decoration: none; background-color: #fc0; text-align: justify; padding: 3px; border: solid 2px #300; }
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Left menu with a header image 6 33
How to represnt 52 selections 1 32
Align a <div> to a table row 3 38
JQuery & CSS Tab Issues 7 26
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now