Forums

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

Home Forums CSS Mobile First

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42219
    Alfie
    Participant

    Hi All, have been looking it rewriting one of my existing website using the theory of mobile first, i understand media queries in css, and how they can be used.

    I would like some help on how to add content as the screen size goes up i.e. changing the code that displays a static image in a div to a slider and all the mark up that is involved.

    I have used display: none before, but as i understand it, the content is still downloaded but just hidden which works but doesn’t help on the amount of data that is being downloaded.

    Thanks, Alfie

    #122192
    Senff
    Participant

    I agree with @ChrisP — I believe content should always be the same regardless of the device that’s being used. And, images (static or slider) I would consider content too. Having said that, Chris’ solution for response.js would indeed do the trick.

    In general however, if you have anything that should not be seen on small screens but should be seen on higher screen widths, the display:none method is the easiest, most straightforward way to do it.

    #122202
    Alfie
    Participant

    Thank you for you advise, will have a look at response.js and between that and display:none should be all i need.

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