GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   IE doesn't follow max-width in css (https://gfy.com/showthread.php?t=1009304)

Oracle Porn 02-07-2011 09:27 AM

IE doesn't follow max-width in css
 
anyone has a workaround?

Deej 02-07-2011 10:51 AM

100%


:thumbsup

BestXXXPorn 02-07-2011 11:17 AM

#foo {
max-width: 400px;
width: expression(getElementById('foo').width > 400 ? '400px' : 'auto');
}

Change dimensions for what you need ;)

Essentially, IE uses expression() in css to allow Javascript. You should be able to modify the above to fit what ya need :P


All times are GMT -7. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc