Help me find a bug

<TABLE align="center" cellSpacing="0" cellPadding="0" width="1250" height="351" border="0" background="/img/1.jpg"> <TR> <td></td> <TD colspan="0" height="348"> <div align="left" style="padding-top:150px;"><font size=2 color=#DADBD7><br><b> </b></div> <tr><td width="60"></td><td width="340"> </td><td width="510"></td><td colspan="4"></td></tr></TABLE> <table cellpadding="0" cellspacing="0" border="0" align="center" width="1250" height="23" style="border:1px solid #262626;background:url('/img/2.gif');"> <tr> <td width="50%" align="left" style="font-size:10px;padding-left:10px;"><a href="$HOME_PAGE_LINK$" title="Главная"><!--<s5176>-->Главная<!--</s>--></a><?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?> | <a href="$PERSONAL_PAGE_LINK$" title="Мой профиль"><!--<s5214>-->Мой профиль<!--</s>--></a><?else?> | <a href="$REGISTER_LINK$" title="Регистрация"><!--<s3089>-->Регистрация<!--</s>--></a><?endif?><?endif?> <?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?> | <a href="$LOGOUT_LINK$" title="Выход"><!--<s5164>-->Выход<!--</s>--></a><?else?> | <a href="$LOGIN_LINK$" title="Вход"><!--<s3087>-->Вход<!--</s>--></a><?endif?><?endif?></td> <td width="50%" align="right" style="font-size:10px;padding-right:10px;"><?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?><!--<s5200>-->Вы вошли как<!--</s>--> <a href="$PERSONAL_PAGE_LINK$" title="Мой профиль"><b>$USERNAME$</b></a> | <!--<s3167>-->Группа<!--</s>--> "<u>$USER_GROUP$</u>"<?else?><!--<s5212>-->Приветствую Вас<!--</s>--> <b>$USERNAME$</b><?endif?><?endif?> <?if($RSS_LINK$)?>| <a href="$RSS_LINK$" title="RSS">RSS</a><?endif?></td> </tr> </table> 
  • @selenia What do you think works here like that? - Nicolas Chabanovsky

1 answer 1

Lekgo.

  1. There is no align attribute in this case. In the table, for example. But he has a picture
  2. same: height, background. In addition, the numbers in them must contain the dimension, since they are different from 0. For example: height="357px" . In general, this is all you need to cram into CSS
  3. The font does not have a size attribute. In general, it is better to replace the font <span></span> , and the properties described in CSS
  4. the <u> element also needs to be replaced with text-decoration: underline

All this, based on the assumption that the markup HTML 4.01

 <table align="center" cellSpacing="0" cellPadding="0" width="1250" height="351" border="0" background="/img/1.jpg"> <TR> <td> </td> <td colspan="0" height="348"> <div align="left" style="padding-top:150px;"> <font size=2 color=#DADBD7><br><b></b> </div> </td> <tr> <td width="60"></td> <td width="340"> </td> <td width="510"></td> <td colspan="4"></td> </tr></table> <table cellpadding="0" cellspacing="0" border="0" align="center" width="1250" height="23" style="border:1px solid #262626;background:url('/img/2.gif');"> <tr> <td width="50%" align="left" style="font-size:10px;padding-left:10px;"> <a href="$HOME_PAGE_LINK$" title="Главная"> <!--<s5176>-->Главная<!--</s>--> </a><?php if($USERS_ON){ ?><?php if($USER_LOGGED_IN){ ?> | <a href="$PERSONAL_PAGE_LINK$" title="Мой профиль"> <!--<s5214>-->Мой профиль<!--</s>--> </a><?php }else{ ?> | <a href="$REGISTER_LINK$" title="Регистрация"> <!--<s3089>-->Регистрация<!--</s>--> </a><?php }?><?php }?> <?php if($USERS_ON){ ?><?php if($USER_LOGGED_IN){ ?> | <a href="$LOGOUT_LINK$" title="Выход"> <!--<s5164>-->Выход<!--</s>--> </a><?php }else{ ?> | <a href="$LOGIN_LINK$" title="Вход"> <!--<s3087>-->Вход<!--</s>--></a><?php }?><?php }?></td> <td width="50%" align="right" style="font-size:10px;padding-right:10px;"><?php if($USERS_ON){ ?><?php if($USER_LOGGED_IN){ ?> <!--<s5200>-->Вы вошли как<!--</s>--> <a href="$PERSONAL_PAGE_LINK$" title="Мой профиль"> <b>$USERNAME$</b> </a> | <!--<s3167>-->Группа<!--</s>--> "<u>$USER_GROUP$</u>"<?php }else{ ?><!--<s5212>-->Приветствую Вас<!--</s>--> <b>$USERNAME$</b><? }?><?php }?> <?php if($RSS_LINK){ ?>| <a href="$RSS_LINK$" title="RSS">RSS</a><?php }?></td> </tr> </table> 
  • Excuse my incompetence. But could you write the correct code. , ie already corrected. I'm in HTML - not just a teapot, but .... - selenia
  • There is a little problem. You have errors that prevent the page from appearing not in HTML, but in PHP. I'll send it to you right now. - knes
  • Catch Just keep in mind that this is a PATTERN, actually ... - knes