Connecting Tech Pros Worldwide Forums | Help | Site Map

background text dissapearing help please

Newbie
 
Join Date: Jan 2007
Posts: 2
#1: Jan 30 '07
I will include my code below.

Is there anyone who can help me sort out this problem please?

when i move from my index to the next roll over button links i am unable to keep the background as black and the text as white. the text is dissapearing.

can anyone explain where I am going wrong with the coding please?

thanks


Expand|Select|Wrap|Line Numbers
  1. <!doctytpe html public "-//w3c//dtd html 4.01 transitional//en" "deleted as not needed"
  2. <html>
  3.  
  4. <head>
  5.  
  6. <meta name="description content ="goldandsilverbooks.com is an independent retailer published in the UK and US we specialise in  books about Jewellery to the public wholesaler and trade industry"
  7. <meta name="keywords content="about us,company history,profile,information,jewellery,jewelry,gold,silver,US,UK,speciality,books">
  8.  
  9. <title>goldandsilverbooks.com - Contact Us</title>
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. <style type="text/css">
  17. body{
  18.     font-family:"Comic Sans MS";
  19.     font-size: 12pt;
  20.     color: #000000;
  21.     background-color: #FFFFFF;
  22. }
  23.  
  24. h1{
  25.     font-family:"Arial";
  26.     font-size: 16pt;
  27.     color: #000000;
  28.     text-align: center;
  29. }
  30.  
  31. h2{
  32.     font-family:"Arial";
  33.     font-size: 14pt;
  34.     color: #000000;
  35. }
  36.  
  37. hr{
  38.     color: #696969;
  39.     width: 90%;
  40. }
  41. a:link {
  42.     color: #808080;
  43. }
  44. a:visited {
  45.     color: #DAA520;
  46. }
  47. .logotext(
  48.     font-size, 36px;
  49.     font-weight:bold;
  50.     color:#000000;
  51.     font-family:"Arial"}
  52. }
  53. .copyright{
  54. font-size; 11px;
  55. font-weight; bold;
  56. color:#C0C0C0
  57. }
  58.  
  59. </style>
  60. </head>
  61.  
  62. <body background="images/tile1.bmp"> 
  63. <table cellpadding= "0"width="650"border="0"
  64. align="center">
  65. <tr bgcolor="#FFFFFF">
  66. <td><img src="images/booklogo.gif" align="left"><span class="logotext">
  67. krisalis</span>
  68.         </td>
  69.     </tr>
  70. <tr bgcolor="#FFFFFF">
  71. <td><a href="index.html"><img src="images/btnhome.gif" border="0"></a><a href="aboutus.html"><img src="images/btnaboutus.gif" border="0"></a><a href="products.html"><img src="images/btnproducts.gif" border="0"></a><a href="policies.html"><img src="images/btnpolicies.gif" border="0"></a><a href="contactus.html"><img src="images/btncontactus.gif" border="0"></a>
  72. </td>
  73. </tr> 
  74.     </table>
  75.  
  76.  
  77.  
  78. <table cellpadding="20" width="750"
  79. bgcolor="black" border="0" align="center">
  80. <tr>
  81. <td>
  82.  
  83. <bspace="40">
  84. <vspace="40">
  85. <h1>About Us</h1>
  86.  
  87. <p>XXX is the internet presence of our bookstore in XXX, England. We are an independent retailer of books published in the UK and in the USA and have been serving readers in our local community for over XXX years.</p>
  88.  
  89. <h2>Why Shop with Us?</h2>
  90.  
  91. <ul>
  92. <li>We can provide you with any title from 2.2 million books titles in print.</li>
  93. <li>We offer some of the most cost effective global shipping rates available worldwide.</li>
  94. <li>Dispatch is usually within 3 days of placing your order.</li>
  95. <li>We offer you personalised customer service by phone or e-mail.</li>
  96. </ul>
  97.  
  98. <p>It is our aim to make shopping as easy and enjoyable as possible on our website - allowing you to order 24 hours a day - 7 days a week. </p>
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. <center>
  106. <hr><br>
  107. <p><span class="copyright"> copyright &copy;goldandsilverbooks.com 2006. All rights reserved.</span></p> 
  108. </center>
  109.  
  110.  
  111. </td>
  112. </tr>
  113. </table> 
  114. </body>
  115. </html>
  116.  

cheers all

Subsx

drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,580
#2: Jan 30 '07

re: background text dissapearing help please


Quote:
<!doctytpe html public "-//w3c//dtd html 4.01 transitional//en" "deleted as not needed"
I'll come back to this but read the sticky at the top of this forum. Doctypes are required.
Expert
 
Join Date: Oct 2006
Location: NC
Posts: 1,722
#3: Jan 30 '07

re: background text dissapearing help please


Expand|Select|Wrap|Line Numbers
  1. <!doctytpe html public "-//w3c//dtd html 4.01 transitional//en" "deleted as not 
As stated above, the DOCTYPE is not optional.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,580
#4: Jan 31 '07

re: background text dissapearing help please


In your css, the .logo has a parenthesis instead of a bracket and comma where there should be a semicolon. In .copyright, you have commas instead of semicolons.

If you had validated your css you would have known this but there are other errors still. Also validate your html for that list of errors.
Reply


Similar HTML / CSS bytes