Sorry to go off topic but I wondered if some one of you web designers out there could answer me a small question.
How can I get the alt property within an <img src=...> to be pre formatted or at least can I get line breaks in it?
i.e. <img src="mypicture.jpg" alt="some preformatted text with line breaks in it">
-- Cheers, BJ
Whilst on the subject... What is the procedure for embedding images in to sgml docs ? Is it the same format as html ?
Regards, Paul.
On Sunday 17 February 2002 9:41 am, John Woodard wrote:
Sorry to go off topic but I wondered if some one of you web designers out there could answer me a small question.
How can I get the alt property within an <img src=...> to be pre formatted or at least can I get line breaks in it?
i.e. <img src="mypicture.jpg" alt="some preformatted text with line breaks in it">
Paul paul.corner@tesco.net writes:
Whilst on the subject... What is the procedure for embedding images in to sgml docs ? Is it the same format as html ?
Not necessarily (and indeed not even probably) - you have to read the documentation for the DTD you are using.
It might be impossible without modifying both the DTD and the application(s), which rather limits the usefulness of the resulting documents; but it depends what you're trying to achieve.
On Sunday 17 February 2002 9:41 am, John Woodard wrote:
How can I get the alt property within an <img src=...> to be pre formatted or at least can I get line breaks in it?
You can put a plain newline in the value of the ALT attribute, e.g.:
<img src="whatever" alt="line one line two">
but it won't do what you apparently want, at least not consistently. ALT is intended for a brief description to stand instead of an image, not a formatted document in its own right.
However, in more recent versions of HTML it looks like you can do this:
<object data="href to image"> ...alternative content, perhaps in a <PRE>... </object>
...because the rules for OBJECT say that if a browser can't render an object it should render its contents.
Mozilla 0.9.7 seems to like putting scrollbars on <object> elements unless you specify a large enough width= and height=, I don't know if this is the proper behaviour or a bug but I rather suspect it's the latter.
You can't control it. You get whatever the browser chooses to give you.
On 17-Feb-02 John Woodard wrote:
Sorry to go off topic but I wondered if some one of you web designers out there could answer me a small question.
How can I get the alt property within an <img src=...> to be pre formatted or at least can I get line breaks in it?
i.e. <img src="mypicture.jpg" alt="some preformatted text with line breaks in it">
-- Cheers, BJ
main@lists.alug.org.uk http://www.anglian.lug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!