Getting the screen resolution from the command line.

Gryllida gryllida at gmail.com
Wed Mar 3 08:59:22 UTC 2010


On 3/2/10, Grizzly <Real_Grizz_Adams at yahoo.co.uk> wrote:
> On 01 March 2010 at 19:19, Brian McKee
> Enlightened me with this:-Re: Getting the screen resolution f
>
>>On Mon, Mar 1, 2010 at 1:21 PM, Ray Parrish <crp at cmc.net> wrote:
>>> I need to know if there is a command line method of retrieving the
>>> screen resolution for a computer that a bash script is running on. I
>>> need it to center a bar graph in an HTML page.
>>
>>Are you assuming the browser is full screen? 'Cause otherwise the
>>screen resolution doesn't equal browser window size...
>
> Why not use
>
> <center>you graph stuf</center>
>
> in your HTML, depending on how your graph stuff is done you can scale it to
> almost fill the HTML window
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


this <center> tag is a non-standard way, supported by IE only, better
try something like <table><tr width="100%"><td height="100%"
style="text-align:center;" valign="center">CENTERED
TEXT</td></tr></table> or something of that kind, ask at
irc://irc.mozilla.org/webdev




More information about the ubuntu-users mailing list