?
Solved

no break/wrap problem

Posted on 2007-03-28
2
Medium Priority
?
7,417 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
Argblat earned 800 total points
ID: 18808239
try:

white-space: nowrap;

in your css
0
 
LVL 8

Assisted Solution

by:klykken
klykken earned 200 total points
ID: 18808354
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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

752 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