Search code examples
htmlcsslayoutalignment

How to make horizontal division using html div tag and css


I'm trying to make two horizontal divisons using <div> tag in html, but I couldn't make it. Can anyone help me make horizontal division using html and css with <div> tags?

This is prototype


Solution

  • Set the float property for each div to be matched, for example left to each, give each of them enough width so that the parent contains them.

    DEMO