Click here to Skip to main content
15,900,536 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is my assignment I am not expecting someone to do this for me just help me figure out what I am doing wrong.
<pre lang="text">
3. Add an embedded style sheet to the head section of the document. With the style sheet create the following style for the page body:
a. Set the background color to black and the text color to white.
b. Use the file back1.gif as a background image tiled in the vertical direction only.
c. Set the margins to 0 pixels.
4. Apply the following styles to the pageContent div container:
e. Use the file back2.gif as a background image.
f. Set the margin to 0 pixels.
</pre>
This is the code I have so far. (However I did remove some of the words in the paragraph) but it is not working right:

<pre lang="HTML"> <html>
<head>
<title>International Cryptographic Institute</title>
<style type="text/css">
body {background-color: black; color: white; background-image: url(back1.gif); background-repeat: repeat-y; margin: 0px}
h1 {font-family: Courier New; font-size: 24pts; letter-spacing: 10pts; line-height: 0.7; text-align: center;
color: yellow; background-image: url(back2.gif); margin: 0px}
b {color: yellow}
p {text-indent: 2em}
</style>
</head>
<body>
<div id="pageContent" style="width 670px; margin-left: 100px; font: Arial">
<div id="logo">
<img src="logo.gif" alt="ICI" width="95" height="78" align="left" />
</div>
<h1>
THE&nbsp;<br />
SCIENCE<br />
&nbsp;&nbsp;OF<br />
CRYPTOGRAPHY
</h1>
<h2>What is Cryptography?</h2>
<p><b>Cryptography</b> is the science of secure communications,
formed from the Greek words <i>krypt&#243;s</i> meaning "hidden"
and <i>l&#243;gos</i>, meaning "word."
<img src="scytale.gif" alt="image" width="250" height="69" align="right" />
</p>
<p style="border-bottom: 2px solid yellow; padding-bottom: 10px">Cryptographers
developed more and more ingenious systems, but it was in the 20<sup>th</sup>
<p style="text-align: center">To learn more cryptography, please tour our site.<br />
<img src="locks.jpg" alt="lock links" width="510" height="110" />
<map id="locks" name="locks" usemap="#locks" style="border-width: 0">
<area shape="circle" coords="52, 52, 43"
href="history.htm" alt="History" />
<area shape="circle" coords="155, 52, 43"
href="enigma.htm" alt="Enigma" />
<area shape="circle" coords="255, 52, 43"
href="algo.htm" alt="Algorithms" />
<area shape="circle" coords="355, 52, 43"
href="single.htm" alt="Single Key" />
<area shape="circle" coords="455, 52, 43"
href="public.htm" alt="Public Key" />
</map>
</p>
</div>
</body>
</html>

</pre>
Thanks
Posted
Updated 31-Jul-11 19:10pm
v6
Comments
Kcbroncofan 31-Jul-11 19:43pm    
Thank you I only gave all the steps so that you could understand what I am trying to get done. I am going through and putting all the code that I can and then I will repost.
Thanks
Kcbroncofan 1-Aug-11 0:51am    
I have finished all the code but the image on the top is not over far enough. The "ICI" logo should be in the far left corner with no letters there.

You have 21 points in your original question but almost no code, apart from the standard portion of an HTML page. You then say "it is not working right". That is probably because you have not added any of the code necessary to resolve the foregoing 21 points. Try some research into HTML (here[^] is a good place to start), and come back here when you can demonstrate that you have at least made some effort.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900