LemonInflux Posted February 24, 2008 Share Posted February 24, 2008 I'm designing a website in CSS, and have one div layer within another div layer. I want the one in the middle to be 20px shorter than the other. Can this be achieved? Can I do something like width:100%-20px;? Thanks in advance, Tom Quote Link to comment https://forums.phpfreaks.com/topic/92714-maths-in-css/ Share on other sites More sharing options...
TheFilmGod Posted February 24, 2008 Share Posted February 24, 2008 I'm designing a website in CSS, and have one div layer within another div layer. I want the one in the middle to be 20px shorter than the other. Can this be achieved? Can I do something like width:100%-20px;? Thanks in advance, Tom Not in Css. YOu would either have to use php to parse the css code differently for each user, OR use javascript to dynamically change both. Either solution doesn't work 100% and isn't worth the time to put in. Quote Link to comment https://forums.phpfreaks.com/topic/92714-maths-in-css/#findComment-475288 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.