Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Web Development & Graphic Design Problem Solving for Graphic Design, PHP, ASP, Perl, MySQL, SQL, XML, HTML issues

Reply
 
Topic Tools
  #1  
Old February 2nd, 2008, 06:53 PM
da_moma's Avatar
da_moma da_moma is offline
Registered User
 
Join Date: Feb 2004
Location: USA
Posts: 265
Can someone tell me what is wrong

With this code,

I have a friend who is doing this web page for a class and they have to code the background image to run the left side of the page.

Here is her code:

Code:
<html>
<head>
<!-- 
   New Perspectives on HTML and XHTML
   Tutorial 3
   Case Problem 3

   ICI Home Page
   Author: Anita XXXXXX	
   Date: 2/1/2008  

   Filename:         crypt.htm
   Supporting files: back1.gif, back2.gif, locks.jpg, logo.gif, scytale.gif
-->

<title>International Cryptographic Institute</title>
</head>

<body style="color: white; 
background: black; 
background-image: url(back1.gif); 
background-image: repeat-y; 
float: margin-top -20" >

<p>
<img src="logo.gif" alt="ICI" style="float: left" width="95" height="75"/>
</p>

<h1 style="text-align: center; font-family: Courier New; font-size: 1.8em; letter-spacing: 0.3em; line-height: 0.7em; color: yellow;
background-image: url(back2.gif)">
THE&nbsp;<br />
SCIENCE<br />
&nbsp;&nbsp;OF<br />
CRYPTOGRAPHY
</h1>

<h2 style="font-family: Arial, Helvetica, or sans-serif">What is Cryptography?</h2>

<p><b>Cryptography</b> is the science of secure communications, 
formed from the Greek words <i>kryptós</i> meaning "hidden" and <i>lógos</i>, meaning 
"word". The first recorded use of cryptography was by the Spartans who (as early as 400 BC) 
employed a cipher device called a "scytale" to send secret communications between military 
commanders. The scytale consisted of a tapered baton around which was wrapped a piece of parchment 
inscribed with the message. Once unwrapped the parchment appeared to contain an incomprehensible 
set of letters, however when wrapped around another baton of identical size the original text 
appears.
<img src="scytale.gif" alt="" style="float: right; margin 0 0 10 100"/>
</p>

<p>Cryptographers developed more and more ingenious systems, 
but it was in the 20<sup>th</sup>century, that the science of cryptography took off. 
The first major achievement was the the development of rotor cipher machines. An American, 
Edward Hebern recognised that by hardwiring alphabetic substitution in the connections from 
one side of an electrical rotor to those on the other side and cascading a collection of such 
rotors, alphabetic substitutions of almost any complexity could be produced. Germany engineers 
independently discovered the rotor concept and designed the precursors to the most famous 
cipher machine in history - the German Enigma machine which was used during World War 2. The 
cracking of the Enigma ciphers byBritish and Polish cryptanalysts during the Second World War 
is one of the greatest triumphs inthe history of cryptography and played an important role in 
the Allie victory.</p>

<hr />

<p style="text-align: center">To learn more cryptography, please tour the site. <br />
   <img src="locks.jpg" alt="" />
</p>

</body>
</html>
The image back1.gif is the one they want to run on the left hand of the page.
Any help would be greatly appreciated.
Reply With Quote


  #2  
Old February 2nd, 2008, 09:10 PM
rockboy's Avatar
rockboy rockboy is offline
Cyber Tech Help Moderator
 
Join Date: Aug 2002
O/S: Windows 7 64-bit
Location: California, USA
Posts: 3,087
Code:
<body style="color: white; 
background: black; 
background-image: url(back1.gif); 
background-image: repeat-y; 
float: margin-top -20" >
If you want to fix it for her it's easy enough but if you want her to fix it herself, send her here...
http://www.w3schools.com/css/css_background.asp

She has two errors. If she's going to specify each property individually instead of in a single background declaration she needs to use the correct terminology.

background: black; might be working for her but it should be background-color: black; and background-image:repeat-y; should be background-repeat:repeat-y;

To be consistent she should also specify the background-position.

She also should review the section on css fonts and fix some problem areas there.
Reply With Quote
  #3  
Old February 2nd, 2008, 10:01 PM
da_moma's Avatar
da_moma da_moma is offline
Registered User
 
Join Date: Feb 2004
Location: USA
Posts: 265
Thank You rockboy very much!
I did send her there, well actually I took her there and I also sent her home with both the link to the w3schools and here.

You confirmed what I told her was wrong with it and I appreciate it very much.
Reply With Quote
  #4  
Old February 2nd, 2008, 10:34 PM
rockboy's Avatar
rockboy rockboy is offline
Cyber Tech Help Moderator
 
Join Date: Aug 2002
O/S: Windows 7 64-bit
Location: California, USA
Posts: 3,087
You're welcome.
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Topic Topic Starter Forum Replies Last Post
You're doing it wrong (pic) joytime365 Open Discussion 1 July 22nd, 2008 07:19 AM
Tom, something is wrong here... swoop72 Malware Removal 4 May 30th, 2008 10:24 PM
Is there something wrong with my HJT? na2r4 Malware Removal 3 October 20th, 2005 12:30 AM
I don't know what's wrong joetj Windows 98 1 October 18th, 2005 05:49 PM




All times are GMT +1. The time now is 06:38 AM.