Hello everyone, there is a code:

<table border = 1> <tr> <th style = "width: 50%"><img src = "тут типо картинка" width = 100 height = 100/></th> <th> YANDEX.RU - это Яндекс</th> </tr> </table> 

I read that it is necessary to do the headers through the table, but the trouble is that when I apply the style where I indicate that the cell length will be 50% of the page length, for some reason it applies this event to the second <th> . Yes, I have something else, why everywhere 100% is the length of all the pages, and 1% is the smallest number. And then the opposite is 1% - is the length of the whole page, and 100% is a very small piece?

  • five
    I wonder, am I the one who did not understand anything? - Deonis
  • "So I read that it is right to do the heders, you need to go through the table, ..." - can you link ?! As far as I know, now tables are used only for displaying tabular data. I honestly did not understand much. Do everything through <div> without tables. - zloctb
  • Block, block and block only. Do not know how to impose teach new books, new articles. DO NOT READ OLDER !!! BLOCKING !!!!!!!!!!! - markuper

1 answer 1

I do not understand, I will act on intuition. To begin with, is it really so difficult to write "cultural code". Why attribute value is not fixed between "". <table border = "1"> . Now on the topic: I see no reason to go to the table. Use <div>
Example:

 <div><img src = "тут типо картинка" style="width:100px; height:100px; float: left;" alt=""/> YANDEX.RU - это Яндекс</div> 

By the way, when you write width = '50% ', then 50% of the parent, the parent can be in your case both the table and the body.

  • why diva in the stream, a person will now have a lot of problems because of this, why write a block element 100%, because he already stretches to the width available to him - makregistr