Am 31.08.2014 12:46, schrieb Gregor Hermens:

n.
Wenn du beim Laden Größen per Javascript anpasst wäre der logische Weg, bei
jeder Änderung des Viewports die Berechnungen zu wiederhohlen:

$(window).resize(function () {
        ...
}

hth
Gruß,
Gregor

Danke für Deine Antwort!

ich habe es so gelöst:

$(window).load(function() {
jQuery("div.csc-textpic-center-outer, div.csc-textpic-center-inner, div.csc-textpic-imagewrap").each(function(){

        x=$(this).width();

        $(this).css("max-width",x + "px");
        $(this).css("width","100%");
    });
});

$(window).resize(function() {
jQuery("div.csc-textpic-center-outer, div.csc-textpic-center-inner, div.csc-textpic-imagewrap").each(function(){

        $(this).css("max-width","");

        x=$(this).width();

        $(this).css("max-width",x + "px");
    });
});


_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an