2. HTML/CSS Programming

Write the XHTML and CSS code necessary to recreate the following appearance onscreen, between but not including the thick black lines. No manual line breaks have been inserted into the text.


q2 appearance

NOTE: Most of the XHTML code is given to you; the code given may not be modified. The only change you may make to the provided XHTML code is that you may add any number of div and span elements, possibly with id and/or class attributes, as targets for CSS styling. Write valid code that would pass the W3C validators. Assume that the given XHTML text would appear inside the body of the page.

Details about the desired appearance:

Mark up the text on the next page with your div/span tags. If a tag can't fit in the space provided, write it in the margins and draw an arrow to where it should be inserted. Write the CSS styles on the page after next.






  <img src="brunologo.png" alt="logo" />




  <ul id="links">
    <li><a href="home.html">HOME</a></li>
    <li><a href="vids/">VIDEOS</a></li>
    <li><a href="shirt.html">FUNNY SHIRTS</a></li>
    <li><a href="trailer.html">BRUNO MOVIE TRAILER</a></li>
    <li><a href="photos/">PHOTOS</a></li>
    <li><a href="http://dvdshop.com/">DVD SHOP</a></li>
  </ul>




  <img src="brunouniversal.jpg" alt="Bruno at Universal" />




  <h2>Universal Responds to Lawsuit</h2>




  <p>Movie studio Universal Pictures on Friday responded to a lawsuit filed...</p>




  <img src="paulaabdul.jpg" alt="Paula Abdul" />




  <h2>Paula Abdul Talks About Being in Bruno</h2>




  <p>Paula Abdul accepted an invite last year to receive an award as ...</p>




  <img src="eminem.jpg" alt="Eminem" />




  <h2>Eminem Admits He Was Involved</h2>




  <p>Three days after storming out of the MTV awards, Eminem admits to RapRadar...</p>


2. HTML/CSS Programming (writing space)

-->

2. HTML/CSS Programming

<div id="main">
    <img src="brunologo.png" alt="logo" />

    <div id="content">
        <ul id="links">
            <li><a href="home.html">HOME</a></li>
            <li><a href="vids/">VIDEOS</a></li>
            <li><a href="shirt.html">FUNNY SHIRTS</a></li>
            <li><a href="trailer.html">BRUNO MOVIE TRAILER</a></li>
            <li><a href="photos/">PHOTOS</a></li>
            <li><a href="http://dvdshop.com/">DVD SHOP</a></li>
        </ul>

        <div class="story">
            <img src="brunouniversal.jpg" alt="Bruno at Universal" />
            <h2>Universal Responds to Lawsuit</h2>
            <p>Movie studio Universal Pictures on Friday responded to a ...</p>
        </div>

        <div class="story">
            <img src="paulaabdul.jpg" alt="Paula Abdul" />
            <h2>Paula Abdul Talks About Being in Bruno</h2>
            <p>Paula Abdul accepted an invite last year to receive an ...</p>
        </div>

        <div class="story">
            <img src="eminem.jpg" alt="Eminem" />
            <h2>Eminem Admits He Was Involved</h2>
            <p>Three days after storming out of the MTV awards, Eminem ...</p>
        </div>
    </div>
</div>
body {
    background-color: #0088EE;
    font-family: sans-serif;
}

#main {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

#content {
    background-color: white;
    border: 3px solid #005588;
}

#links {
    list-style-type: none;
    padding: 0em;
    text-align: center;
}

#links li {
    display: inline;
    font-weight: bold;
    padding-left: 1em;
    padding-right: 1em;
}

.story {
    clear: right;
    overflow: hidden;
    margin: 1em;
}

.story h2 {
    margin-top: 0em;
}

.story img {
    float: right;
}