0

So with @media screen - you are able to change CSS depending on screen size. I am looking for a way to change the CSS according to Div size

So if

#menu-logo is > 250px {
     do this
} or else {
     do that
}

Is there any way to do this with CSS ? I'm trying to make my website responsive. Thanks

TylerH
  • 20,799
  • 66
  • 75
  • 101
  • You could visit these links for help. [Line25](http://line25.com/tutorials/create-a-responsive-web-design-with-media-queries), [ugurus](http://www.ugurus.com/responsive-design-media-queries) – user2538755 Jul 23 '15 at 15:52
  • 2
    No, you would need to use Javascript to do this. – APAD1 Jul 23 '15 at 15:53

1 Answers1

0

You can check with regular media-queries at what point your div will be greater then 250px and just use that value in your media-query. Targeting the div itself will need jQuery though.

Jan_dh
  • 771
  • 6
  • 14