nikc121, on 18 September 2010 - 06:25 AM, said:
Kruithne, on 18 September 2010 - 05:46 AM, said:
On the last bit of code you posted above, does this have some CSS to go with it to control the OL's, if not, they are all just showing as 1,2,3 unless you specify a type="".
Yes, here is the CSS code that goes with the above .html code.
h1 {text-align: center; color:red}
h2 {text-align: center; font-style: italic; font-size: 20px}
body {background-color: antiquewhite}
ol {list-style-type: upper-roman;}
ol ol {list-style-type: upper-alpha;}
ol ol ol {list-style-type: decimal;}
.cars {font-family: palatino linotype; width="100%"; cellspacing="2";}
#orange {color: orange}
#green {color: green}
#red {color: red}
#outterDiv { width: 1000px; height: 600px; }
#right { float: right; width: 495px; height: 100%;}
#left { float: left; width: 495px; height: 100%;}
Ok, So I basically just started over. I started a new html page and only put the nested tables and nested divs in, then I validated that. As you see the code now, it validate PASS in Strict xhtml. Now I just need help adding the colors orange to all of roman I, Green to roman II, and red to roman III, also I have to add a external link to the bottom divs, Compact, Misize and Sport. When I added the a href link inside Roman I compact, it underlined everything and now when you press anywhere on the bottom of the page it goes to that link. Any suggestions.
<head>
<title>Cool Cars</title>
<link href= "./styles/format.css" rel= "stylesheet" type= "text/css" />
</head>
<body>
<h1>Web Exercise 1 - Part I</h1>
<h2>Using external validated CSS and validated XHTML compliant code to create a nested ordered list,
with table and inserted image</h2>
<table class="cars">
<tr>
<td>
<ol>
<li>Compact
<ol>
<li>Two Door
<ol>
<li>Honda Civic </li>
<li>Toyota RAV 4 </li>
<li>Volvo C30 </li>
</ol>
</li>
<li>Four Door
<ol>
<li>Mazda 3</li>
<li>Inifiniti GT-R</li>
<li>Chevrolet Cruze</li>
</ol>
</li>
</ol>
</li>
<li>Midsize
<ol>
<li>Two Door
<ol>
<li>Nissan Altima </li>
<li>Mercury Milan </li>
<li>Buick LaCrosse </li>
</ol>
</li>
<li>Four Door
<ol>
<li>Chrysler Sebring </li>
<li>BMW 3</li>
<li>Toyota Camry</li>
</ol>
</li>
</ol>
</li>
<li>Sports
<ol>
<li>Coupe
<ol>
<li>Hyundai Genesis</li>
<li>Peugeot RCZ </li>
<li>Acura ZDX </li>
</ol>
</li>
<li>Convertible
<ol>
<li>Chevrolet Corvette</li>
<li>Porsche Boxster </li>
<li>Jaguar XKR </li>
</ol>
</li>
</ol>
</li>
</ol>
</td>
<td><p><img src="./images/final.jpg" alt="Cool Car" /></p>
</td>
</tr>
</table>
<hr />
<h1>Web Exercise 1 - Part 2</h1>
<h2>Using external validated CSS and validated XHTML compliant code to create a nested ordered list,
with Divs and inserted image</h2>
<div id="outer">
<div id="left">
<ol>
<li>Compact
<ol>
<li>Two Door
<ol>
<li>Honda Civic </li>
<li>Toyota RAV 4 </li>
<li>Volvo C30 </li>
</ol>
</li>
<li>Four Door
<ol>
<li>Mazda 3 </li>
<li>Inifiniti GT-R </li>
<li>Chevrolet Cruze </li>
</ol>
</li>
</ol>
</li>
<li>Midsize
<ol>
<li>Two Door
<ol>
<li>Nissan Altima </li>
<li>Mercury Milan </li>
<li>Buick LaCrosse </li>
</ol>
</li>
<li>Four Door
<ol>
<li>Chrysler Sebring </li>
<li>BMW 3 </li>
<li>Toyota Camry </li>
</ol>
</li>
</ol>
</li>
<li>Sport
<ol>
<li>Coupe
<ol>
<li>Hyundai Genesis</li>
<li>Peugeot RCZ </li>
<li>Acura ZDX </li>
</ol>
</li>
<li>Convertible
<ol>
<li>Chevrolet Corvette</li>
<li>Porsche Boxster </li>
<li>Jaguar XKR </li>
</ol>
</li>
</ol>
</li>
</ol>
</div>
<div id="right">
<p><img src="./images/final.jpg" alt="Cool Car" /></p>
</div>
</div>
<p>
<a href= "../index.html">Home</a>
</p>
</body>
</html>
Here is the Style css
h1 {text-align: center; color:red}
h2 {text-align: center; font-style: italic; font-size: 20px}
body {background-color: antiquewhite}
ol {list-style-type: upper-roman;}
ol ol {list-style-type: upper-alpha;}
ol ol ol {list-style-type: decimal;}
.cars {font-family: palatino linotype; width="100%"; cellspacing="1";}
#orange {color: orange}
#green {color: green}
#red {color: red}
#left {float: left;font-family: palatino linotype; width: 495px; height: 100%;}
#right {float: right; width: 495px; height: 100%;}
#outer {width: 1000px; height: 600px;}

New Topic/Question
Reply




MultiQuote






|