473,473 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Word Wrapping in CSS/HTML

2 New Member
I'm searching for a way to force 2 words to always appear together on the same line in IE, FireFox and NN 8.x. The 2 words are my company's name. Let's use Deloitte Touche as an example. Each Web browser decides when to wrap text and could place Deloitte on one line and run out of room, and put Touche on the next line. I'd like for the browser to realize it's running out of room and to put Deloitte Touche together on the next line. Essentially, Deloitte Touche should always appear together because it's the name of a company. I'm willing to use HTML or CSS to accomplish this. I have tried the pre tag and have also searched for a CSS style, but haven't had any success.
Sep 4 '07 #1
2 1338
drhowarddrfine
7,435 Recognized Expert Expert
p{
width:12em;
outline:1px solid blue
}

span{
white-space:nowrap
}

<p>This is <span>Deloitte Touche</span></p>
Sep 4 '07 #2
js19
2 New Member
Thanks, that solved my problem.
Sep 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Adam Knight | last post by:
I am trying to create a word document via asp. I keep getting this error: Server object, ASP 0178 (0x80070005) The call to Server.CreateObject failed while checking permissions. Access is...
4
by: someone | last post by:
hi A friend just sent me a text translation in norwegian, that she saved with WORD 9, as an html file It's loaded with Microsoft code like this : <p class=MsoNormal><span...
11
by: yawnmoth | last post by:
word wrapping normally treats some spaces as line feeds, if there hasn't been a line feed for quite a while. so while a string with eighty consecutive a's might not word wrap, a space placed...
5
by: nimdez | last post by:
Hi, I am working on an existing code base in which a lot of data displayed to the user is formatted in tables. Most tables are printed row-by-row using printf() with "%s" print conversion...
10
by: Douglas G | last post by:
I've tried various ideas on this problem, but I don't see word wrapping. Can you point out what is wrong? It's a K&R exercise, and I'm still new to programming. Other pointers would be helpful...
10
by: Jeff B. | last post by:
Has anyone come across a decent algorithm for implementing word wrap features in .net printing? I have a small component that uses basic printing techniques (i.e. e.Graphics.DrawString in a...
0
by: Brian Conway | last post by:
Anyone know how to turn off word wrapping on the datagrid. I have gone into Property Builder and shut it off there, however, it is still wrapping. Any help would be appreciated.
2
by: Mr TVTL | last post by:
Hi there, I've created a series of layouts designed to be optimized for search engines, and yet also standards-compliant. The problem isn't in the layouts themselves, but in the display of the...
10
by: Lorenzo Thurman | last post by:
I have a table cell that I want to wrap text inside of. I've tried both hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap just fine. Does anyone know how I can fix this?
6
by: Eric Layman | last post by:
Hi, I have fields from textareas. With a click of a button, php is able to grab these fields and by using header(), convert the output to Ms Word doc. But the outcome of the word doc...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.