Forums

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

Home Forums CSS Adding Content To Display Media Query Size CSS3

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #156658

    Hi I am working on a display for me so can tell which media query I am working on I have got the back ground to change for different views but would like to know if possible to add some text to show. like saying 768 px and under in my div

    not sure correct way.

    media-warning:after {

    content: 'Width 768 Under';
    

    }

    http://codepen.io/CarraraWebsiteSolutions/pen/AaqlG

    #156663
    Ron Roe
    Participant

    You could probably throw that into the max-width:768px media query and it should work. Being a pseudo-element, you’d have to give it a display property. In fact, in this pen: http://codepen.io/ronaldroe/pen/yDdHi
    I added the pseudo-element to body and gave it a fixed position. That’d work pretty well, I think.

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