Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Force Text to stay on one line

Posted on 2006-07-06
3
Medium Priority
?
812 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

824 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