need coding edvice

Discussion in 'Computer Programming, Emulation, and Game Modding' started by linkzerone, Nov 12, 2016.

  1. linkzerone
    OP

    linkzerone Member

    Newcomer
    46
    0
    Oct 24, 2016
    Canada
    ok i have been at this for a few days and need help figuring out how to make responsive imgs

    html
    css
    what im asking is why cant i get #logo-img centered and changing with the screen size am i just missing something i dont have much knowledge on rwd yet and need help
     
    Last edited by Cyan, Nov 12, 2016 - Reason: added tag for easier reading
  2. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,027
    8,547
    Oct 27, 2002
    France
    Engine room, learning
    I tried your code and it's always centered for me.
    the logo is changing size (in both width and height, to keep aspect ratio), and correctly loading the different media css based on the screen width.

    maybe I don't understand what you want to do.

    what would look better is if <main> could start right after <header>.
    currently, main starts at a fixed height from the top of the page (logo-img height is a fixed 300px), making an empty area between the header and main if the image loaded in logo-img is smaller than logo-img's height.
    that's maybe the intended effect.
     
  3. linkzerone
    OP

    linkzerone Member

    Newcomer
    46
    0
    Oct 24, 2016
    Canada
    thanks i figured it out before reading this and am thinkg about starting over due to the fact it is now having overflow issues