(X)HTML, JavaScript, DHTML, XML, CSS Client scripting tehnologije, Dynamic HTML, Cascading Stylesheets, XML i standardi |
|
Alati teme | Način prikaza |
03. 03. 2012. | #1 |
expert
Expert
Datum učlanjenja: 15.03.2011
Poruke: 518
Hvala: 16
20 "Hvala" u 17 poruka
|
CSS gradient problem
Imam sledeci kod:
Kôd:
#sidebarContainer { width:330px; height:600px; float:right; background-image:linear-gradient(left, #fff, #ebebeb); background-image:-moz-linear-gradient(left, #fff, #efefef); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#efefef)); filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr=#ffffff, endColorStr=#efefef); } Takodje je li mozda pametnije da koristim sliku .png ili ovaj css kod???
__________________
I'm not sexy and I know IT! |
03. 03. 2012. | #2 |
banned
Professional
Datum učlanjenja: 04.06.2005
Poruke: 371
Hvala: 0
738 "Hvala" u 83 poruka
|
http://www.colorzilla.com/gradient-editor/
http://www.css3.me http://css3generator.com/ Kôd:
background: #ffffff; /* Old browsers */ background: -moz-linear-gradient(left, #ffffff 0%, #efefef 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(0%,#ffffff), color-stop(100%,#efefef)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, #ffffff 0%,#efefef 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, #ffffff 0%,#efefef 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, #ffffff 0%,#efefef 100%); /* IE10+ */ background: linear-gradient(left, #ffffff 0%,#efefef 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef',GradientType=1 ); /* IE6-9 */
__________________
Don't look at me; I'm lost too. “If you can't dazzle them with brilliance, baffle them with bul*s**t.” Poslednja izmena od Br@nkoR : 03. 03. 2012. u 20:11. |
03. 03. 2012. | #3 |
expert
Grand Master
Datum učlanjenja: 11.04.2010
Poruke: 998
Hvala: 141
959 "Hvala" u 153 poruka
|
Možeš umjesto "left" staviti 180deg ili 0deg, ill xdeg pa nabodi koliko je *...
|
|
|