css

what is the difference between width:50% and width:400px when used in a div or anywhere or any element in a code?

Please what is the difference between width:50% and width:400px when used in a div or anywhere or any element in a code?
You already invited:

Dexter

Upvotes from:

50% means 50% of the container the element is in. while 400px is 400px, regardless of browsing device.

If you wanna answer this question please Login or Register