0

How to calculate total width and height ?

iam so long learn css but still noob and not undertestand about box model. the problm is iam not undertestand how to calculate total width and total height. someone can explain ?.

26th May 2017, 11:42 AM
Muhammad Syabani Falif
Muhammad Syabani Falif - avatar
5 Respuestas
+ 1
If you mean total width/height of some element, that is: content+padding+border. If you want to get total height/width of browser window you have to use JavaScript.
26th May 2017, 12:25 PM
Amar
Amar - avatar
0
total width and height of what?
26th May 2017, 12:23 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
total width of a element sorry bad english.
26th May 2017, 12:24 PM
Muhammad Syabani Falif
Muhammad Syabani Falif - avatar
0
are formula for width of some element like this ? margin left & right + padding left & right + border left & right + width = total widht. am i right ?
26th May 2017, 12:26 PM
Muhammad Syabani Falif
Muhammad Syabani Falif - avatar
0
not margins, they are not counted in width
26th May 2017, 2:56 PM
Amar
Amar - avatar