473,499 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

set size of body in pixels

I need a web page in exact
pixels height and width for use
in standard def TV.

Any ideas how?
Jul 27 '08 #1
7 3417
In article <d5******************************@comcast.com>,
Rick Merrill <ri***********@gmail.comwrote:
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
Jul 27 '08 #2
Gazing into my crystal ball I observed Rick Merrill
<ri***********@gmail.comwriting in news:d5SdnY-LuvE-
Yx******************@comcast.com:
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

Jul 27 '08 #3
dorayme wrote:
In article <d5******************************@comcast.com>,
Rick Merrill <ri***********@gmail.comwrote:
>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.
Jul 28 '08 #4
Rick Merrill wrote:
I need a web page in exact pixels height and width for use in
standard def TV.
Any ideas how?
<snip>
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.
Jul 28 '08 #5
On 28 Jul, 00:03, Rick Merrill <rick0.merr...@gmail.comwrote:
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.
Jul 28 '08 #6
Rick Merrill wrote:
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.)
Jul 29 '08 #7
Scott Bryce wrote:
Rick Merrill wrote:
>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.
Jul 29 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9673
by: Michael | last post by:
Hi, How can I set my default display font size, type for a web page, or a <table>? I dont want to write <font size=....> everywhere, especially inside each <td>. I know this is HTML...
2
3250
by: chepiok | last post by:
I have a very basic table with a fixed height of 40 pixels that contains an image of 40 pixels height. Works on mozilla, forebird, konkeror, safari. The problem is that on IE6 PC, WinXP SR1, the...
21
2842
by: James Moe | last post by:
Hello, I just joined this group and saw the discussion "What do you think of resizing 1em to 10px?" I am somewhat confused by what y'all think should be used as a reference size. I was surprised...
23
3719
by: BobK | last post by:
Hello Everyone, I am updating the CSS for my site but want new and original page to appear the same. My original CSS permits small increments of zooming (ctrl/mouse wheel) so that you get...
16
2429
by: maya | last post by:
I have heard so much preaching here about how font sizes should be set as percentages so users can change font-sizes on their browsers... ok, so now at work am working on a site where we need to do...
40
2918
by: Paul Davis | last post by:
Hi all, I'm building some style sheets and trying to play the old game of balancing designer pixel perfection and still allowing users to adjust their font sizes. The compromise I've made with the...
30
4486
by: Takehiko Abe | last post by:
I have a <pelement with <ttinside: ;;; <p>A paragraph contains <tt>tt element</tt>.</p> I would like to set the font-size of the TT to the same as the containing <p>. This does not seem to...
71
5709
by: Mark | last post by:
Sorry if the question is a bit basic. I generally express my font sizes in pixels, originally to handle the Macintosh/Windows font size differences (though I believe that they both now treat...
11
8831
by: Ram | last post by:
Hey, I've got the following code: <font font-size="7">Hello</font> How can I calculate the font-size int the actual size in pixels? Thanks ahead! --sternr
3
5728
by: PYG | last post by:
Hi everybody I have a simple question : If i use this code : <body style="font-size:24px;color:blue;"> Text in body <table> <tr><td> Text in table
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.