<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>Style doesn't work on one page, everything validat | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/</link>
  <description>A Layout forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>05/02/05, 122 07 2005 2005:%i:1115089626 23:07:06</pubDate>
  <lastBuildDate>06/07/13, 158 57 2013 2013:%i:1370588228 02:57:08</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Stan  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1913</link>
    <description><![CDATA[When I apply the classes &quot;lpic&quot; and &quot;rpic&quot; to images, they work on every page but one (at least I've only found one where they don't work). The CSS and the markup all validate on the page where they don't work. The classes are intended to float the element to the left or right and put a margin between it and the text. Here's the css:<br /><code><br /> &nbsp; &nbsp; &nbsp;.lpic &nbsp;{<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float : left;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; margin-right : 14px;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; margin-bottom : 5px;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display : inline;<br /> &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; .rpic {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float : right;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;margin-left : 14px;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;margin-bottom : 5px;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;display : inline;<br /> &nbsp; &nbsp; &nbsp;}</code><br /><br />and here's the markup for one of the three pix that fail to float:<br /><code><br />&lt;a href=&quot;tm03dcole.html&quot; title=&quot;Larger picture of Deborah Coleman&quot; class=&quot;rpic&quot;&gt;<br />&lt;img src=&quot;tm03dcole80.jpg&quot; height=&quot;80&quot; width=&quot;120&quot; alt=&quot;Deborah Coleman, Fireworks&quot; class=&quot;rpic&quot; /&gt;&lt;/a&gt;</code><br />The page I'm having trouble with is here:<br /><a href="http://www.mvbs.org/fest.htm">http://www.mvbs.org/fest.htm</a><br />the floating fails to take place at the following fragments:<br /><a href="http://www.mvbs.org/fest.htm#tix">http://www.mvbs.org/fest.htm#tix</a><br /><a href="http://www.mvbs.org/fest.htm#maplink">http://www.mvbs.org/fest.htm#maplink</a><br /><a href="http://www.mvbs.org/fest.htm#vol">http://www.mvbs.org/fest.htm#vol</a><br />Here is an example of a page where the same code works:<br /><a href="http://www.mvbs.org/frishell04.html">http://www.mvbs.org/frishell04.html</a><br /><br />Another puzzling thing is that when I put those pictures on that page a couple of weeks ago, they all floated like they were suposed to. I've made changes to the page since then, but none that should affect those parts. And everything still validates with W3C.<br />]]></description>
    <pubDate>05/02/05, 122 07 2005 2005:%i:1115089626 23:07:06</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1913</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1914</link>
    <description><![CDATA[Stan, you have declared class=&quot;rpic&quot; twice. I don't know if that has anything to do with it. The sure fix would be to wrap the images in a div.]]></description>
    <pubDate>05/03/05, 123 40 2005 2005:%i:1115102402 02:40:02</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1914</guid>
   </item>
     <item>
    <title>Stan  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1915</link>
    <description><![CDATA[<blockquote><strong>Forum said:</strong><br />
Stan, you have declared class=&quot;rpic&quot; twice. I don't know if that has anything to do with it. The sure fix would be to wrap the images in a div.</blockquote>Are you referring to using the classboth in the IMC tag and the A tag? I've tried it several ways. putting the class in the IMG tag, in the A tag and in both. The text still doesn't wrap. <br /><br />This fragment <a href="http://www.mvbs.org/fest.htm#vol">http://www.mvbs.org/fest.htm#vol</a> does have the picture wrapped in a DIV. Still no wrapping.<br /><br />I'm sure I'm missing something really simple, but it's invisible to me.<br />]]></description>
    <pubDate>05/03/05, 123 55 2005 2005:%i:1115124901 08:55:01</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1915</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1916</link>
    <description><![CDATA[I couldn't find any selector for .rpic in your style sheets. If I put<br /><br />&lt;div class=&quot;rpic&quot; style=&quot;width: 66px; height: 80px; float: left&quot;&gt;<br /> it does what you expect (I think).<br /><br />BTW, W3C *is* reporting errors in your CSS.<br /><br />http://jigsaw.w3.org/css-validator/validator?profile=css2&amp;warning=2&amp;uri=http%3A//www.mvbs.org/fest.htm%23vol]]></description>
    <pubDate>05/03/05, 123 49 2005 2005:%i:1115138951 12:49:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1916</guid>
   </item>
     <item>
    <title>Stan  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1917</link>
    <description><![CDATA[Thanks for finding that typo in my code. I don't know why the W3C didn't find it a couple of days ago. I fixed it but it didn't affect my problem.<br /><br />.lpic and .rpic are in the stylesheet &quot;mvbs5.css&quot;. I'm using @import for that one because I found those two styles obliterate text when NN4 is used. I don't relly care how things look in that browser, but I want its few remaining users to be able to see the text.<br /><br />I'm using the same method on at least two dozen other pages with no problems. I can't see what's different on this page. <br /><br />I tried copying and pasting the CSS from mvbs5.css to mvbsx.css and that fixed everything. Of course, that makes mvbs5.css redundant and pointless. Still scratching my head over why that page behaves differently.]]></description>
    <pubDate>05/03/05, 123 15 2005 2005:%i:1115172928 22:15:28</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/style_doesnt_work_on_one_page_everything_validat/#p1917</guid>
   </item>
   </channel>
</rss