Skip navigation
Currently Being Moderated

create DIV first?

Nov 13, 2013 6:46 AM

In inserting images into a fluid grid layout, do I first have to create a DIV and then insert the image into the DIV? Thanks, Kevin

 
Replies
  • Currently Being Moderated
    Nov 13, 2013 7:13 AM   in reply to KevinB9

    Depends on where the image will be used. Eg. <header>, <footer>, <aside>, <article>, etc...  If you're asking if you need another div within the main structure to hold the image,  no.  But you could insert it inside a <figure> tag if that's how it will be used.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 13, 2013 9:44 AM   in reply to KevinB9

    By default, FG Layouts re-scale images to viewport width up to the native image size.

     

    img {max-width:100%}

     

    However, this won't work if your HTML code contains explicit img height & width values.  You would need to remove them.

     

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points