Qued Posted June 29, 2005 Report Share Posted June 29, 2005 Hei, vai ar CSS palīdzību iespējams tekstu izvietot nevis tradicionālā veidā (horizontāli), bet vertikāli? Tb, ka jālasa nevis no kreisās uz labo, bet no apakšas uz augšu (sašķiebjot galvu pa kreisi)? Link to comment Share on other sites More sharing options...
Roze Posted June 29, 2005 Report Share Posted June 29, 2005 <div style="writing-mode: tb-rl">Vertikāls saturs</div> Ja gribās uz otru pusi tad: <div style="writing-mode: tb-rl; filter: flipv fliph;">Vertikāls saturs</div> Link to comment Share on other sites More sharing options...
v3rb0 Posted June 29, 2005 Report Share Posted June 29, 2005 writing-mode:tb-rl izskatās ka tikai IE saprot. Link to comment Share on other sites More sharing options...
Kavacky Posted June 29, 2005 Report Share Posted June 29, 2005 Hehē, es šito pamēģināju, atveru ar FF - nekā. Izrādās IE ņem... Link to comment Share on other sites More sharing options...
Roze Posted June 29, 2005 Report Share Posted June 29, 2005 writing-mode:tb-rl izskatās ka tikai IE saprot. 18859[/snapback] Tā ir.. pēc vispārējiem standartiem šāda fīča ir solīta tikai ieksh CSS3 un hvz kad to vēl ieviesīs.. Link to comment Share on other sites More sharing options...
Kavacky Posted June 29, 2005 Report Share Posted June 29, 2005 Tātad uz FF to dabūt nav iespējams, ja? Link to comment Share on other sites More sharing options...
Qued Posted June 29, 2005 Author Report Share Posted June 29, 2005 Ā, paldies! Meklēju googlē un atradu tikai "tb-rl" (kas man neder) un nsopriedu, ka citādi nevar. Kavacky - jā, tā ir IE specifiska fīča. CSS2 manuālī tādas lietas nemaz nav. Link to comment Share on other sites More sharing options...
bubu Posted June 29, 2005 Report Share Posted June 29, 2005 Nu var ar kautkādiem hakiem izlīdzēties :) <html><head> <script type="text/javascript"> window.onload = function() { var el = document.getElementsByTagName('span'); for(var i=0; i<el.length; i++) { var x = el[i]; if (x.className.indexOf("vertical") != -1) { var tmp = x.firstChild.nodeValue; var txt = []; for(var k=0; k<tmp.length; k++) txt.push(tmp.charAt(k)+"<br/>"); x.innerHTML = txt.join(""); } } } </script> </head><body> <p> <span class="vertical">some text</span> </p> </body></html> Link to comment Share on other sites More sharing options...
Roze Posted June 29, 2005 Report Share Posted June 29, 2005 Nu var ar kautkādiem hakiem izlīdzēties :) Nu bubu priekš tad šāda izvirtība tad jau var arī tad vienkārši tekstā salikt <br> :) Bet tas jau vairs nav tas jo burtu savērsums nav pareizs (vajadzīgais). Taču iespējams var kalpot kā alternatība priekš FF u..c. figņām.. Link to comment Share on other sites More sharing options...
Kavacky Posted June 29, 2005 Report Share Posted June 29, 2005 Tātad nevar. JavaScripts neder, tas var arī nebūt. Nu, un <br> jau tāds lēts triks sanāk :D. Link to comment Share on other sites More sharing options...
Qued Posted June 30, 2005 Author Report Share Posted June 30, 2005 Nu jā, es php pusē ar br sataisīju. Bet nav tik smuki un lasāmi. Link to comment Share on other sites More sharing options...
Venom Posted June 30, 2005 Report Share Posted June 30, 2005 imagetext() un imagerotate() Link to comment Share on other sites More sharing options...
Qued Posted June 30, 2005 Author Report Share Posted June 30, 2005 (edited) Muahahaha :) Tas CSS variants uz IE6 rāda ok, bet uz IE5 teksts ir vienkārši kājām gaisā :) Venom Mok labāk imagetextup()? Edited June 30, 2005 by Qued Link to comment Share on other sites More sharing options...
Venom Posted June 30, 2005 Report Share Posted June 30, 2005 imagestringup() laikam dara to pašu kā ar <br /> cik saprotu, domāts tieši uzrakstīt textu horizontāli un nogāzt pa kreisi uz 90 celsijiem Link to comment Share on other sites More sharing options...
Qued Posted June 30, 2005 Author Report Share Posted June 30, 2005 Venom imagestringup() laikam dara to pašu kā ar <br /> nu, nu :) Link to comment Share on other sites More sharing options...
Recommended Posts