You are here

README.txt in Picture 7.2

Same filename and directory in other branches
  1. 7 README.txt
-- SUMMARY --

Picture element

Hide image
----------

If you use the '- empty image -' option, you have to add the following
to your theme css to completely hide the image, otherwise it will
still take some space.

img[width="1"][height="1"] {
  display: none;
}

Warning:
For now this CSS will not work until https://drupal.org/node/2280471
gets fixed. It is postponed until the upstream issues
https://github.com/ResponsiveImagesCG/picture-element/issues/50 and
https://github.com/ResponsiveImagesCG/picture-element/issues/85
are fixed. Meanwhile you can hide the image with css using breakpoints. See
https://drupal.org/node/2280471 for more info.

File

README.txt
View source
  1. -- SUMMARY --
  2. Picture element
  3. Hide image
  4. ----------
  5. If you use the '- empty image -' option, you have to add the following
  6. to your theme css to completely hide the image, otherwise it will
  7. still take some space.
  8. img[width="1"][height="1"] {
  9. display: none;
  10. }
  11. Warning:
  12. For now this CSS will not work until https://drupal.org/node/2280471
  13. gets fixed. It is postponed until the upstream issues
  14. https://github.com/ResponsiveImagesCG/picture-element/issues/50 and
  15. https://github.com/ResponsiveImagesCG/picture-element/issues/85
  16. are fixed. Meanwhile you can hide the image with css using breakpoints. See
  17. https://drupal.org/node/2280471 for more info.