• 0

Javascript to auto scale webpage


Question

Recommended Posts

  • 0
  On 23/03/2014 at 14:08, xendrome said:

So if I do this, which I currently have active, it seems like I have to increase the padding to like 800 to get it zoomed out enough, and as I increase the padding, it shifts the whole site over. Seahorsepip, if you can, look at the live site, I have it enabled now.

Remove legacy-browse.js

That code is already in the conditional comment, also make sure to just use 80px padding

  • 0
  On 23/03/2014 at 14:25, Seahorsepip said:

Remove legacy-browse.js

That code is already in the conditional comment, also make sure to just use 80px padding

 

Ok take a look now, zoom looks ok, but it's cutting off the left side in Chrome, IE11 looks good.

  • 0
  On 23/03/2014 at 14:31, xendrome said:

Ok take a look now, zoom looks ok, but it's cutting off the left side in Chrome, IE11 looks good.

change:

body {
	width: 748px;
	overflow-x: hidden;
	padding: 0 80px; /* Change 80px to increase/decrease zoom size */
	transform-origin: top left;
        -ms-transform-origin: top left;
}

to:

body {
	width: 748px;
	overflow-x: hidden;
	padding: 0 80px; /* Change 80px to increase/decrease zoom size */
	transform-origin: top left;
        -webkit-transform-origin: top left;
        -ms-transform-origin: top left;
}
  • 0
  On 23/03/2014 at 14:45, Seahorsepip said:

 

change:

 

 

Ok done, IE11 and Chrome look good.. IE8 seems to be uneffected and looks normal. :) Making progress.

And BTW I changed the padding to 300 for now, looks decent and doesn't mess up any font spacing

  • 0
  On 23/03/2014 at 15:08, xendrome said:

Ok done, IE11 and Chrome look good.. IE8 seems to be uneffected and looks normal. :) Making progress.

My bad change lt IE 8 to lt IE9 in that header snippet.
  • 0

I figured it out, I wasn't loading jquery first prior to the IE 9 script.

 

But it does appear to shifting too far right in IE8, if you have IE8 take a look.

 

Also, in IE11, the "Select Department" dropdown at the top left, scales properly, but on Chrome it does not, any ideas on what might fix that, if even possible.

  • 0
  On 23/03/2014 at 20:28, xendrome said:

I figured it out, I wasn't loading jquery first prior to the IE 9 script.

 

But it does appear to shifting too far right in IE8, if you have IE8 take a look.

 

Also, in IE11, the "Select Department" dropdown at the top left, scales properly, but on Chrome it does not, any ideas on what might fix that, if even possible.

In the IE fallback script you can try changing the variable zoom to zoomie this might fix the issue.

  • 0
  On 24/03/2014 at 15:59, Seahorsepip said:

In the IE fallback script you can try changing the variable zoom to zoomie this might fix the issue.

 

I think I am just going to display an "upgrade browser" bar across the top once every 24 hours to users that have IE8 or less.

 

Any suggestion on the "Select Department" dropdown at the top left of the homepage? It doesn't scale the dropdown box up in Chrome, but does in IE.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I really do like the design of the iPhone 16 Pro Max. It is quite nice.
    • If the entire industry adhered to fundamental principles of Microsoft's Next-Generation Secure Computing Base (NGSCB), there might not have been a basis of the existence of this article.
    • Ashes of the Singularity II announced promising even larger battles, new faction, and more by Pulasthi Ariyasinghe A sequel for the 2016-released Ashes of the Singularity has officially been confirmed, and the original developer and publisher duo, Oxide Games and Stardock Entertainment, are back for this release too. Check out the debut trailer above. Ashes of the Singularity II is under development with a significantly expanded team compared to the original, according to today's announcement. It will be adding in a range of fresh units and gameplay systems for real-time strategy fans to dive into. More options for strategic gameplay, more intricate base building, and better enemy AI are listed as features for the new game as well. "Ten years ago, we set a new, literal benchmark for RTS games with massive battles and groundbreaking technology," said Brad Wardell, CEO of Stardock Entertainment. "With Ashes of the Singularity II, we’re raising the bar even higher, delivering strategic gameplay depth that RTS fans have always dreamed of.” The storyline of Ashes of the Singularity II will take place in 2031, with a complete single-player campaign, as well as cooperative and competitive multiplayer modes, being confirmed as features today. Moreover, a third faction is joining the fray this time, with Humans joining the fight alongside the original games' Post-Human Coalition and the Substrate. "Obviously, in the first game, the number one request was to have a human faction," adds Wardell. “Back then, we just couldn’t support having thousands of organic, walking, squishy people in the world and thus had to design in favor of machines. We’re really excited to bring the humans into the war and watch how they fare against the massive mechanical armies of the Substrate and PHC.” Ashes of the Singularity II is targeting a broad 2026 release window, with the team hoping to launch the title as the original celebrates its 10th anniversary. Its Steam store page is already up for wishlisting over here. Disclaimer: Neowin's relationship to Stardock
    • How exactly is a FREE image generation model a... Ponzi scheme?!?! I don't love all of these Gen-AI things flooding the market but there's nothing "ponzi" about it.
  • Recent Achievements

    • One Month Later
      SamZrize earned a badge
      One Month Later
    • Week One Done
      SamZrize earned a badge
      Week One Done
    • One Year In
      SamZrize earned a badge
      One Year In
    • One Year In
      barracuda earned a badge
      One Year In
    • One Month Later
      barracuda earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      725
    2. 2
      +FloatingFatMan
      189
    3. 3
      ATLien_0
      180
    4. 4
      Xenon
      113
    5. 5
      neufuse
      109
  • Tell a friend

    Love Neowin? Tell a friend!