<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023486" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023486</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144388</link>
    <description> &lt;p&gt;When I did it I forgot to set the id attribute of the img (id=&quot;floatright&quot;)...Anyway, glad to hear my method works, even if the implementation is a little different &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 15 Jan 2004 11:07:49 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1144388 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144354</link>
    <description> &lt;p&gt;OK, thank you all! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I tried it with style too (float:right not align=&quot;right&quot;), but I didn&#039;t succeed. I suppose I had made some mistake then, as now I simply set style=&quot;float: right&quot; for the image tag and it works nicely!&lt;/p&gt;
&lt;p&gt;Thanks! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
eyedam&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jan 2004 22:37:06 +0000</pubDate>
 <dc:creator>eyedam</dc:creator>
 <guid isPermaLink="false">comment 1144354 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144320</link>
    <description> &lt;p&gt;I believe the problem may have something to do with the HTML. I tried this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;IMG {&lt;br /&gt;	BORDER-RIGHT: 0px; &lt;br /&gt;	BORDER-TOP: 0px; &lt;br /&gt;	VERTICAL-ALIGN: middle;&lt;br /&gt;	BORDER-LEFT: 0px; &lt;br /&gt;	BORDER-BOTTOM: 0px;&lt;br /&gt;}&lt;br /&gt;#floatright {&lt;br /&gt;	float: right;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
For the CSS and this for the HTML:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;IMG height=250 src=&amp;quot;index_files/JKRunKatie.jpg&amp;quot; width=230 id=&amp;quot;floatright&amp;quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
Notice I removed the align=&quot;right&quot; but the vertical align is still there for all other images... Hopefully the mystery is solved? Bearing in mind I&#039;ve only tested this on IE6, hmmm.  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/eyeroll.png&quot; title=&quot;Roll eyes&quot; alt=&quot;Roll eyes&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jan 2004 15:40:24 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1144320 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144302</link>
    <description> &lt;p&gt;Renegade, the problem is that the vertical-align stops the floating from happening. Because we can&#039;t cancel out the vertical-align declaration if it applies first and foremost to ALL images, that won&#039;t work.&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jan 2004 14:17:10 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1144302 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144281</link>
    <description> &lt;p&gt;Have you tried:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;./images/my_image.jpg&quot; height=&quot;10&quot; width=&quot;10&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;That will make the image float to the right and have text wrap around it. Might also help if you set a class to it so that you can do other things.&lt;/p&gt;
&lt;p&gt;HTML:&lt;br /&gt;
&lt;img src=&quot;./images/my_image.jpg&quot; height=&quot;10&quot; width=&quot;10&quot; alt=&quot;&quot; title=&quot;&quot; class=&quot;floated-image-right&quot; /&gt;&lt;/p&gt;
&lt;p&gt;CSS:&lt;br /&gt;
.floated-image-right {&lt;br /&gt;
position:relative;&lt;br /&gt;
float:right;&lt;br /&gt;
margin:10px 0px 10px 10px;&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jan 2004 08:50:04 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1144281 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144270</link>
    <description> &lt;p&gt;I see the problem. You can put classes in ALL your images (ugh), you can put that image in a DIV? maybe? Set a contextual for all images as p img {} and then put the problematic image in div#id img {} instead?&lt;/p&gt;
&lt;p&gt;There isn&#039;t a way to unset, that I could find, anyway. I went digging around and I think contextual CSS will help, if we can find the right combination.&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jan 2004 02:41:36 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1144270 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144268</link>
    <description> &lt;p&gt;Well, as I understand, I don&#039;t need the vertical-align set at all for that image to float correctly. But I have set it on the main CSS, so is there a way to unset it for a particular element?&lt;/p&gt;
&lt;p&gt;I tried this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;img#bilde {&amp;nbsp; }&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
And set id=&quot;bilde&quot; for the image tag, but it still was middle vertical-aligned, and didn&#039;t float to the right top corner.&lt;/p&gt;
&lt;p&gt;Or is there another way?&lt;/p&gt;
&lt;p&gt;Also, I don&#039;t think I can use your second suggestion, as even if these some particular images will alwasy be placed in the body part, there are many other images in the body part too, that needs that aligning.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
eyedam&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jan 2004 01:17:53 +0000</pubDate>
 <dc:creator>eyedam</dc:creator>
 <guid isPermaLink="false">comment 1144268 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144255</link>
    <description> &lt;p&gt;You can set an ID for the image(s) that you want to behave differently from the other images, and then set vertical-align to whatever you want.&lt;/p&gt;
&lt;p&gt;Another option would be to set a specific contextual identity for all the img that have the vertical align set, such as if they are always in the body and this other image is in the header:&lt;/p&gt;
&lt;p&gt;#header img {}&lt;/p&gt;
&lt;p&gt;#content img {vertical-align: middle;}&lt;/p&gt;
&lt;p&gt;That will keep the declarations for the content images from affecting the header images.&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Jan 2004 21:15:08 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1144255 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144253</link>
    <description> &lt;p&gt;OK, thanks for the reply, m3rajk, however, you didn&#039;t quite understand the problem. Yes, my post can be misunderstood easily (I see that now) if read alone. But it is a reply to the previous posts, so it should be read after those. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;What I meant, was that I (already) use the same CSS for all my site&#039;s pages and want to keep it as it is. Only I have set &quot;img&quot; tags vertical-align to middle, and that, as Greg and Jack explained prevents from my image floating to the right correctly.&lt;/p&gt;
&lt;p&gt;So, I asked what should I do in this case? Is there a way to cancel all previous style definitions for an object (then I could cancel vertical-align definition to that image). If not, what else can be done?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
eyedam &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Jan 2004 19:55:57 +0000</pubDate>
 <dc:creator>eyedam</dc:creator>
 <guid isPermaLink="false">comment 1144253 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/floating-image-right#comment-1144238</link>
    <description> &lt;p&gt;use css in an imported file. this means you either have  or something like that in your header or   in your header.&lt;/p&gt;
&lt;p&gt;at that point use classes and ids to manipulate different things. this will allow things that are recurring across pages to be updated MUCH easier since there&#039;s but one place, and also allow faster loading since css files are done once per session... and most browsers will only check the update time and dl the new file if the last update to the file is newer than wha t they have, thus lowering the number of bytes sent per page call&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Jan 2004 17:26:55 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1144238 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
