sorehead Posted March 12, 2004 Report Share Posted March 12, 2004 sveiki, taads neliels jautaajums CSS ekspertiem. Nepieciesams izveidot lapu, kuras konteinera DIV buutu 100% gan plats, gan augsts. HTML ir saliidzinosi vienkarss: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="lv"> <head> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="#container"> </div> </body> </html> Kaadaa veidaa man aprakstiit DIV konteinera informaaciju CSS liidzekliem, lai tas butu 100% izpleeties pa lapu? Meeginaaju kaut kaa sitaa, bet nepaliidz: /*------------------------------CSS-------------------------------------------*/ html, body { height:100%; margin:0px; padding:0px; } /*------------------------------main container--------------------------------*/ #container { width:100%; height:100%; } Any ideas? Link to comment Share on other sites More sharing options...
sorehead Posted March 12, 2004 Author Report Share Posted March 12, 2004 a little bug fix. id="container" vajag.. bez sharpa. Link to comment Share on other sites More sharing options...
sorehead Posted March 12, 2004 Author Report Share Posted March 12, 2004 karoche, done. Link to comment Share on other sites More sharing options...
Venom Posted March 12, 2004 Report Share Posted March 12, 2004 atnācu, pajautāju, atbildēju. nu tad uzraksti arī citiem, kā to to nodonoji ;) Link to comment Share on other sites More sharing options...
blackhalt Posted March 13, 2004 Report Share Posted March 13, 2004 :D nu ja pastāsti man ar! ;) Link to comment Share on other sites More sharing options...
Fatalis Posted March 13, 2004 Report Share Posted March 13, 2004 Elementāri. Tomēr ir daži āķi. html, body { margin: 0; padding: 0; height: 100%; } div { height: 100%; } Apmēram šādi. Kādi tieši ir tie āķi, skatieties paši. Vai vismaz pameklējiet netā. Link to comment Share on other sites More sharing options...
Fatalis Posted March 13, 2004 Report Share Posted March 13, 2004 Ak, un starp citu, visdrīzāk šim jokam vajag arī DOCTYPE. Link to comment Share on other sites More sharing options...
Recommended Posts