inaltime container CSS
Last Updated: Mar 26 2014 00:12, Started by
chaosed
, Mar 24 2014 12:33
·
0
#1
Posted 24 March 2014 - 12:33
As vrea ca inaltimea containerului sa umple tot spatiul dedicat de browser, chiar daca continutul nu umple tot spatiul, de exemplu, daca continutul este <br><br><br><br><br><br><br><br><br><br><br><br><br><br>.
Am cautat pe net, si am gasit body { height:100% } #container { display:table; min-height:100%; } Dar nu se intampla nimic, containerul se termina tot la jumatatea paginii, in loc sa umple pagina. Ce as putea face? |
#2
Posted 24 March 2014 - 12:54
Intre 600 si 800px ar trebui sa fie suficient pentru ceea ce doresti.
Din cate cunosc 100% pentru height la body este "incorect" sau nefunctional, nefolositor in marea majoritate a cazurilor. Edited by poadol, 24 March 2014 - 12:56. |
#3
Posted 24 March 2014 - 13:27
Dar mai nou se pare ca "merge"; asa ca ai lipsa in codul css -> ; (punct si virgula) dupa 100% (height la body).
Edited by poadol, 24 March 2014 - 13:31. |
#4
Posted 25 March 2014 - 16:43
Nu merge, nu merge de nici o culoare, am pus " ; " dar tot nimic . O fi de la faptul ca folosesc IE 9?
|
#5
Posted 25 March 2014 - 20:40
Probabil, pentru ca in Firefox "merge", sau asa:
<! DOCTYPE html > <html> <head> <title>height</title> <link rel="stylesheet" type="text/css" href="style9.css"> </head> <body> <div id="container"> <table id="ran"> <tr> <td>Gina</td> <td>Sorana</td> <td>30</td> </tr> <tr> <td>Eva</td> <td>Purtan</td> <td>24</td> </tr> </table> </div> </body> </html> body { width: 100%; height:100%; background-color: #6495ed; } #container { border: 1px solid black; width: 100%; height:100%; } #ran { width: 300px; height: 40px; } tr, td { border: 1px solid yellow; } Edited by poadol, 25 March 2014 - 20:51. |
#7
Posted 26 March 2014 - 00:12
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users