Jump to content

attribute width with pre tag,,,


Maisara-WD
 Share

Recommended Posts

peace upon u allhi guysthe attribute width with the tag predoesn't work at all with me,, whats up?does it need certain values??thanks

Link to comment
Share on other sites

It depends on what doctype you're using:

The "width" attribute of the pre element was deprecated in HTML 4.01.The "width" attribute of the pre element is not supported in XHTML 1.0 Strict DTD
If you're using HTML it should force the text to wrap at the amount of characters indicated in the width attribute, though it may be possible that most browsers ignore the attribute.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...