Here's a strange one. This seems pretty simple but just isn't working.
I have images within a container. Images with class="1"
should take up the full width of the container div. Images with class="2"
should be able to fit 2 images side by side, taking up the full width of the container div. Images with class="3"
should be able to fit 3... you get the idea.
However, even though the classes are being applied (inspect the elements!), the styles are not. The only thing that seems to work is a general style for #container img
, which Iyou can test in the fiddle by removing the ".1" or ".2" from either style. As soon as you add .1
, the images no longer take on the style, even if they are class="1"
!
All I can think tis that maybe tags don't support the class attr? But I don't think that's true.