CSS: expression ( use percentage & pixels to calculate )

i want to set the width of the DIV like

( 100% - 10px )

using CSS expression but have been failing can somebody tell me what is the answer to that


You can't do that unfortunatly, and it can be annoying because you do run into instances where it would be great.

You can use Javascript to work out pixel widths of elements, but this gets messy and very complicated to manage very quickly.

My recommendation is go back to the drawing board and redesign your layout to work around this issue.

If you post specific examples we might be able to help.

Need Your Help

How to center an image in an Android Alert Dialog Title?

android layout alertdialog gravity

I am trying to center the image that I am adding to my Alert Dialog in an Android app as follows:

How to send a mail to hundreds of thousands recipients in python fast which each of recipients is showed as receiver in mail header?

python email sendmail smtplib

I'm looking of solutions to send huge number of mails (hundreds of thousands) in Python. I have a list of recipients (in a file), and I want to send a mail to all of them. I want each of recipients...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.