/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Vertical not Horizontal

I Have a description field that Im printing into a DIV

<div style=”width:100%;Overflow:auto;margin-bottom:-5px;”>
<%# Eval(“sComment”) %>
</div>

I want the Field to be displayed with carriage returns when the Length is too long Horizontally. A carriage return will display the text downwards but if there is none in a length of characters it overflows sideways

E.g
This
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffff

Instead of
V Stop Here
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

Can I enforce this in CSS?

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@ray326Oct 04.2007 — Can you break abnormal strings with CSS? No.
Copy linkTweet thisAlerts:
@Nate1authorOct 04.2007 — Abnormal Strings?

the fff's are an example this sentence could be used to replace them? see when i keep typing this jumps to the new line, I know that this is a text area. Overflow stretches hides or scrolls why not break a line? Rather than I loop that checks length and inserts a line break.
Copy linkTweet thisAlerts:
@Nate1authorOct 04.2007 — Crap I get it I cahnged the string it works sorry.
×

Success!

Help @Nate1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...