Hello everybody:

I am using one table that has cells that msut be 20px height.
These cells have border on top and bottom. They are 1px width.
My question is, which would be the total height of cell including borders?

20px (borders included)
20px + 1px(border top) + 1px (border bottom)

Thanks a lot.

Recommended Answers

All 2 Replies

See this for an explanation of the box model. As you can see, you also need to include margin and padding into your calculation.

Thnak you very much pritaeas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.