html - Css text/image wrap not working -
why text wrap not work around these images? work in magento text editor, why not use css style sheet write code.
not working version: https://jsfiddle.net/mastervision/s8grhjab/
i used textwrap
i worked me in many other situations here: https://jsfiddle.net/mastervision/s6o64m06/
<!doctype html> <html> <head> <style> .newspaper { /* chrome, safari, opera */ -webkit-column-count: 2; -webkit-column-gap: 40px; -webkit-column-rule-style: outset; -webkit-column-rule-width: 1px; /* firefox */ -moz-column-count: 2; -moz-column-gap: 40px; -moz-column-rule-style: outset; -moz-column-rule-width: 1px; column-count: 2; column-gap: 40px; column-rule-style: outset; column-rule-width: 1px; } .textwrap { float: right; margin:10px;} @media screen , (max-width: 40em) { .newspaper{ /* chrome, safari, opera */ -webkit-column-count : 1 ; -webkit-column-gap : 0px ; -webkit-column-rule-style : outset ; -webkit-column-rule-width : 1px ; /* firefox */ -moz-column-count : 1 ; -moz-column-gap : 0px ; -moz-column-rule-style : outset ; -moz-column-rule-width : 1px ; column-count : 1 ; column-gap : 0px ; column-rule-style : outset ; column-rule-width : 1px ; } .textwrap { float: right; margin:10px;} </style> </head> <body> <div class="newspaper"> <p><span style="font-size: x-large;">gentleman basis-ausstattung</span><br /> ="font-size: medium;">link advanced tipps.</span></span></p> </body> </html>
it's failing because not using class .textwrap
anywhere in code. add class paragraph contain images , done:
<p class="textwrap"> <img title="schwarzer cap-toe oxford" src="{{media url="wysiwyg/ohne.text_landingpage_1200pix_08.jpg"}}" alt="schwarzer cap-toe oxford" width="300" height="155" /> </p>
you can see on of links below:
(notice images need on own paragraph work, that's why changed code little around first picture)
Comments
Post a Comment