-
- Note how in the below example there is white space rendered in between the
- elements because they are set to inline-block
-
-
This element is set to inline-block and width: 25%
-
This element is set to inline-block and width: 25%
-
This element is set to inline-block and width: 25%
-
This element is set to inline-block and width: 25%
-
-
-
- Note how in the below example the elements are flush with no
- white-space rendered between the elements.
-
-
-
- This is a floated element set to width: 25%
-
-
- This is a floated element set to width: 25%
-
-
- This is a floated element set to width: 25%
-
-
- This is a floated element set to width: 25%
-
-
-
-
- The largest difference here between the two methods is that every element on the page is
- outlined in a different color.
-
-
- Note how in the below example there is white space rendered in between the
- elements because they are set to inline-block
-
-
This element is set to inline-block and width: 25%
-
This element is set to inline-block and width: 25%
-
This element is set to inline-block and width: 25%
-
This element is set to inline-block and width: 25%
-
-
-
- Note how in the below example the elements are flush with no
- white-space rendered between the elements.
+
+
Examples
+
Debug Children
+
+
+ Note how in the below example there is white space rendered in between the
+ elements because they are set to inline-block
+
+
This element is set to inline-block and width: 25%
+
This element is set to inline-block and width: 25%
+
This element is set to inline-block and width: 25%
+
This element is set to inline-block and width: 25%
+
+
+
+ Note how in the below example the elements are flush with no
+ white-space rendered between the elements.
+
+
+
+ This is a floated element set to width: 25%
+
+
+ This is a floated element set to width: 25%
+
+
+ This is a floated element set to width: 25%
+
+
+ This is a floated element set to width: 25%
+
+
+
+
+
Debug All
+
+ The largest difference here between the two methods is that every element on the page is
+ outlined in a different color.
+
+
+
+ Note how in the below example there is white space rendered in between the
+ elements because they are set to inline-block
+
+
This element is set to inline-block and width: 25%
+
This element is set to inline-block and width: 25%
+
This element is set to inline-block and width: 25%
+
This element is set to inline-block and width: 25%
+
+
+
+ Note how in the below example the elements are flush with no
+ white-space rendered between the elements.
+
+
+
+ This is a floated element set to width: 25%
+
+
+ This is a floated element set to width: 25%
+
+
+ This is a floated element set to width: 25%
+
+
+ This is a floated element set to width: 25%
+
+
+
+
+
+
-
- This is a floated element set to width: 25%
-
-
- This is a floated element set to width: 25%
-
-
- This is a floated element set to width: 25%
-
-
- This is a floated element set to width: 25%
-
-
-
-
-
-
-
-
-