Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I thought this would be easy, but turns out it's not. I need to set the Firefox viewport size to a given value (larger than my screen resolution). What I want is not to enlarge the application window, but to enlarge the size available to the html content. The viewport won't be physically larger, but will "tell" the html that it is, so that webpages will take more space (obviously making scrollbars visible).

For example, let's say my physical Firefox window is 800x600 px. I'd like to set "viewport size=2", then the available space for the html to render would be 1600x1200.

Web Developer has a resize feature but it doesn't work when you set a size larger than your screen resolution (in Windows 7).

Thanks in advance (I hope my explanation makes some sense).

share|improve this question
    
Are you after taking screenshots? Then see How can I take browser screenshots at a higher resolution than my browser supports? –  Arjan Jun 13 '10 at 11:15
add comment

3 Answers 3

up vote 1 down vote accepted

You should be able to do so by manually setting the width of the <html> element with Web Developer's "edit CSS" feature. This would force the content to a give size and you would get horizontal scrollbars, etc. depending on your window size. You could even make a bookmarklet for that for quicker access.

share|improve this answer
1  
Wow, that would imply that CSS could resize my browser? I don't think so... –  Arjan Jun 12 '10 at 23:00
1  
Well, no, but the asker was looking for the way of resizing the viewport, not the window. So no, you would have to use Javascript to resize the browser window. –  Andrei Jun 13 '10 at 18:08
add comment

You can zoom in or out on a web page using ctrl + mouse wheel.

This way you can show much more of the web page then is set buy your default screen resolution. But it wont tell you what the actual resolution is. You then need to use the ruler widget that comes with web developers addon to see the relative resolution. It scales to your zoom level.

share|improve this answer
add comment

No, your question does not make any sense. The viewport is just the size of the client area of the Window, which obviously cannot be make larger than your screen resolution. HTML code neither knows nor cares about viewport size: that is, html elements are sized arbitrarily without any need to consider the physical equipment that is used later to render the page.

share|improve this answer
1  
this is incorrect. HTML elements are rendered accordingly to the available space. For ex. the html root element takes (by default) 100% of the available width, i.e. it's at least as wide as the viewport. So you can "fool" the html engine into thinking that the viewport has a given size, different than the actual browser client area (see @Andrei's answer). –  Francesco De Vittori Nov 5 '12 at 8:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.