Connecting Tech Pros Worldwide Forums | Help | Site Map

set size of body in pixels

Rick Merrill
Guest
 
Posts: n/a
#1: Jul 28 '08
I need a web page in exact
pixels height and width for use
in standard def TV.

Any ideas how?

dorayme
Guest
 
Posts: n/a
#2: Jul 28 '08

re: set size of body in pixels


In article <d5SdnY-LuvE-YxHVnZ2dnUVZ_vadnZ2d@comcast.com>,
Rick Merrill <rick0.merrill@gmail.comwrote:
Quote:
I need a web page in exact
pixels height and width for use
in standard def TV.
>
Any ideas how?
Well, what is the problem exactly? Do you now CSS a bit?

--
dorayme
Adrienne Boswell
Guest
 
Posts: n/a
#3: Jul 28 '08

re: set size of body in pixels


Gazing into my crystal ball I observed Rick Merrill
<rick0.merrill@gmail.comwriting in news:d5SdnY-LuvE-
YxHVnZ2dnUVZ_vadnZ2d@comcast.com:
Quote:
I need a web page in exact
pixels height and width for use
in standard def TV.
>
Any ideas how?
>
You really don't need to do that, just let the browser deal with it.
You might want to use @media tv - which is intended for television and
television type devices.

Television screen are as varied as computer monitors. Additionally, you
don't know if someone is going to have their cable menu open, or using
picture in picture or something like that, which could reduce the
available "window" size.

Again, just let the browser deal with it.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Rick Merrill
Guest
 
Posts: n/a
#4: Jul 28 '08

re: set size of body in pixels


dorayme wrote:
Quote:
In article <d5SdnY-LuvE-YxHVnZ2dnUVZ_vadnZ2d@comcast.com>,
Rick Merrill <rick0.merrill@gmail.comwrote:
>
Quote:
>I need a web page in exact
>pixels height and width for use
>in standard def TV.
>>
>Any ideas how?
>
Well, what is the problem exactly? Do you know CSS a bit?
>
720x480
Yes I do.
Scott Bryce
Guest
 
Posts: n/a
#5: Jul 28 '08

re: set size of body in pixels


Rick Merrill wrote:
Quote:
I need a web page in exact pixels height and width for use in
standard def TV.
Quote:
Any ideas how?
<snip>
Quote:
720x480.
Controlling the width using CSS is a simple matter. Controlling the
height is not. You can specify a height for a div, but constraining the
content of the div to that height is not as easy. Even if you specify a
font face and size and mark them !important, different browsers render
text differently. This means that they will wrap text at different
points. What may look like 10 lines of text to you may look like 11
lines of text to me, and not fit in the div.

You have several options: deliver each page as a 720 x 480 bitmap,
constrain the width to 720px and allow the page to overflow the height,
constrain the width to 720px and hide anything that overflows, constrain
the width to 720px and put so little content on the page that it is
unlikely to overflow. I don't think any of these are what you really want.
Andy Dingley
Guest
 
Posts: n/a
#6: Jul 28 '08

re: set size of body in pixels


On 28 Jul, 00:03, Rick Merrill <rick0.merr...@gmail.comwrote:
Quote:
I need *a web page in exact
pixels height and width for use
in standard def TV.
You don't.

Provide a fluid design, same as ever. View it on a browser that
imposes this rigid size limit (such as 720×480) and your design will
cope.
Scott Bryce
Guest
 
Posts: n/a
#7: Jul 29 '08

re: set size of body in pixels


Rick Merrill wrote:
Quote:
This is a piece of a 2-week long listing of tv shows with javascript
that finds the current time and only displays a screenfull of what is
playing now and in the next couple of hours. The html/javascript is
run periodicly by a frequent, scheduled batch file to produce a
graphic image that is put on the TV as 'filler' before the next show.
that's why.
>
In other words, this html is a convenient way to generate the
graphics in a semi-automatic fashion.
I would think that HTML/Javascript would be a less than optimum way to
do this.

If I am understanding correctly, what you are trying to do is use HTML
to describe an image to a program that will generate the image, then the
resulting image is displayed on a TV screen. Is that right? There may be
better ways of doing this, though we tend to use the tools we are
familiar with.

If I am correct, then the peculiarities of different browsers is not as
big an issue as it usually would be with HTML. But you still need to
manage the height of your content in some way.

Rather than trying to set the width and height of the body of the page,
place a div around your content and set the width, height, background
image, font face, font size, margins, etc of the div.

You might have better success with a program like Fly.
http://martin.gleeson.com/fly/
(Maybe. Fly won't automatically do word wrapping for you.)
Rick Merrill
Guest
 
Posts: n/a
#8: Jul 29 '08

re: set size of body in pixels


Scott Bryce wrote:
Quote:
Rick Merrill wrote:
Quote:
>This is a piece of a 2-week long listing of tv shows with javascript
>that finds the current time and only displays a screenfull of what is
>playing now and in the next couple of hours. The html/javascript is
>run periodicly by a frequent, scheduled batch file to produce a
>graphic image that is put on the TV as 'filler' before the next show.
>that's why.
>>
>In other words, this html is a convenient way to generate the
>graphics in a semi-automatic fashion.
>
I would think that HTML/Javascript would be a less than optimum way to
do this.
>
If I am understanding correctly, what you are trying to do is use HTML
to describe an image to a program that will generate the image, then the
resulting image is displayed on a TV screen. Is that right? There may be
better ways of doing this, though we tend to use the tools we are
familiar with.
>
If I am correct, then the peculiarities of different browsers is not as
big an issue as it usually would be with HTML. But you still need to
manage the height of your content in some way.
>
Rather than trying to set the width and height of the body of the page,
place a div around your content and set the width, height, background
image, font face, font size, margins, etc of the div.
>
You might have better success with a program like Fly.
http://martin.gleeson.com/fly/
(Maybe. Fly won't automatically do word wrapping for you.)

I'll give the div a try.

This of course evolved from a nice, use anywhere, web page with the
NowPlaying feature, then it became a path to getting an anouncement
slide on the tv.
Closed Thread