Jump to content

Archived

This topic is now archived and is closed to further replies.

Jackey

Swap image to background

Recommended Posts

Jackey

Wanted a image to show half size viewport on big devices:

 

.bg-right-half-swap.pl-sn-container .pl-sn-wrap {
  background-position-x: 55vw !important;
}
.bg-right-half-swap .pl-sn-image {
  display:none;
}
@media only screen and (max-width:768px) {
  .bg-right-half-swap .pl-sn-wrap {
    background-image:none !important;
  }
  .bg-right-half-swap .pl-sn-image {
    display:initial;
  }
}
{"clone":"uad35y5","object":"PL_Container","content":{"0":{"clone":"udltcgn","object":"PL_Container","content":{"0":{"clone":"u2riauc","object":"PL_Image_Section","content":[],"settings":{"image":"[pl_site_url]/wp-content/uploads/2015/11/ipad_device_large_2x.png","col":12,"special_classes":"bg-right-half-swap","saved":1,"alt":"","height":"","width":"","link":"","newwindow":""}},"1":{"clone":"u6u2584","object":"PL_Text_Section","content":[],"settings":{"text":"<h2>Headline</h2><p>Axim quam sunt ex et parchil ipidi dolorias di rerci blaut denda arciae earibus qui optatur aut occabo. Ugiae natemporesto qui corunt alit, eictur as et odit etur, ullatempor apit velitincia quo que pa cuptate mporibus, offictum fuga. Ebit laccabo. Erion pelibus daerum volum eum veraere volore cum quia volest, cone et quiberum arum deliscia nimus aut ea im ipsaesto illab ipsunt, voluptas eum que pore, necte non ratem dolorum videnist harum dolorer rumenis quis et aut voloriberum ipsum rerum eiur sit, cum, quam, cus ius, conseca tatiunda excea consed ea seque coneceperio volupidi ad et omnimax imusaec eptaqui ationsequia niet.</p>","col":12,"font_size":"1.3","saved":1,"bgcover":"contain"}}},"settings":{"col":6,"saved":1}}},"settings":{"background":"[pl_site_url]/wp-content/uploads/2015/11/ipad_device_large_2x.png","bgrepeat":"no-repeat","saved":1,"padding_top":"0","padding_right":"0","padding_bottom":"0","padding_left":"0","special_classes":"bg-right-half-swap","margin_bottom":"7.0","contentwidth":"1199","effects":"","bgcover":"contain","bgypos":"0","margin_top":"","margin_right":"","margin_left":"","minheight":"37"}}

It would be a nice option to be able to move the background out of the viewport from the PL5 editor!

Share this post


Link to post
Share on other sites
Andrew

What is this exactly?

Share this post


Link to post
Share on other sites

×