user2779380
user2779380

Reputation: 13

How to Create Expanded Sidebar Menu

I am a newcomer to webdesign. I am working on a personal site and I want to organize the menu on the left side of the page, and have it expand to reveal the projects within each category, much like this shopping site: http://www.zara.com/dk/en/woman/shirts-c358004.html.

I cannot figure out where to start, so any advice would be much appreciated.

Upvotes: 0

Views: 118

Answers (1)

Alaa M. Tekleh
Alaa M. Tekleh

Reputation: 7916

this can be done using css as follows

<html>
<head>
<style>
#leftdiv{
  float:left;
  width:50%;
}
#rightdiv{
   float:right;
   width:50%;
}
</style>
</head>
<body>
<div id="maindiv">
    <div id="leftdiv">
       <!-- Content of div -->
    </div>
    <div id="rightdiv">
       <!-- div content -->
    </div>
</div>
</body>
</html>

Upvotes: 1

Related Questions