Help me find a mistake, I was sitting and suddenly I updated the site, I look, and there everything is as standard, here are my codes:

header.php

<link rel="shortcut icon" href="/images/widget_logo.gif"> <table align='center' width='26%'> <tr> <td colspan='0'><img src="/images/В online.png" type="images" class="SuperImages" /> </td> </tr> <tr> <tb> </td> </tr> <table> <body> <td><span style='position: relative;bottom: 3px;margin-left:2200px'> <div id="container"> <ul id="nav"> <li id="selected"><a href="/">Главная</a></li> <li><a href="/feed.php">Новости</a></li> <li><a href="../bkock/офф сайт">Офф. сайт О.А.Андреевича</a></li> <li><a href="o_site.php">О сайте</a></li> <li><a href="login.php">Выход</a></li> </ul> </div> </span></td> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script> <script type="text/javascript" src="js/jquery.spasticNav.js"></script> </body> 

index.php

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="shortcut icon" href="/images/widget_logo.gif"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title>online</title> </head> <body> <tr> <?php include("/style.css"); ?> <tr> <?php include ("blocks/header.php"); ?> <tr> </tr> </body> </html> <body> </body> 

style.css <style> * {font-family: verdana; font-size: 12px}

 a { text-decoration: none; /* убираем у ссылок подчеркнутость, заданную по-умолчанию */ color:#4169e1; ul{border-radius:20px;} background-image: url(images/fon.png); #container { width: 1200px; margin: -4px auto; } ul, li { margin: 0; padding: 0; } #blob { background: #0b2b61; border-right: 1px solid #0059ec; border-left: 1px solid #0059ec; position: absolute; z-index: 1; top: 0; background: -moz-linear-gradient(top, #0b2b61, #1153c0); background: -webkit-gradient(linear, left top, left bottom, from(#0b2b61), to(#1153c0)); border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; box-shadow: 2px 3px 10px #011331; -moz-box-shadow: 2px 3px 10px #011331; -webkit-box-shadow: 2px 3px 10px #011331; } #nav { position: relative; background: #292929; float: left; } #nav li { float: left; list-style: none; border-right: 1px solid #4a4a4a; border-left: px solid black; } #nav li a { color: #e3e3e3; z-index: 2; position: relative; cursor: pointer; float: left; font-size: 15px; font-family: helvetica, arial, sans-serif; text-decoration: none; padding: 10px 49px; width: 100%; } </style> 
  • Sorry, I don’t wait for an answer, because I already found it myself, this is not necessary a {text-decoration: none; / * remove the default underscore from the links * / color: # 4169e1; - Sasha Osipov


3 answers 3

 <body> <tr> <?php include("/style.css"); ?> <tr> <?php include ("blocks/header.php"); ?> 

Maybe, of course, I am confusing something, but do not the styles need to be connected in the head?

  • oh schyas necessarily connect in the head - Sasha Osipov

1. Pass through a div. Tables are needed to display tabular data.

2. The jquery connection should go in the head section

3. Use Firebug

4.ul {border-radius: 20px;}

 background-image: url(images/fon.png); 

    Here the whole approach is one mistake.

    <body> - there can be only one in the document. Layout tables died 10 years ago. Even if the tables typeset, then you must at least follow the rules of writing.

    Example:

     <tr> <tb> </td> </tr> <table> <body> 

    You need to redo a little more than completely. Spend 5-6 hours of your precious time studying tags and "new" trends and you will have a wonderful website :)

    • Yes, I know the tags are not in the correct order set - Sasha Osipov