Force Text to stay on one line

Posted on 2006-07-06
Last Modified: 2008-02-26
Hi all

I am developing a remote editor for my website, allowing my to edit my site remotely.
This includes a file browser, etc.

I am looking for each filename/folder name to stay on one line. Currently as the line becomes too long then the names spill onto the next line, which doesnt look very nice! :-)

Thanks in advance

Question by:shaggy_the_sheep
  • 2
LVL 30

Accepted Solution

GrandSchtroumpf earned 500 total points
ID: 17054298
Add this css:

.files {
      white-space: nowrap;

Author Comment

ID: 17054308
You beauty!! :-)


LVL 30

Expert Comment

ID: 17054373
note that you could use nested <ul> elements for your file tree.  that should be semantically better.
cheers  :)

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
align Linkedin sign to the right page 5 37
Wordpress "chart" plugin recommendation 7 52
Problem to refer to value 8 50
Change div area and length 1 28
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at Browse or search based on font properties or name to find a suitable font for…

810 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