CSS webpage layout example: horizontal column sharding
CSS horizontal column layout example. In the content display area, because the element has no height defined, you must add the content to better display the position of the element. That is to say, there is more room for the text display area, so that the content determines the height of the square, because the layout instance is horizontally unchanged and vertically changed to meet different layout needs.
Fire prompt:It's just a simple layout example, and the style is not beautifying. You can use CSS to beautify your friends. If you are not familiar with CSS, please read the CSS Chinese manual provided by the fire.
The following are examples:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Tip: the code can be modified before running!