Forums

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

Home Forums CSS Trouble getting CSS to work

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #295848
    h4nnahl0ul0u
    Participant

    Hi,

    I’m trying to do some simple css to make an element have a width of 50% on desktop and 100% on tablet. I can’t however seem to target it correctly.

  • Image
  • Any advice on ways to do this will be greatly appreciated.
    Thanks, Hannah

#295849
h4nnahl0ul0u
Participant
  • Image
  • #295850
    h4nnahl0ul0u
    Participant
  • #295851
    vulkanus
    Participant

    Did you try it Responsive Web Design Media Queries?

    #295852
    h4nnahl0ul0u
    Participant

    Hi, I did yes. I think the issue is how I’m selecting it. I’ve tried :

    .col-3-12.col-tablet-1-3.col-phablet-1-2.col-phone-1-1.ae-9.fadeIn.half-desk-wide-tab.done li

    and

    .half-desk-wide-tab

    #296276
    vulkanus
    Participant

    Hi,
    check this: https://stackoverflow.com/questions/6370690/media-queries-how-to-target-desktop-tablet-and-mobile

    that css properties does not do anything without right target query.

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