Solved

Force Text to stay on one line

Posted on 2006-07-06
3
762 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
Comment Utility
Add this css:

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

Author Comment

by:shaggy_the_sheep
Comment Utility
You beauty!! :-)

Cheers!

Richard
0
 
LVL 30

Expert Comment

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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 google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

772 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

10 Experts available now in Live!

Get 1:1 Help Now