Solved

Force Text to stay on one line

Posted on 2006-07-06
3
796 Views
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! :-)

www.fast-chat.co.uk/edit

Thanks in advance

Richard
0
Comment
Question by:shaggy_the_sheep
  • 2
3 Comments
 
LVL 30

Accepted Solution

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

.files {
      white-space: nowrap;
}
0
 
LVL 5

Author Comment

by:shaggy_the_sheep
ID: 17054308
You beauty!! :-)

Cheers!

Richard
0
 
LVL 30

Expert Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

756 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