d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Need Help With Basic Html Program
Add Reply New Topic New Poll
Member
Posts: 10,715
Joined: Sep 1 2007
Gold: 11,037.49
Oct 5 2015 10:09pm
Let me know. Will pay :D

<head>
<meta charset="utf-8" />
<title>A3 Template</title>

<style type="text/css">

div {width:50;border:solid ; border-width:10px;}

#top {background-color:#ccffcc;}

#c1 {background-color:#ccffcc;color:#228b22;font:8pt;font-family:"helvetica;}

#s2 {background-color:#ccffcc;color:#228b22;font:8pt;font-family:"helvetica;}

#c3 {background-color:"light slate gray";color:"dark blue",font:8pt;font-family:bold,serif;}

/* styles for all images */






/* table cell formats */


/* table styles width,margin-left,margin-right, so table is centered in div */





/* styles for third country div */

</style>





</head>
<body>
<div id="top" >

<table>
<caption>Olympic Team Information</caption>
<tr>
<td>

<!-- first cell, has links to three paragraphs -->

<h2><a href="http://canada.ca/en/index.html?utm_medium=decommissioned+site&utm_campaign=Canada+Site+Redirect+Tracking&utm_source=canada.gc.ca/home.html&utm_content=Launch+Tracking">Canada</a><br>
<a href="http://www.usa.gov/">United States</a><br>
<a href="http://www.australia.com/">Australia</a>
</h2>


</td>

<!-- second cell has form -->
<td>
<form>
<input type="radio" name="country" value="Canada">Canada<br>
<input type="radio" name="country" value="United States">United States<br>
<input type="radio" name="country" value="Australia">Australia<br>
</form>
</td>
</tr>
</table>
</div>
<br /><br />
<div id="c1">
<h2>Canada</h2>
<p>
<img src="https://php.radford.edu/~jcdavis/D2L/classes/it225/s14/asn/a3/canada.jpg" alt="canada">
They won gold in the 2014 winter mens hockey.<br>
They have won 3 out of 4 of the past winter oymlpic mens hockey golds.

</p>

<p>
<!-- link to top -->
</p>
</div>
<br /><br />

<div id="s2">
<h2>United States of America</h2>
<p>
<img src="https://php.radford.edu/~jcdavis/D2L/classes/it225/s14/asn/a3/usflag.jpg" alt="us">
The United States has won more medals at the Summer Games then any other country.<br>
The United States established the Olympics Hall of Fame.

</p>

<p>
<!-- link to top -->
</p>
</div>

<br /><br />
<div id="c3">
<h2>Australia</h2>
<p>
<img src="https://php.radford.edu/~jcdavis/D2L/classes/it225/s14/asn/a3/australia.jpg" alt="australia">
Australia has hosted the Summer Olypics twice.<br>
Most of Australia's gold medals have been won in the swimming event.
</p>
<p>
<!-- link to top -->
</p>
</div>
</body>
</html>


The styles are only showing for the id's Top and C1. C2 and C3 aren't showing.

This post was edited by Zom8 on Oct 5 2015 10:13pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Oct 5 2015 10:16pm
looks like you're missing end quotes on your font family.

http://www.css-validator.org/#validate_by_input

This post was edited by carteblanche on Oct 5 2015 10:20pm
Member
Posts: 10,715
Joined: Sep 1 2007
Gold: 11,037.49
Oct 5 2015 10:20pm
Quote (carteblanche @ Oct 5 2015 11:16pm)
looks like you're missing end quotes on your font family.


Dude I could smack myself. This is code from when I took this class 3 years ago as a freshman and I'm trying to clean it up and fix it. It's a fucking mess. I looked forever and couldn't find why it wouldn't work. Thanks
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll