You are here: Re: Strange Image Size Problem. « HTML « IT news, forums, messages
Re: Strange Image Size Problem.

Posted by Rob White on 05/15/07 08:17

Thanks for all the help, I've done a bit of initial playing around and
it does seem that the em sizing was causing the problems. Thanks for
the help.

The reason for them being in em's was down to the fact that I didn't
really understand the significance of the code that I downloaded to do
the thumbs bit (it's my first website).

A couple of other questions, why should I include a space before
closing empty elements, is this a style thing or a standards thing?
Also, the reason that I have the <i> in the title is that the lightbox
script picks up the title and uses it for its text. The italics simply
look nicer. I've put the page through the w3c validation and it
passes, but with warnings on the page. How significant a problem is
this, will some browsers kick up a fuss, look funny or otherwise. Of
is it more that I'm bending the rules of standards? Indeed, is there a
way to achieve what I'm after without the warnings?

On May 14, 6:24 pm, JD <u...@example.net> wrote:
> John Hosking wrote:
> > Rob White wrote:
> >> Since my thumbnails are only allocated 100x100 it
> >> gets squashed by the browsers and looks rubbish.
>
> > No, I don't see that. What I see is that you're not setting the height
> > and width to 100px, you're setting it to 9.5em. Watch what happens when
> > you bump up the text size in FF, e.g.
>
> >> The page is here:http://www.jacquelinewhite.co.uk/photographs.html
> >> and it's the last image in the list
>
> > If I may, I'd like to also comment that your alt attributes aren't too
> > helpful. alt="[jac3]" is pretty unhelpful to those who can't see the
> > picture (and if you mean for it to be a tooltip in IE, that it's also
> > unhelpful in that context).
>
> On a similar note, you shouldn't put HTML tags in title or alt attribute
> values:
>
> title="Emmie Spashitt, <i>Albert Herring</i>, Operamus 2007"
>
> Also, include a space before the closing / in empty elements, e.g.:
>
> <img src="Jekyll_redrats_thumb.jpg" alt="alt text" />
> ^
> You do this on some elements in your page, but not others.
>
> JD- Hide quoted text -
>
> - Show quoted text -

 

Navigation:

[Reply to this 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

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