![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am wondering why (half of the) squared images are not aligned on the right of the text in Internet Explorer (using <img ... align="right" />. I thought this was supported even in IE. In FF and Opera it works fine. http://www.roderik.net/2008/05/25/ro...e-vienna-2008/ Mucht thanks for any suggestions. |
#3
| |||
| |||
|
|
I am wondering why (half of the) squared images are not aligned on the right of the text in Internet Explorer (using <img ... align="right" />. I thought this was supported even in IE. |
#4
| ||||
| ||||
|
|
Scripsit Roderik: I am wondering why (half of the) squared images are not aligned on the right of the text in Internet Explorer (using <img ... align="right" />. I thought this was supported even in IE. It is, but it can be overridden in CSS. http://www.roderik.net/2008/05/25/ro...e-vienna-2008/ There are 6 markup errors reported by a validator. You didn't do you homework before posting. |
|
If you switch stylesheets off, e.g. using a Tantek favelet ( http://tantek.com/favelets/ ), you'll see that IE applies align="right" as defined. |
|
Thus, the problem is in CSS, not HTML. |
|
group. Moreover, you should do your homework by using the available tools for checking the syntactic correctness of your HTML and CSS before asking for help in public. |
#5
| |||
| |||
|
|
Jukka K. Korpela schreef: Scripsit Roderik: I am wondering why (half of the) squared images are not aligned on the right of the text in Internet Explorer (using <img ... align="right" />. I thought this was supported even in IE. http://www.roderik.net/2008/05/25/ro...e-vienna-2008/ |
|
If you switch stylesheets off, e.g. using a Tantek favelet ( http://tantek.com/favelets/ ), you'll see that IE applies align="right" as defined. Thus, the problem is in CSS, not HTML. The problem might be interrelated but it surely had to with HTML since it concerns a HTML style (or align in this case) attribute. |
#6
| |||
| |||
|
|
Roderik wrote: [...] The problem might be interrelated but it surely had to with HTML since it concerns a HTML style (or align in this case) attribute. |
|
Remove align="left" Attribute Add float:left; Property |
#7
| |||
| |||
|
|
Scripsit Gus Richter: Roderik wrote: [...] The problem might be interrelated but it surely had to with HTML since it concerns a HTML style (or align in this case) attribute. The usual cluelessness indicators are "on", but... Remove align="left" Attribute Add float:left; Property ... that's no excuse for giving clueless "advice". Your personal, or even the W3C's, preference for CSS formatting as opposite to HTML formatting has nothing to do with the problem. I prefer CSS floating also (and use it quite often) but in this case I |
#8
| |||
| |||
|
|
I prefer CSS floating also (and use it quite often) but in this case I prefer not to change the HTML because it is automatically generated. And I wondered why the behaviour of the align is like this in internet explorer when I know that internet explorer supports it. |
#9
| |||
| |||
|
|
Scripsit Gus Richter: Roderik wrote: [...] The problem might be interrelated but it surely had to with HTML since it concerns a HTML style (or align in this case) attribute. The usual cluelessness indicators are "on", but... Remove align="left" Attribute Add float:left; Property ... that's no excuse for giving clueless "advice". Your personal, or even the W3C's, preference for CSS formatting as opposite to HTML formatting has nothing to do with the problem. |
#10
| |||
| |||
|
|
Roderik wrote: I prefer CSS floating also (and use it quite often) but in this case I prefer not to change the HTML because it is automatically generated. And I wondered why the behaviour of the align is like this in internet explorer when I know that internet explorer supports it. It's up to you of course, but look (with any other browser other than IE) at how the subsequent text runs into the image above when the paragraph is not enough to clear the image. To remedy that, you have to include a clear such as: p style="clear:left;" and alternating: p style="clear:right" or for all simply: p style="clear:both;" else include a clearing div. Even if you wish to use a stylesheet instead of the inline style, you still will have to change the html to include a clearing div or add a class/id to the <p>aragraph. What I'm saying is that you will have to change the html anyway. You give advice for something that you assume that is wrong behaviour. I |
![]() |
| Thread Tools | |
| Display Modes | |
| |