Jump to content

Stacking Divs when window sizes get tight?


wright67uk

Recommended Posts

do you mean something like this?

 

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />       
        <link type="text/css" rel="stylesheet" href="css/style.css" />
        <title></title>
        <style type="text/css">
           #wrapper{max-width: 900px}
           #wrapper div{width:298px; height:298px; border: 1px solid #eee;float:left;}
        </style>
    </head>
    <body>
       <div id="wrapper">
           <div>a</div>
           <div>b</div>
           <div>c</div>
        </div>
    </body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.