Math |
Math |
CodeKing |
Feb 23 2007, 01:00 PM
Post
#1
|
Advanced Member Group: Members Posts: 175 Joined: 12-September 06 Member No.: 118 |
If there some way to have a CSS style something like this?
width: 100%-200px |
pandy |
Feb 23 2007, 02:01 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
I don't see anything like that at http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width .
|
Christian J |
Feb 23 2007, 02:16 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
There are workarounds though, like giving a parent container 200px padding.
MSIE supports dynamic properties in style sheets, but IMO ordinary javascript is better since it's both W3C-compliant and supported by other browsers. |
Lo-Fi Version | Time is now: 25th April 2024 - 03:57 PM |