ziedinjsh Posted October 24, 2009 Report Share Posted October 24, 2009 (edited) vēlos uztaisīt div kas augstumā ir pa visu ekrānu: body{ margin-top:0px; margin-bottom:0px; height:100%; } #warp{ border:1px solid #ff0000; width:800px; margin-right:auto; margin-left:auto; height:100%; } tagad viņš atrodas pa vidu, bet nav augstumā 100% pieliekot pie #warp klāt position:absolute; tad viņš ir 100% bet atrodas labajā malā.. kā to var novērst un lai strādātu uz visiemn pārlūkiem? :? Edited October 24, 2009 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
waplet Posted October 24, 2009 Report Share Posted October 24, 2009 margin:0 auto; min-height:100%; position:relative; width:728px; //man ir šādi Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 24, 2009 Author Report Share Posted October 24, 2009 uzliku arī tā, bet nu tagad viņš ir pa vidu, bet nav 100%. Viņš ir tik liels cik ir div saturs :? Quote Link to comment Share on other sites More sharing options...
waplet Posted October 24, 2009 Report Share Posted October 24, 2009 nē man ir pa visu ekrānu, labāk ieliec visu savu html kodu Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 24, 2009 Author Report Share Posted October 24, 2009 css: html,body{ margin-top:0px; margin-bottom:0px; min-height: 100%; } /* skin */ #warp{ border:1px solid #ff0000; margin:0 auto; min-height:100%; position:relative; width:800px; } #left{ background-image:url(left-bg.gif); background-repeat:repeat-y; border-left:5px solid #000000; border-top:0px solid #000000; border-right:5px solid #000000; border-bottom:0px solid #000000; min-height:100%; width:250px; } #fix{ clear:both; } /* menu */ .menu{ } .menu:hover{ background-color:#000000; color:#ffffff; } .current{ font-weight:bold; } html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <hrml> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>A/S Grobiņa</title> <link href="misc/style.css" rel="stylesheet" type="text/css" /> </head> <body> <?php $url = "http://www.producentiem.lv/adas/"; $page = (isset($_GET['page'])) ? $_GET['page'] : ''; echo "<div id='warp'>"; echo "<div id='left'>"; echo "<a href='".$url."' ". (($page == "") ? "class='current'" : "") ."\">Sākums</a>"; echo "<a href='".$url."?page=about' ".(($page == "about") ? "class='current'" : "")."\">Par mums</a>"; echo "<a href='".$url."?page=biography' ".(($page == "biography") ? "class='current'" : "")."\">Biogrāfija</a>"; echo "<a href='".$url."?page=contacts' ".(($page == "contacts") ? "class='current'" : "")."\">Kontaktinformācija</a>"; echo "</div>"; echo "</div>"; ?> Quote Link to comment Share on other sites More sharing options...
waplet Posted October 24, 2009 Report Share Posted October 24, 2009 Un cik tev maksā šo kodējot? un kas ir ja tu noņem nost echo "<div id='left'>"; un šo echo "</div>"; ? iespējams, ka left'am arī vajag pozīciju norādīt Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 24, 2009 Author Report Share Posted October 24, 2009 tas ir savām vajadzībām :) noņemot viņus nost tad ir tas pats kas bija div`am height ir tik daudz cik div saturs :? Quote Link to comment Share on other sites More sharing options...
Evi Posted October 24, 2009 Report Share Posted October 24, 2009 http://ryanfait.com/sticky-footer/ sheku piemeers,lai dabuutu div 100% augstumaa, ceru ka pats izdomaasi kaa bez footera uztaisiit vai ja tev vajag width:100%.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.