Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5943009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:20:02+00:00 2026-05-22T16:20:02+00:00

Is there an html / css / javascipt way to maintain a <div> at

  • 0

Is there an html / css / javascipt way to maintain a <div> at a constant size in the face of the user’s zooming the page in and out? That is, using control-plus to increase text size and control-minus to reduce it.

EDIT: The kicker, I guess, is that I want the content of the <div> to stay the same size, too.

Thanks!

EDIT: My goal was (and is) to keep an AdSense <div> from expanding so much as to obscure a lot of the real content on the page. But come to find out (thank you @thirtydot) there’s really no good way to do this. The answer, for me (thank you @Neal!): give the <div> overflow:scroll so as to sacrifice its content rather than the content I’m trying to show.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:20:03+00:00Added an answer on May 22, 2026 at 4:20 pm

    There is no good way (read: reliable) to do this. Sorry.

    What you’re asking for basically boils down to detecting the zoom level of the browser, and there’s a great answer here (confirming just how difficult this is):

    • How to detect page zoom level in all modern browsers?

    As stated in that answer, there is a “kinda” cross-browser crazy way involving the use of Flash, but there are downsides:

    • It uses Flash.
    • It’s not reliable if the user loads your page already zoomed in.
    • It uses Flash. Yes, this is so bad that I said it twice. Think of all those iPhones/iPads.

    Anyway, it’s here:
    http://blog.sebastian-martens.de/2009/12/how-to-detect-the-browser-zoom-level-change-browser-zoo/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any html/css checkers that are javascript based like JSLINT?
Is there anything in HTML/CSS that tells the browser to ignore whitespace completely? So
Is there a utility that will generate html or css for blocks of code
Is there any way to theme an HTML table (CSS) with using the jQuery
Is there any good way of truncating text with plain HTML and CSS, so
Is there a page similar to JSbin where I can test HTML and CSS
On the page there are links displayed with CSS as buttons: HTML: <a class=button
Is there any way to suppress the default js and css loaded by application.html.erb
I'm working on a program that uses HTML/CSS/Javascript/JQuery for its user interface. One of
I want to know if there's a HTML/CSS only way to detect (or at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.