1. Float
If two column, one element float right and another float left , or you can float left for all element.
If three column, three element float left.
Note that all floated element u must specify width, if not, it will take whatever width necessary to fill the content.
2. Inline-block
Need to specify width for them also , if not, they will take up whatever space necessary to fill the content.
There are default spacing between inline-block, comment them out.
Inline-block are vertical align in the bottom by default, you need to set vertical align property to top.
If two column, one element float right and another float left , or you can float left for all element.
If three column, three element float left.
Note that all floated element u must specify width, if not, it will take whatever width necessary to fill the content.
2. Inline-block
Need to specify width for them also , if not, they will take up whatever space necessary to fill the content.
There are default spacing between inline-block, comment them out.
Inline-block are vertical align in the bottom by default, you need to set vertical align property to top.
Comments
Post a Comment