Reply to Re: Making a <div display the equivalent of <img's alt=

Your name:

Reply:


Posted by Curtis on 12/18/05 05:19

Mark Simon <mark@comparity.not.example.net> wrote in message
news:43a4be73$0$17705$afc38c87@news.optusnet.com.au...

> Could you give an example of what you thing the img syntax
would look
> like? And can you give a more complete example of what the
coding would
> look like?

The samples of image <img syntax I encountered used =s and
quote marks, which would be different from the CSS we're
allowing advanced users to feed elements like paragraphs,
etc.

We didn't want to mix the two styles, as CSS uses : and
generally requires no quotes, so far as I can tell (not sure
about that URL(... thing, though.)

> You shouldn't use the alt attribute of an image this way.
Although IE
> will display the contents this way (Mozilla does not), the
real purpose
> for the alt text is as a substute for the image if, for
some reason, it
> cannot be shown. If you use the title attribute, all
browsers will
> render it the way you intended, and you will be making
better use of the
> attributes.

Thanks for the feedback on this. I've discovered the title
attribute for <div in the last hour or so, and that seems to
work dandy.

We've been able to make the <div setup do everything we need
in our very fresh experiments so far, to behave like the
<img, with the exception of autosizing.

Anyone know of a way to make a div autosize to its
background image? I realize that slows things down with the
<img tag, that specifying size is the better route for
stable-looking page load speed, but it would be nice to have
the option.


> This doesn't solve your div problem. If your html is
properly marked up
> (as in xhtml), you could use xslt to extract any attribute
information
> you like.
>
> Regards,
>
> Mark

Well, now you went and lost me. Not hard to do, since I
don't know what xslt is. I'll have a Google for it, but for
now we're happy just to make this thing basically
functional--we'll standardize the output to some
specification on a later refactor of the code.

Thanks,

--

Curtis

Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация