Jump to content

can we write mathematical expression in height


sweetysweety

Recommended Posts

hi everyone,i have a structure on my attachmenti'm trying to expand the height of my red block under the buttons.i want to see 2px top and bottom of that block.i think if i can write a mathematical expression on height method,i can do what i want.but i search on net and couldnt find anything.can anyone help me to solve this problem?

post-143548-0-85034400-1368610538_thumb.gif

Link to comment
Share on other sites

Is this a CSS or a Javascript question? CSS can't do it. Javascript can manipulate elements and do mathematical calculations, but people who have Javascript disabled can't see it. I think you can probably do what you want without having to add in mathematical expressions by setting paddings, margins and borders. You'll have to explain the goal you want to achieve more clearly.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...