How are pixels measured?


Hi. I have been playing around with the borders and i noticed that when i set the border to 1px, it is 2px (as measured using MS Paint). When i set it to 2px, actual border size is 3px. When i set it to 3px, actual border size is 5px. When i set it to 4px, border size becomes 6px.

When i set an element to 100px width, it is actually around 150px. Something that i set as 500px becomes around 750px

What is the best way to verify if the pixels i set are applied? Thank you.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.