|
Posted by David Graham on 01/13/06 14:55
"Els" <els.aNOSPAM@tiscali.nl> wrote in message
news:t5wq4q51d639$.to9cnjmj5zg9.dlg@40tude.net...
> David Graham wrote:
> > From: "Els" <els.aNOSPAM@tiscali.nl>
> >> David Graham wrote:
> >>> "Els" <els.aNOSPAM@tiscali.nl> wrote in message
> >>> news:10gw89ckaxzfe.1efd82rglvqdw$.dlg@40tude.net...
> >>>
> >>>> Here's an example I made 2 years ago:
> >>>> http://locusmeus.com/test/thumbswithcaptionscentered.html
> >>>
> >> IE and Opera each have their own reason: IE because it extends boxes
> >> to encompass their content, and Opera because of "inline-table" (which
> >> is hidden from IE).
> >
> > So inline-table is a value for the display property that changes the
> > behaviour of Opera in that a table with a fixed height and width on it's
> > td's behaves more like the broken behaviour of IE and enlarges to
accomodate
> > the content- have I summarised what you are saying correctly?
>
> Not entirely sure, but it sounds like it, yes. Only I would not say
> that inline-table behaves like the broken behaviour of IE, but rather
> that in Opera, a table with display:inline-table behaves as it should,
> and that IE coincidentally, due to its broken behaviour, *seems* to do
> the same thing with display:inline on a table.
Well put - see what you mean
> > Oh, one last thing, you said you used tables because the images would be
> > vertically centered, is that the default behaviour for tables and image
> > position inside the td's? I suppose a div would place the image top left
> > inside the div if there was no positioning css - is that true?
>
> Yup. Default for td's content (whether image or text) is left and
> middle aligned, while you can't vertically center content in a div
> other than by setting explicit top and bottom margins or using
> position:absolute with explicit negative margins.
>
Understood you until you mentioned a need for 'explicit negative margins' -
not sure what that is for - could you put it into simple terms for a
learner - thanks again.
David
Navigation:
[Reply to this message]
|