[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Setting alignment of mediaobject in html5
Well, it looks like setting "width" for the imagedata element
creates the <table> markup, which then apparently causes
browsers (Firefox, Chrome) to ignore the text-align attribute. When
I removed "width" from imagedata (which contained a GIF image) but I
still had the 'align' attribute, the resulting HTML5 markup didn't
have <table> and the image was centred on the page. I
rechecked all other images in my book and none has 'width' specified
- they are all centred (in figure, example and sidebar elements). Oddly, when I consequently set a width attribute in the CSS stylesheet for the .mediaobject class, the image is not centred - it is left-justified. It seems that you must create an image at its correct (intrinsic?) width for output, because setting a width in XML or CSS affects text-align. On 08-04-12 9:05 AM, Bob Stayton wrote:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]