4
How to apply two (or more) CSS rules to elements img
from within a div
?
I use the Tinymce editor and when I send an image for posting or messages (pms) I have to set in a specific measure for each thing, otherwise the images "burst" the divs
.
I learned to set a default display value with CSS but all images are with this value independent of being Landscape or Portrait :(
I would like, if there are, set different CSS rules based on the dimensions of the images, making the images Landscape have a pattern as images Portrait assume another display standard value.
How is the space you have for the images? " Niches" of fixed width and height, where images need to fit independently of appearance (Portrait or Landscape)?
– bfavaretto
@bfavaretto images are stored in the database and then displayed in a div...along with the content (texts, links, smilles, etc...) happens that if I set a default value one or the other become disproportionate pq I will end up making Portrait images to be displayed as Landscape for example :( why I think(? ) which java could make this parse and apply rules by proportion or percentage just don’t know how.
– Lauro Moraes