none
Does this code describe the dimensions of a photo? RRS feed

  • Question

  • I am working on a site and I want to change photos. I was having problems getting it from the photo so I wanted to see what the code expects.  Does the html below describe dimensions for the photo? Here is the code:

    <div class="left-cont col-lg-5 col-md-5 col-sm-5 col-xs-12 img-box">

    Monday, March 18, 2019 12:32 AM

All replies

  • What are the definitions for those classes?  They look like Bootstrap classes, except for "img-box".  Is that defined somewhere in the CSS, or is that using http://html.framework-y.com/components/image-box/ ?.

    The short answer is that those classes describe CSS for the div.  To know if they affect how an image in the div is displayed, you need to know what they do: what are their definitions.

    What they don't do is tell you the actual size of the image.  The actual size of an image and what size it appears to be in a webpage can be different, depending on styling.

    To get the size of an image, open it in any image editing program, or even in a browser, and check its properties.


    Kathleen Wilber
    BrightWillow - Asp.Net Applications


    • Edited by KathyW2 Tuesday, March 19, 2019 2:02 AM
    Monday, March 18, 2019 8:51 PM
  • To be more specific, this seems describing grids in Bootstrap https://getbootstrap.com/docs/4.2/layout/grid/. Into the grids You can put anything.
    Thursday, March 28, 2019 4:28 PM