Convert pixels to percentages- what is the formula?

Hey there, I’m working on some liquid templates and wondered what the formula is to convert pixels to percentages as it relates to divs not fonts unless its the same principle…

TIA

lok

Erm… no. You don’t seem to have grasped the concept.
Pixels are absolute whereas percentages are… well, percentages - ie. relative. There is no formula to convert px to %.
Px widths never change. % widths do.

nah, I figured it out.

i’m sayin

say you have a container div 800px wide if you have a col div in the container 384px wide that would be 48%

384/800 =48%

That’s a formula?! I thought that was basic mathematics.

sorry my question wasnt phrased to your standards…