Jump to content

responsiveness, size of div varying with size of screen


yodavid

Recommended Posts

i know there is a topic about this on w3-css tutorial, but i don't think it covers what i need. i want a div to have a fixed width when the screen is both large and medium, but an auto adjusting width when it's small

 

what i've been using is this <div id="my_div" class='w3-container w3-col l6 m12 s12'>whatever</div>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...