Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoind line break before bracket 1

Status
Not open for further replies.

Glasgow

IS-IT--Management
Joined
Jul 30, 2001
Messages
1,669
Location
GB
I want to include the text "payment(s)" in a paragraph. How do I prevent a line-break from being inserted prior to the opening bracket?

 
1. Make sure there's enough space for the text to fit.
2. Add [tt]white-space: no-wrap;[/tt] to the paragraph style.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Thanks. As the paragraph in question can be quite long, I cannot take the precise approach you suggest but this works:
Code:
<span style="white-space:nowrap">payment(s)</span>

NB - no hyphen in 'nowrap'. I expect your keyboard or memory let you down :-).

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top