i want to learn media queries and a little bit more in CSS. As of now i want a fixed sidebar that doesn't scroll down with the content.
Also, I've been reading about Media Queries earlier.. Just couldn't understand them yet.. Maybe a sample will give me hints...
Here's my code..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.wrapper {
width: 1024px;
margin: 0 auto;
}
.content {
background-color: #CCC;
width: 700px;
float: left;
}
.sidebar {
float: right;
height: 500px;
width: 300px;
padding: 10px;
background-color: #666;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="content">
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
<div class="post">
<h1>Header</h1>
<p>This is a excerpt or a content</p>
</div>
</div>
<div class="sidebar"></div>
</div>
</body>
</html>
To make it short, I'm just trying to imitate this site.. just to test my skills. It's looks simple...
As you can see, if you resize the browser window the menu changed,, Is that some kind of jQuery effect? If yes, where can i find a tutorial of that..