Styling the content

We will have to be very precise about the CSS rules for all elements, especially for all the elements inside the div having id container. Write the following CSS rules in the head section of the index.html file, and then we will go through each of these to see the concepts behind them:

<style type="text/css"> body{ font-family:arial,verdana; font-size:12px; margin: 0px auto; width: 900px; } .container{ border: 1px solid #333; border-left:0; height: 250px; margin: 100px auto 0; overflow: hidden; position:relative; width: 500px; } #timeline{ border-left: 1px solid; width: 2000px; position:absolute; } .year{ border-left: 1px solid #333; float: left; height: 250px; width: 99px; text-align:center; } .year div{ margin-top: 50px; } ...

Get Mastering jQuery UI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.