F
foldface
Hi
Given something like this:
<style type="text/css">
DIV.allowLeft {clear: left;}
DIV.left {float: left;}
DIV.leftBig {float: left; width: 300}
DIV.rightBig {float: right; width: 300}
</style>
Is there anyway of placing the 'width:300' bit into another declaration
(pardon my terminology) so that I only have to change it in one place,
e.g. something like this:
<style type="text/css">
bigWidth = 300;
DIV.allowLeft {clear: left;}
DIV.left {float: left;}
DIV.leftBig {float: left; bigWidth}
DIV.rightBig {float: right; bigWidth}
</style>
The width is only going to apply to some divs
Thanks
F
Given something like this:
<style type="text/css">
DIV.allowLeft {clear: left;}
DIV.left {float: left;}
DIV.leftBig {float: left; width: 300}
DIV.rightBig {float: right; width: 300}
</style>
Is there anyway of placing the 'width:300' bit into another declaration
(pardon my terminology) so that I only have to change it in one place,
e.g. something like this:
<style type="text/css">
bigWidth = 300;
DIV.allowLeft {clear: left;}
DIV.left {float: left;}
DIV.leftBig {float: left; bigWidth}
DIV.rightBig {float: right; bigWidth}
</style>
The width is only going to apply to some divs
Thanks
F