Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
I-auziti voi! - nu vor romani...

Colon iritabil

Perioada de gratie inexistenta

Cel mai ieftin TV LED mic
 Reverse proxy si htaccess pe Raps...

Statie de epurare sau fosa septic...

"enerlux p" afisaj interm...

Adaptor usb3.1gigabit vs Adaptor ...
 La multi ani @Atreides!

La multi ani @KENSINGTON!

La multi ani @burebista!

La multi ani de Florii!
 Stihl fs 70 c-e

Challengers (2024)

Care mai sunt mediile de admitere...

Laptop cu HDD atasare memorie MMC...
 

inaltime container CSS

- - - - -
  • Please log in to reply
6 replies to this topic

#1
chaosed

chaosed

    New Member

  • Grup: Members
  • Posts: 12
  • Înscris: 08.03.2014
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
poadol

poadol

    Guru Member

  • Grup: Senior Members
  • Posts: 14,104
  • Înscris: 13.12.2010
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
poadol

poadol

    Guru Member

  • Grup: Senior Members
  • Posts: 14,104
  • Înscris: 13.12.2010
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
chaosed

chaosed

    New Member

  • Grup: Members
  • Posts: 12
  • Înscris: 08.03.2014
Nu merge, nu merge de nici o culoare, am pus " ; " dar tot nimic :(. O fi de la faptul ca folosesc IE 9?

#5
poadol

poadol

    Guru Member

  • Grup: Senior Members
  • Posts: 14,104
  • Înscris: 13.12.2010
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.


#6
DominatoR

DominatoR

    Member

  • Grup: Members
  • Posts: 374
  • Înscris: 24.09.2006
html {
  height:100%;
}



#7
poadol

poadol

    Guru Member

  • Grup: Senior Members
  • Posts: 14,104
  • Înscris: 13.12.2010
Sau completarile aferente cazului:
http://stackoverflow...-browser-height

Anunturi

Bun venit pe Forumul Softpedia!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate