View Single Post
Old 07-04-2008, 01:23 PM  
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Strangely enough, you can do it in IE but not any other browser. Go figure, the one browser that does CSS the worst....

In IE... you can do this:

<style>
#column1 {
width: expression(document.getElementsByTagName('body')[0]) / 2);
}
</style>

In IE, you can use javascript within the expression brackets. But every other browser will ignore it.

You can
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote