1
andersa
Image manager inserts align attribute in img tag
  • 2004/12/31 13:31

  • andersa

  • Just popping in

  • Posts: 45

  • Since: 2004/5/27


Using the align attribute is deprecated and will cause severe rendering errors if you are not careful and doesn't take the usage of the align attribute into account when you create the rest of the html.

For instance in newbb2 the front page is rendered using div and span tags, and not table tags as you might expect. This is all fine and well, as long as the rest of your code is well behaved. However if you use an image tag with the align attribute in it (align="left" for instance), the image will cause text to wrap around it, and it doesn't stop when the current article ends, it will wrap proceding articles as well, which causes the rendering to be completely screwed up, in ALL browsers, including IE.

I think the align attribute should not be used, and we will have to live with some alignment issues until a solution can be found using css.

2
Mithrandir
Re: Image manager inserts align attribute in img tag

Or one could put some style="clear:top;" in the templates...

3
Peekay
Re: Image manager inserts align attribute in img tag
  • 2004/12/31 13:50

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Strongly second that. IMHO image manager align options should at least include a button for 'none'. (and can we *please* have ALT text field, please!... )

4
Mithrandir
Re: Image manager inserts align attribute in img tag

none? That's the center option...

5
Peekay
Re: Image manager inserts align attribute in img tag
  • 2004/12/31 14:21

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Thx Mithrandir. Just discovered that and was about to post the same comment!

6
andersa
Re: Image manager inserts align attribute in img tag
  • 2004/12/31 15:04

  • andersa

  • Just popping in

  • Posts: 45

  • Since: 2004/5/27


But that left aligns the picture, it doesn't center it? Well.. That's what I wanted anyway.. :)

7
andersa
Re: Image manager inserts align attribute in img tag
  • 2005/1/9 20:18

  • andersa

  • Just popping in

  • Posts: 45

  • Since: 2004/5/27


Quote:

Mithrandir wrote:
Or one could put some style="clear:top;" in the templates...

BTW shouldn't that be clear:none;? I can't find a top value in the css specification.

Login

Who's Online

315 user(s) are online (184 user(s) are browsing Support Forums)


Members: 0


Guests: 315


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits