From c1d5ad8aa852dfd6da481ccd04665cf22f39e27a Mon Sep 17 00:00:00 2001 From: Ninjirate <44177938+Ninjirate@users.noreply.github.com> Date: Tue, 16 Oct 2018 00:06:04 -0500 Subject: [PATCH] Default img display type (#19421) * Default img display type Added info about how img elements are rendered for display type by default. * Update index.md --- .../src/pages/guide/english/css/css-images/index.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/client/src/pages/guide/english/css/css-images/index.md b/client/src/pages/guide/english/css/css-images/index.md index 009b69043d..49b24d38ba 100644 --- a/client/src/pages/guide/english/css/css-images/index.md +++ b/client/src/pages/guide/english/css/css-images/index.md @@ -2,10 +2,9 @@ title: CSS Images --- ## CSS Images -

This helps in adding an image to a website.

+This helps in adding an image to a website. - -####Code Sample +#### Code Sample ```Picture``` @@ -14,6 +13,14 @@ title: CSS Images * **width:** This specifies a width for the image(can be percent or px or auto) * **height:** This specifies a height for the image(can be percent or px or auto) +#### CSS Defaults +The `img` element will be rendered by default in most browsers to be displayed as an inline-block display type unless specified otherwise. + +``` +img { + display: inline-block; + } +``` #### More Information: