Yes, as shown in code samples provided to you by several posters in your other threads. Try this example posted recently for another member who asked the same question:
Designing with percentages - #3 by ronpat
You might read the comments at the top of the file. They might answer some of your questions or lead to new ones.