/    Sign up×
Community /Pin to ProfileBookmark

Divs, CSS and text cut off

Hi All!

I am new to the forums and have a quick question I was hoping someone might be able to help with. I have googled my heart out only to find lots of questions with no answers, but here goes.

I am attempting to call an email address from the database using php (echo $email->getOutput(1)? the email is contained within a div that is styled with CSS to be 258px wide. The problem is that long email addresses are cut off by the div rather than wrapping to the next line. Certain other items that I am calling from the database seem to wrap without problem. This happens in both MSIE and Firefox. I have worked with both overflow and wordwrap in css and nothing helps. Is there anyway to make longer entries break at the edge of the div and wrap to the next line?

Any help is greatly appreciated.

Thanks All!

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@bluestartechAug 21.2008 — an email address is likely to one continuous string, which could not be wrapped in any case without first splitting the string
Copy linkTweet thisAlerts:
@iraadamsauthorAug 21.2008 — I guess I will work out a different means of displaying the email without the div container. Thanks for your help!
×

Success!

Help @iraadams 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 5.23,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...