Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design stretch header image according to screen resolution

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #239376
    veki
    Participant

    I need to define header image to be stretched according to screen size in browsers. The elements i.e sidebars and main are defined by percentages and image does have fixed size in pixels. How to make css code for image to be stretched proportionaly with other elements so it can be nicely seen in all screen resolutions?
    The address of site is
    eap-iea.org
    I attach css code that I have got so far.
    Thanks

    See the Pen yOgegZ by Vedran Vucic ( @veki) on CodePen.

    #239633
    VJ
    Participant

    Hi veki, check this link. may be you are looking for this output right.

    http://s.codepen.io/vulchivijay/debug/LNWOga

    a lot of things there to learn in terms of code and basics.

    #239645
    veki
    Participant

    Hello,
    I see that you marked some my code with //. Should I delete that code?

    Thanks,

    veki

    #239654
    Beverleyh
    Participant

    This might help – 3 ways to scale/resize images in responsive design http://www.dynamicdrive.com/forums/entry.php?293-3-Ways-to-Resize-Scale-Web-Images-in-Responsive-Design

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design’ is closed to new topics and replies.