Web Development and Design Foundations with HTML5 (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
Author: Terry Felke-Morris
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 6, Problem 2AYK

Explanation of Solution

Missing code:

  • In style properties, set floating property as right, width=150px and border = 1px solid #000000 in nav style.
  • Similarly, set the margin property as 160px in main style.
  • Add the “nav” keyword precede the “a” style properties.
  • Set the “list-style-type” as none in unordered list “ul” style.

Modified code:

<!DOCTYPE html>

<!--HTML Tag-->

<html lang="en">

<!--Head Tag-->

<head>

<!--Title Tag-->

<title>Trillium Media Design</title>

<meta charset="utf-8">

<!--Style Tag-->

<style>

nav { float:right;

            width: 150px;

            background-color: #cccccc;

            border: 1px solid #000000; }

header { background-color: #cccccc;

        color: #663333;

        font-size: x-large;

        border-bottom: 1px solid #333333; }

main { margin-right: 160px; }

footer { font-size: x-small;

            text-align: center;

                clear: both; }

nav a { color: #000066;

            text-decoration: none; }

Blurred answer
Students have asked these similar questions
4. The following code is the implementation of the external CSS style. Convert the following code into inline CSS style. Question4.css Collapse Border Example Cell A Collapse Example Cell B Collapse Example Separate Border Example Cell A Separate Example Cell B Separate Example 1.css table.one {border-collapse:collapse;} table.two {border-collapse:separate;} td.a{ border-style:dotted; border-width:3px; } border-color:#000000; padding: 10px; } td.b { border-style:solid; border-width:3px; border-color: #333333; padding:10px;
QUESTION 15 Assume you have the following html code: * Your code goes here / Home Service About us Contact us Add the following internal CSS styling rules to the code you may use CSS class selectors as needed: 1. Remove the marker of the unordered list containing hyperlinks. 2. Remove the underlines from the hyperlinks. 3. Put an appropriate distance between the hyperlinks. 4. The hyperlinks should be displayed horizontally (beside each other). 5. Set an appropriate background color for navigation bar. 6. Make the hyperlink underline visible when mouse hover on all the hyperlinks. Home Ahout Contoot un
Web development
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning