quote:Op donderdag 16 augustus 2012 15:16 schreef QM84 het volgende:
<![if ! IE]> <-- fout
<!--[if ! IE]--> <-- goed
Dan is 't ie gelijk weer gesloten toch? niet echt nuttig.. Of werkt het toch tot aan de <![endif]--> op die manier?quote:Op donderdag 16 augustus 2012 15:21 schreef KomtTijd... het volgende:
<![if ! IE]> <-- fout
<!--[if ! IE]--> <-- goed
Dat is voor als je wel IE wil includen.quote:Op donderdag 16 augustus 2012 15:25 schreef QM84 het volgende:
[..]
Dan is 't ie gelijk weer gesloten toch? niet echt nuttig.. Of werkt het toch tot aan de <![endif]--> op die manier?
1 2 3 | <!--[if IE 6]> Special instructions for IE 6 here <![endif]--> |
1 2 3 | <!--[if !IE]> --> According to the conditional comment this is not IE <!-- <![endif]--> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | gave-kleur-generator(@kleurtje) { @first: lighten(@kleurtje, 20%); @last: darken(@kleurtje, 20%); @stop : darken(@kleurtje, 50%); background-image: linear-gradient(bottom, @first 34%, @last 56%); background-image: -o-linear-gradient(bottom, @first 34%, @last 56%); background-image: -moz-linear-gradient(bottom, @first 34%, @last 56%); background-image: -webkit-linear-gradient(bottom, @first 34%, @last 56%); background-image: -ms-linear-gradient(bottom, @first 34%, @last 56%); background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.34, @first), color-stop(0.56, @last) ); } |
Dat kreeg ik alleen aan de praat voor de horizontale centering, verticaal slikte 'ie dat niet. (Daarnaast zou ik eigenlijk een blok verticaal willen centeren met een variabele hoeveelheid content en dus hoogte.)quote:Op donderdag 16 augustus 2012 17:18 schreef Catch22- het volgende:
ja waarom? Gewoon een breedte en margin:0 auto;, eventueel een wrapper erbij.
1 | .block { position:absolute; top:50%; bottom:50%;margin-top:-225px; |
Die bottom:50%; is niet nodigquote:Op vrijdag 17 augustus 2012 08:57 schreef Catch22- het volgende:
die blokken hebben een vaste hoogte toch?
Stel dat de hoogte 450 pixels is, doe je toch gewoon
[ code verwijderd ]
pseudo-elementen in IE zijn ook niet altijd even handigquote:Op vrijdag 17 augustus 2012 09:34 schreef QM84 het volgende:
http://css-tricks.com/centering-in-the-unknown/
Verticaal centreren met hulp van een pseudo-ghost element.
Alleen IE7 ondersteund ze niet, vanaf ie8 kan je ze gewoon gebruiken...quote:Op vrijdag 17 augustus 2012 09:36 schreef Catch22- het volgende:
[..]
pseudo-elementen in IE zijn ook niet altijd even handig
dit kan je ook doen, stukje jQuery
http://jsfiddle.net/maxx0r/vEGkr/4/
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |