This guide provides step-by-step instructions on how to implement CSS3 modal windows. It is designed to function smoothly on Chrome and Firefox browsers, although Internet Explorer may have trouble loading links with hashtags.
- Tutorial
- Demo
The first link leads to the source code, but a copy has been included below for reference.
HTML
<html lang="en" >
<head>
<meta charset="utf-8" />
... (omitted for brevity)
</html>
CSS
.main {
background: #aaa url(../images/bg.jpg) no-repeat;
width: 800px;
... (omitted for brevity)
}
.panel {
background-color: #444;
height: 34px;
padding: 10px;
}
... (omitted for brevity)