1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Retrieving dynamically changing size

Discussion in 'Styling and Customization Questions' started by tonnyz, Dec 19, 2014.

  1. tonnyz

    tonnyz Member

    Can I retrieve a dynamically changing <div> size such as message container width (which changes based on the browser width) ?
    Maybe something like @headerLogoHeight but its value will dynamically change based on the browser width ?

    thanks :)
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use media queries and a CSS class for the div.

    There is a link in my signature explaining how to use media queries.
  3. tonnyz

    tonnyz Member

    I used media queries, but it did not change the width smoothly per pixel changes. It does only change the css width per media width, doesn't it.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Typically divs will automatically expand with the content but without seeing it in context, it's difficult to know exactly what it is you're trying to do.

Share This Page