Re: height="100%"

On Jun 26, 7:07 pm, Chase Preuninger <chasepreunin...@xxxxxxxxx>
If I were to create an image <img src="..." width="100%" height="100%"/> the with would span the entire width of its container but the height

does not span the entire height.  Why, and how can I change this?

100% height is 100% of the actual picutre size, so if its 200 pixels
high, then your image will display 200px high if you say 100%. It will
not stretch to fill 100% height of the container it is in.

Also, the 100% height property of say table cells doesn't function if
you have any DOCTYPE tag set at the top of your page as its regarded
as an invalid tag in the specification for the doctype.

If you want it to fill the container, then you need to set it in
pixels to whatever the height of the container is. If your container
is of a variable height then you will need some javascript to manually
set the height of the image using the onLoad="" event of the body tag.

If it was a div for example then your onload code needs to do
something like document.getElementById('imgID').height =


Relevant Pages

  • Re: Fields in an object header
    ... If you mean a built-in record type, then I suppose that the language ... you need the type tag stored into the object. ... automatic memory management). ... It is of the memory pool or other container where the object ...
  • Re: [ckrm-tech] [PATCH 0/2] resource control file system - aka containers on top of nsproxy!
    ... My current understanding of Paul Menage's container patch is that it is ... make good use of a file system like hierarchy for their interface. ... It probably doesn't benefit all metered classes, ... based on the skbuf's tag. ...
  • Re: mbuf changes
    ... Well, I don't have the layout of the mbuf struct offhand, but it's an idea worth investigating. ... What we did for BSD is create a container in the mbuf and extend the API with functions we called m_tag_fast_allocand m_tag_fast_free. ... The trick to save CPU cycles was also to quickly revert back to the standard tag mechanism if some component in the system is manipulating the tag list by deleting elements. ... the m_tag_fast_free is a NOP and fast tags are not deleted once allocated. ...
  • Re: Loosing tagged type via linked list
    ... Copying would be unlike parameter passing. ... While tagged objects are passed by reference, ... Tag is MAIN.TYPE_HIER.A_TYPE ... The Charles library is the predecessor of Ada 2005's container ...