We can set div beside div by using float:left;
you may try this program if you need for example :
Showing posts with label div in html. Show all posts
Showing posts with label div in html. Show all posts
What Is a "div" Tag/Element?
A "div" element is a block element that you can use a container of flow elements (flow elements are really the superset of both inline elements and block elements). By default, "div" elements will be treated as paragraphs by most browsers. Here are basic rules about an "div" element:
- "div" elements are block elements.
- "div" elements can have PCDATA as contents.
- "div" elements can have inline elements as sub-elements.
- "div" elements can have block elements as sub-elements.
- A "div" element will be displayed as a paragraph by most browsers.
Labels:
Div element,
div in html,
div tag
Subscribe to:
Posts (Atom)