<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1025503" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1025503</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1156115</link>
    <description> &lt;p&gt;use regular width...not min-width&lt;code&gt;width: 25px;&lt;/code&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 05 Aug 2004 04:12:12 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1156115 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1156110</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Abhishek Reddy wrote:&lt;/strong&gt; Tables for layout is probably not a good idea. In the move towards a &lt;a href=&quot;http://www.w3.org/2001/sw/&quot; class=&quot;bb-url&quot;&gt;Semantic Web&lt;/a&gt; &lt;a href=&quot;http://infomesh.net/2001/swintro/&quot; class=&quot;bb-url&quot;&gt;[1]&lt;/a&gt;&lt;a href=&quot;http://www.semanticweb.org/&quot; class=&quot;bb-url&quot;&gt;[2]&lt;/a&gt;&lt;a href=&quot;http://www.sciam.com/article.cfm?articleID=00048144-10D2-1C70-84A9809EC588EF21&quot; class=&quot;bb-url&quot;&gt;[3]&lt;/a&gt;, it makes more sense to use  with CSS. Rather than a &lt;a href=&quot;http://www.sitepoint.com/article/951&quot; class=&quot;bb-url&quot;&gt;liquid layout&lt;/a&gt;, consider using an &lt;a href=&quot;http://www.alistapart.com/articles/elastic/&quot; class=&quot;bb-url&quot;&gt;elastic layout&lt;/a&gt;. &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;/blockquote&gt;
&lt;p&gt;Amen to that! But, using CSS and DIVs, how can I get the min-width property to work in IE since it does not use that property. I&#039;ve heard that there might be some JavaScript, but I don&#039;t want to use JS if it&#039;s avoidable.&lt;/p&gt;
&lt;p&gt;Abhishtek, got a solution for that?&lt;/p&gt;
&lt;p&gt;TIA...&lt;/p&gt;
 </description>
     <pubDate>Thu, 05 Aug 2004 03:03:19 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1156110 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1155000</link>
    <description> &lt;p&gt;Thanks for all of the information! I hadn&#039;t read anything about the Semantic Web before. This pretty much means a complete overhaul of my site, but that&#039;s not a bad thing. &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;
 </description>
     <pubDate>Mon, 12 Jul 2004 21:24:43 +0000</pubDate>
 <dc:creator>Yianni</dc:creator>
 <guid isPermaLink="false">comment 1155000 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1154995</link>
    <description> &lt;p&gt;Tables for layout is probably not a good idea. In the move towards a &lt;a href=&quot;http://www.w3.org/2001/sw/&quot; class=&quot;bb-url&quot;&gt;Semantic Web&lt;/a&gt; &lt;a href=&quot;http://infomesh.net/2001/swintro/&quot; class=&quot;bb-url&quot;&gt;[1]&lt;/a&gt;&lt;a href=&quot;http://www.semanticweb.org/&quot; class=&quot;bb-url&quot;&gt;[2]&lt;/a&gt;&lt;a href=&quot;http://www.sciam.com/article.cfm?articleID=00048144-10D2-1C70-84A9809EC588EF21&quot; class=&quot;bb-url&quot;&gt;[3]&lt;/a&gt;, it makes more sense to use  with CSS. Rather than a &lt;a href=&quot;http://www.sitepoint.com/article/951&quot; class=&quot;bb-url&quot;&gt;liquid layout&lt;/a&gt;, consider using an &lt;a href=&quot;http://www.alistapart.com/articles/elastic/&quot; class=&quot;bb-url&quot;&gt;elastic layout&lt;/a&gt;. &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; If you do go the route of an elastic layout, don&#039;t worry about min-widths (or max-widths) too much. The intent is to get it to work about two sizes up and down from &quot;normal&quot; (so a range of five sizes). Any more or less is simply unrealistic on screen media. &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>Mon, 12 Jul 2004 18:22:32 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1154995 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1154991</link>
    <description> &lt;p&gt;Thanks Abhishek! Here&#039;s the exact situation, and how I fixed it.&lt;/p&gt;
&lt;p&gt;I was making a liquid design, but I decided that the lowest resolution I would design for is 800*600. For this reason, I wanted to set the minimum width of the elements so they wouldn&#039;t squish themselves onto a 640*480 screen. Here&#039;s the simplified code.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;table border=&amp;quot;1&amp;quot; height=&amp;quot;100&amp;quot; width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td &amp;gt;&lt;br /&gt;	Elastic table!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td height=&amp;quot;30&amp;quot; width=&amp;quot;500&amp;quot;&amp;gt;&lt;br /&gt;	&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;Menu&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;table&amp;nbsp; width=&amp;quot;650&amp;quot; border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td &amp;gt;&lt;br /&gt;	This is a cemented 650px table.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;As you can see, it&#039;s 2 tables, one with 2 rows, and one with 1. I wanted the Elastic and Menu table to be 100% wide so it would stretch, but I didn&#039;t want it to go below, for example, 650px (the width of the other table) if the window was resized. I was so set on finding a line of code to do this that I complicated things by using the expression() property. The easiest and most practical solution was to do the following.&lt;/p&gt;
&lt;p&gt;I created a container for my menu with a width of 650px and placed it in the menu row. If the window was resized, this forced the table to stay at 650px, exactly where I wanted it. It also held the menu together quite nicely.&lt;/p&gt;
&lt;p&gt;Moral of the story, keep it simple. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt; Thanks for everyone&#039;s help!&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Jul 2004 18:05:05 +0000</pubDate>
 <dc:creator>Yianni</dc:creator>
 <guid isPermaLink="false">comment 1154991 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1154974</link>
    <description> &lt;p&gt;Browsers default to buggy/quirks mode (or at least IE does) when you don&#039;t declare a doctype. When you do, it switches to whatever mode is specified in the doctype declaration. Some functionality is exclusive to one or a few of the modes. &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; I&#039;ve read about &lt;strong&gt;expression&lt;/strong&gt; being used as a min-width fix, but I can&#039;t recall any alternatives. Did you use a block of &amp;lt;script&amp;gt; instead of styling it?&lt;/p&gt;
&lt;p&gt; You could use PHP or any other server-side language to sniff for the validator and choose not to serve up that bit of CSS or Javascript. &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>Mon, 12 Jul 2004 14:35:23 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1154974 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1154961</link>
    <description> &lt;p&gt;Would you like to kindly post the solution so others may learn?&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Jul 2004 09:46:29 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1154961 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1154950</link>
    <description> &lt;p&gt;Yeah, it&#039;s Internet Explorer&#039;s &lt;strong&gt;expression()&lt;/strong&gt; property. There&#039;s Javascript in the brackets.&lt;/p&gt;
&lt;p&gt;Example in a style tag,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;p {&lt;br /&gt;
    width:expression(some javascript goes here);&lt;br /&gt;
}&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Okay, so that explains why the line won&#039;t validate on it&#039;s own. I&#039;m still curious as to why this line stops working when I declare the !DOCTYPE. Also, any alternate ideas?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit -&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I didn&#039;t want to double post. I found another way to fix the problem, it was actually quite simple and obvious. It eluded me for days!  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt; Anyways, I&#039;m still wondering about why the line stopped working when the !DOCTYPE was declared. I&#039;m just interested.&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Jul 2004 03:40:44 +0000</pubDate>
 <dc:creator>Yianni</dc:creator>
 <guid isPermaLink="false">comment 1154950 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/widthexpression#comment-1154945</link>
    <description> &lt;p&gt;Is that JavaScript? I&#039;m just wondering because I&#039;ve never seen &quot;width:expression(...)&quot; JavaScript will not validate in a CSS document.&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Jul 2004 02:41:25 +0000</pubDate>
 <dc:creator>gohankid77</dc:creator>
 <guid isPermaLink="false">comment 1154945 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
