by-expession

Expression Web Resources

Chapter 8 excercise 8-1 and 8-2

Latest post 04-27-2008 7:18 PM by cdwise. 2 replies.
  • 04-15-2008 8:59 PM

    • sogent
    • Top 200 Contributor
    • Joined on 04-15-2008
    • Dallas, TX
    • Posts 1

    Chapter 8 excercise 8-1 and 8-2

    I have been all day on these two exercises.  Here are my problems:

    1. the whole page is yellow, not ending under the masthead as the examples show.

    2. the menu is aligned to the left, not to the right

    3. there is no "rollover' or "mouseover" as mentioned on page 223

    Here is the code, please help me:

    <!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-Language" content="en-us" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Chapter 8</title>
    <style type="text/css">
    body {
     font-family: Tahoma, Helvetica, Arial, sans-serif;
     color: #000000;
     background-color: #FFFFFF;
     padding: 0px;
     margin: 0px;
    }
    .floatleft {
     float: left;
    }
    .floatright {
     float: right;
    }
    #masthead {
     background-color: #000000;
     padding: 0;
     margin: 0 124px 0 0;
     color: #FDB928;
     height: 119px;
     text-align: right;
    }
    #masthead h1 {
     padding: .5em 1em;
     margin: 0;
     font-size: 1.5em;
    }
    .tagline {
     font-size: .75em;
    }
    #menu {
     background: url('images/menu-bg.gif') repeat-x bottom #FDB928;
     height: 45px;
    }
    #menu u1 {
     margin: 0;
     padding: 0 1em 0 0;
     text-align: right;
    }
    #menu li {
     display: inline;
     border-left: 1px solid #000000;
    }
    #menu a {
     display:  inline;
     border-left:  1px solid #000000;
    }
    #menu a {
     line-height: 40px;
     padding: 0 .3em;
     text-decoration: none;
     color: #333333;
    {
     </style>
    </head>

    <body id="menu">
      <img alt="Expression Web Book" src="images/book.png" width="126" height="164" class="floatright" />
            <div id="masthead">
            <h1>Expression Web<br />
        <span class="tagline">The Basics and Beyond</span></h1>
    </div>
    <div id="menu">
        <img alt="" src="images/menu-lft.gif" width="33" height="45" class="floatleft" />
        <ul>
            <li><a href="index.html">home</a></li>
            <li><a href="about.html">about</a></li>
            <li><a href="BLOCKED SCRIPTvoid ()">exercises</a></li>
            <li><a href="BLOCKED SCRIPTvoid ()">links</a></li>
            <li><a href="BLOCKED SCRIPTvoid ()">contact</a></li>
        </ul>
    </div>

    </body>

    </html>

    Thanks, John Donovan

  • 04-19-2008 8:51 AM In reply to

    • Pat Geary
    • Top 10 Contributor
    • Joined on 12-23-2006
    • Harrisonburg VA
    • Posts 48

    Re: Chapter 8 excercise 8-1 and 8-2

    John, is this the one you are trying to work with http://www.css.the-gearys.com/week8/chapter8.html

     

    Remember that you can also download the files from http://www.foundationsofexpressionweb.com/exercises/


     

    Pat Geary MS MVP - FrontPage
    http://www.expression-web-tutorials.com/
    http://www.genealogy-web-creations.com/
    http://www.frontpage-to-expression.com/

  • 04-27-2008 7:18 PM In reply to

    • cdwise
    • Top 10 Contributor
    • Joined on 12-22-2006
    • Houston, TX
    • Posts 541

    Re: Chapter 8 excercise 8-1 and 8-2

     John,

    You have:

    #menu a {
     display:  inline;
     border-left:  1px solid #000000;
    }
    #menu a {
     line-height: 40px;
     padding: 0 .3em;
     text-decoration: none;
     color: #333333;
    {

    This is not valid css. First you shouldn't have 2 #menu a definitons so combie the style. Second you have  { instead of a } after the second style block. Second you are missing a definition for #menu a:hover. That is what will provide you with a rollover. AddL

    #menu a:hover {
     text-decoration: underline;
    }

    Then you will see a rollover effect. Modify the #menu a:hover to what you want yor rollover to look like.

    Cheryl D Wise MS MVP Expression Instructor: starttoweb.com

Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems Sponsored by: Start to Web
@ 2005-2008 Cheryl D Wise