Forum Moderators: not2easy

Message Too Old, No Replies

title attribute length problem.

         

charlier

9:39 pm on Nov 10, 2005 (gmt 0)

10+ Year Member



I am trying to provide a bit of roll over help for a form using the code below, but when I roll over the email label the title is cut off at password. Is there a way to get this to show as a multiline box.

<fieldset style='width: 50em'>
<legend>Your Identifier</legend><center>
<label title="Please enter your email address carefully, we won't be able to send you your password when you forget it if your email address is incorrect.">
Email Address:</label><input type="text" name="MEMBER_EMAIL" class="input-box" style='width: 30em'/><br />
<label title='Please confirm your email address.'>
CONFIRM (Re-Type) Email:</label><input type="text" name="MEMBER_EMAILCHK" class="input-box" style='width: 30em'/><br />
<label title='You will need your password to change your details.'>
Password</label> <input type="text" name="MEMBER_PASSWORD" class="input-box" style='width: 10em'/><br />
</center></fieldset>

xfinx

6:32 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



No, but i heard something like a longdesc, that does something similair..

I'll google it

xfinx

6:35 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



longdesc if an alternative for the img alt attribute, I am sorry ginving you a glance of hope.

charlier

8:44 pm on Nov 12, 2005 (gmt 0)

10+ Year Member



hmm, gave it a try, doesn't seem to show anything replacing a title=''

Thanks for trying.

Robin_reala

10:53 am on Nov 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



@longdesc is an attribute for the <img> element (and a couple others) that is a link to a seperate page where the image is described in greater detail. No what you want.

Regarding @title, I belive IE understands newlines although I can test that now. Try either putting in either a normal return on your keyboard or using a \n. I can't test either at the moment cos I don't have IE here. Unfortunately cross browser support on this is very patchy. For example Firefox will replace your newline with a black square and still cut off your content with an ellipsis.

What I'd consider is actually putting the text into your page if it's important. You're not guarenteed to get people hovering for long enough to see it anyway.