Previous Message
Next Message

Computing lengths, mixing units

Sent by David Barrett on 25 September 2003 14:02


I'd like to know if there's anyway a length can be specified with a bit of 
arithmetic instead of a strict value... something like this:

/* Total width, including margin, padding and borders is 50% */
div.blah {
	width: 50% - 8px;
	margin: 4px;
	padding: 0px;
	border: 0px;
	}

I doubt it, but it would be nice to be able to do this. I *think* there's a 
Javascript way of doing this, but I'm not sure.

-- 
David Barrett
Lightreel

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: