No replies
ohmyhelp's picture
Last seen: 9 years 35 weeks ago
Timezone: GMT+1
Joined: 2013-01-29
Posts: 1
Points: 2

Hi all,
i downloaded a layout ( ) and a menu ( ) from dynamicdrive and would like to extract the css from the html-file and add it to the .css-file. I tried, but i somehow failed since the menu is not working correctly. Please help me. My html looks like this:

<!--Force IE6 into quirks mode with this comment tag-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en" xml:lang="en">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dynamic Drive: CSS Left Frame Layout</title>
<script type="text/javascript">
/*** Temporary text filler function. Remove when deploying template. ***/
var gibberish=["This is just some filler text", "Welcome to Dynamic Drive CSS Library", "Demo content nothing to read here"]
function filltext(words){
for (var i=0; i<words; i++)
document.write(gibberish[Math.floor(Math.random()*3)]+" ")
<div id="framecontent">
<div class="innertube">
<h1>CSS Left Frame Layout</h1>
<h3>Sample text here</h3>
<div class="arrowgreen">
    <li><a href="" title="Home">Home</a></li>
    <li><a href="" class="selected" title="CSS">CSS Library</a></li>
    <li><a href="" title="Whois">DD Whois</a></li>
    <li><a href="" title="Forums">Forums</a></li>
    <li><a href="" title="Tools">Webmaster Tools</a></li>
    <li><a href="" title="JavaScript">JavaScript</a></li>
<div id="maincontent">
<div class="innertube">
<h1>Dynamic Drive CSS Library</h1>
<p><script type="text/javascript">filltext(255)</script></p>
<p style="text-align: center">Credits: <a href="">Dynamic Drive CSS Library</a></p>

and my css looks like this:

    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    height: 100%; 
    max-height: 100%; 
    position: absolute;
    top: 0;
    bottom: 0; 
    left: 0;
    width: 200px; /*Width of frame div*/
    height: 100%;
    overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
    background: navy;
    color: white;
    position: fixed;
    top: 0; 
    left: 200px; /*Set left value to WidthOfFrameDiv*/
    right: 0;
    bottom: 0;
    overflow: auto; 
    background: #fff;
    margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
* html body{ /*IE6 hack*/
  padding: 0 0 0 200px; /*Set value to (0 0 0 WidthOfFrameDiv)*/
* html #maincontent{ /*IE6 hack*/
  height: 100%; 
  width: 100%; 
  width: 180px; /*width of menu*/
  border-style: solid solid none solid;
  border-color: #94AA74;
  border-size: 1px;
  border-width: 1px;
.arrowgreen ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
.arrowgreen li a{
  font: bold 12px Verdana, Arial, Helvetica, sans-serif;
  display: block;
  background: transparent url(pics/arrowgreen.gif) 100% 0;
  height: 24px; /*Set to height of bg image- padding within link (ie: 32px - 4px - 4px)*/
  padding: 4px 0 4px 10px;
  line-height: 24px; /*Set line-height of bg image- padding within link (ie: 32px - 4px - 4px)*/
  text-decoration: none;
.arrowgreen li a:link, .arrowgreen li a:visited {
  color: #5E7830;
.arrowgreen li a:hover{
  color: #26370A;
  background-position: 100% -32px;
.arrowgreen li a.selected{
  color: #26370A;
  background-position: 100% -64px;

The arrowgreen.gif is in the right subfolder (pics), but right now my website looks like this:

Can you help me find the problem please?