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)
or
20px + 1px(border top) + 1px (border bottom)

Thanks a lot.
xescjp

Recommended Answers

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

Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.