By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,658 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

critical problem with html,help needed

P: 2
i designed a header of a webpage,this header had a css file.
problem after i designed the page i can see the content of it if i open it directly but i canot see the content of the page if i open it through wamp serever or if i upload it to my domain...i check it many times but canot find the solution for this.

the header code is:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.     <title></title>
  6.  
  7.     <link rel="stylesheet" type="text/css" href="file:///C|/wamp/www/site/css/css/header.css" />
  8.     </head>
  9. <body>
  10.     <div class="container">
  11.         <div class="logo">
  12.             <div class="align">
  13.                 <img alt="" src="file:///C|/wamp/www/site/images/pic/logo_mail.png" height="55" width="200">
  14.             </div>
  15.         </div>
  16.     </div>
  17.  
  18. </body>
  19. </html>
  20.  




and the css file code is:
Expand|Select|Wrap|Line Numbers
  1. @charset "utf-8";
  2. /* CSS Document */
  3.  
  4.  body{
  5.     margin: 0;
  6.     padding: 0;
  7.     border: 0;
  8.     outline: 0;
  9. }
  10. .container{
  11.     background: url(file:///C|/wamp/www/site/images/pic/header.jpg) repeat-x top left;
  12.     top: 0;
  13.     height: 86px;
  14. }
  15. .logo{
  16.     margin: auto;
  17.     padding-top: 40px;
  18.     width: 900px;
  19. }
  20. .align{
  21.     float: left;
  22. }
  23. html.rtl .align { 
  24.     float: right; 
  25. }
  26. img{
  27.     border:none;
  28. }
  29.  
  30.  

i have also attached the content of the page.
please help me to solve it.
thank you
Attached Files
File Type: zip site.zip (14.2 KB, 41 views)
Feb 25 '12 #1

✓ answered by ali2mdj

man you are 0 in html

this is header code.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.     <html xmlns="http://www.w3.org/1999/xhtml">
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.         <title></title>
  6.  
  7.         <link rel="stylesheet" type="text/css" href="../css/css/header.css" />
  8.         </head>
  9.     <body>
  10.         <div class="container">
  11.             <div class="logo">
  12.                 <div class="align">
  13.                     <img alt="" src="../images/pic/logo_mail.png" height="55" width="200">
  14.                 </div>
  15.             </div>
  16.         </div>
  17.  
  18.     </body>
  19.     </html>

and this is css.
Expand|Select|Wrap|Line Numbers
  1. @charset "utf-8";
  2. /* CSS Document */
  3.  
  4.  body{
  5.     margin: 0;
  6.     padding: 0;
  7.     border: 0;
  8.     outline: 0;
  9. }
  10. .container{
  11.     background: url(../../images/pic/header.jpg) repeat-x top left;
  12.     top: 0;
  13.     height: 86px;
  14. }
  15. .logo{
  16.     margin: auto;
  17.     padding-top: 40px;
  18.     width: 900px;
  19. }
  20. .align{
  21.     float: left;
  22. }
  23. html.rtl .align { 
  24.     float: right; 
  25. }
  26. img{
  27.     border:none;
  28. }
  29.  

Share this Question
Share on Google+
2 Replies


P: 1
man you are 0 in html

this is header code.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.     <html xmlns="http://www.w3.org/1999/xhtml">
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.         <title></title>
  6.  
  7.         <link rel="stylesheet" type="text/css" href="../css/css/header.css" />
  8.         </head>
  9.     <body>
  10.         <div class="container">
  11.             <div class="logo">
  12.                 <div class="align">
  13.                     <img alt="" src="../images/pic/logo_mail.png" height="55" width="200">
  14.                 </div>
  15.             </div>
  16.         </div>
  17.  
  18.     </body>
  19.     </html>

and this is css.
Expand|Select|Wrap|Line Numbers
  1. @charset "utf-8";
  2. /* CSS Document */
  3.  
  4.  body{
  5.     margin: 0;
  6.     padding: 0;
  7.     border: 0;
  8.     outline: 0;
  9. }
  10. .container{
  11.     background: url(../../images/pic/header.jpg) repeat-x top left;
  12.     top: 0;
  13.     height: 86px;
  14. }
  15. .logo{
  16.     margin: auto;
  17.     padding-top: 40px;
  18.     width: 900px;
  19. }
  20. .align{
  21.     float: left;
  22. }
  23. html.rtl .align { 
  24.     float: right; 
  25. }
  26. img{
  27.     border:none;
  28. }
  29.  
Feb 25 '12 #2

P: 2
man when you said am 0 in html you Praised me,,,,i think for this issue i can consider my level in html as <-100>.
The bug is fixed...Thank you for your help
Feb 26 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.