Wuu Posted January 13, 2008 Report Share Posted January 13, 2008 .admin-panel { width:90%; padding:20px; align:center; <---- position:center; <--- background:#9c7a56; border: solid #0000FF; border-color: ddaf7b; border-style:groove; } Kā lai novieto to div pa centru? <center> </center> tikai strādā ,css vai tad nevar? Link to comment Share on other sites More sharing options...
Kavacky Posted January 13, 2008 Report Share Posted January 13, 2008 margin: 0 auto; Link to comment Share on other sites More sharing options...
Wuu Posted January 13, 2008 Author Report Share Posted January 13, 2008 Strādā ,bet kāds sakars ar margin centram x3 :) Link to comment Share on other sites More sharing options...
Kavacky Posted January 13, 2008 Report Share Posted January 13, 2008 Automātiski aprēķina attālumus no malām ( vienādus ) -> iegūst iecentrētu. Link to comment Share on other sites More sharing options...
bubu Posted January 13, 2008 Report Share Posted January 13, 2008 margin atribūtam var norādīt 4 vērtības: "margin: top right bottom left". (tāpat kā border, piemēram). Ja tiek dotas tikai divas vērtības, tad pirmā attiecas uz top un bottom. Bet otrā uz left un right. Šajā gadījumā tiek norādīts, ka top=bottom=0 un right=left=auto, t.i. attālums labajā un kreisajā pusē tiks aprēķināts automātiski. Lasam manuāli drusku biežāk, ok? http://www.w3.org/TR/CSS21/box.html#margin-properties If there is only one value, it applies to all sides. If there are two values, the top and bottom margins are set to the first value and the right and left margins are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values, they apply to the top, right, bottom, and left, respectively. Un par to, ko tur nozīmē tā "auto" vērtība: http://www.w3.org/TR/CSS21/visudet.html#Co...ths_and_margins Link to comment Share on other sites More sharing options...
marcis Posted January 13, 2008 Report Share Posted January 13, 2008 Uz IE gan man parasti "margin: auto;" nestradā, tādēļ parent elementam lieku "text-align: center;", kas savukārt nestrādā uz citiem brouzeriem. Link to comment Share on other sites More sharing options...
mefisto Posted January 13, 2008 Report Share Posted January 13, 2008 (edited) http://innonesen.se/test/l-1/ Un ko jūs to text-align bāžiet ?!? Kāds tam vispār sakars ar layout'u ?! Edited January 13, 2008 by mefisto Link to comment Share on other sites More sharing options...
andrisp Posted January 13, 2008 Report Share Posted January 13, 2008 marcis, ja developē quirks režīmā, tad margin: auto; nestrādās, tāpat kā daudz kas cits. Link to comment Share on other sites More sharing options...
ray Posted January 15, 2008 Report Share Posted January 15, 2008 kas ir "quirks" režīms? Link to comment Share on other sites More sharing options...
andrisp Posted January 15, 2008 Report Share Posted January 15, 2008 http://en.wikipedia.org/wiki/Quirks_mode Link to comment Share on other sites More sharing options...
nemec Posted January 15, 2008 Report Share Posted January 15, 2008 http://innonesen.se/test/l-1/ Un ko jūs to text-align bāžiet ?!? Kāds tam vispār sakars ar layout'u ?! tāpēc ka uz IE5.5 tavs bloks neiecentrejās, bet ar text-align gan viss strādā Link to comment Share on other sites More sharing options...
mefisto Posted January 15, 2008 Report Share Posted January 15, 2008 Tu ņirgājies, vai vienkārši esi stulbs ? IE5.5 ir mazak kā 0.2% market-share. TB tikai crawleri un boti identificē sevi kā tādu. Un pārejie 0.001% (abi) lietotāji dzīvo Vladivastokā. Link to comment Share on other sites More sharing options...
nemec Posted January 15, 2008 Report Share Posted January 15, 2008 stulbs. kur tu dabuuji taadu statistiku? tomeer prieksh katra simtaa nemaz nav tik gruuti ierakstiit divas rindinjas. man analyticaa raada vairaak par vienu procentu (ie5.5). operu man raada 3%, nemot veeraa, ka to izmanto 9 versijaas (proporcionaali), tad uz versijas sanaak ap 0.3% - ignorejeejam katru versiju, un paarluks atkriit vispaar. liidziiga situaacija ar safari un mozillu. beigaas paliekam pie shaadiem paarlukiem - ie6, ie7, firefox (peedeejaa versija 2.***). Link to comment Share on other sites More sharing options...
mefisto Posted January 16, 2008 Report Share Posted January 16, 2008 http://marketshare.hitslink.com/report.aspx?qprid=2 Link to comment Share on other sites More sharing options...
Recommended Posts