Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-09-04 11:05:31
Point:500 Replies:6 POST_ID:828757USER_ID:11059
Topic:
Cascading Style Sheets (CSS);Hypertext Markup Language (HTML);PHP Scripting Language
I want my one-line paragraph can be scrolled when it is overflow in div tag.
But the string in the paragraph has minus sign of "-" that will
break the one line into two lines. WHy ?
I want it displayed in one line even minus-sign in the string so I
tried to replace "-" minus sign by - that is html code. But it is not
working, it still breaks it into two lines.
Now it is displayed as follow if "-" is inside
aaaaaaa-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
I want
aaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Please advise and read my simple attached php html code
Duncan
But the string in the paragraph has minus sign of "-" that will
break the one line into two lines. WHy ?
I want it displayed in one line even minus-sign in the string so I
tried to replace "-" minus sign by - that is html code. But it is not
working, it still breaks it into two lines.
Now it is displayed as follow if "-" is inside
aaaaaaa-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
I want
aaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Please advise and read my simple attached php html code
Duncan
<html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><head></head><body><?phpecho "<div style='overflow-x:scroll;overflow-y:scroll;background-color:yellow;width:300px;height:300px;font-size:14px'>";echo<p>aaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>";echo '</div>';?></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:
Author: duncanb7 replied at 2024-09-04 11:54:41
Reminder or memo: nbsp mean non-breaking space not just space for html entity
Author: duncanb7 replied at 2024-09-04 11:53:07
Thanks for all of your reply
Expert: Chris Stanyon replied at 2024-09-04 11:30:36
- is exactly the same as - so it will have exactly the same behaviour.
The works because that's what it's supposed to do (Non Breaking SPace)
The works because that's what it's supposed to do (Non Breaking SPace)
Author: duncanb7 replied at 2024-09-04 11:25:49
why - is not working ?
I replaced space with that is working if space is inisde to break the line
I replaced space with that is working if space is inisde to break the line
Expert: Dave Baldwin replied at 2024-09-04 11:16:56
Chris is right. '-' is one of the few characters that will allow text wrapping because that is the way it has traditionally been used.
Accepted Solution
Expert: Chris Stanyon replied at 2024-09-04 11:14:16
500 points EXCELLENT
Try white-space:
<p style="white-space: nowrap;">aaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p> 1: