Author Topic: setting cell heights  (Read 2015 times)

Mahound

  • Sr. Member
  • ****
  • Posts: 395
  • THE ONLY time i get screwed is when i play poker!
    • View Profile
setting cell heights
« on: May 24, 2012, 06:28:23 AM »
I would like to specify the height of cells.

I have 3 cells on a a screen i have made for displaying poker etiquette.
The top cell is for the header. i have set the geight for this on the cell info as 30
The middle cell is for a scrolling (up) text. and this displays the rules of poker etiquette. no height specified.
The bottom cell displays a message which scroll from right to left across the bottom of the screen.  I have set  the height on this (in the cell info ) to 30.

The problem   I am getting is that the middle cell only covers about 1/2 of the available space. If i try putting a specific height in it makes the bottom cell disappear.

Below is an example that was given to display cells horizontaly, and this worked great. I have tried to adjust this for what i need but couldn't get it to work.

<div style="width: 715px"><marquee> We hope you had a GREAT game of poker. For more information on all things about the Franklin Poker League. Check out www.facebook.com/franklinpoker for game information, and results.</marquee>

any  ideas would be greatly appreciated
I have attached a screen shot of the screen.
 and this is what i have in the centre cell that i tried to enlarge the cell area

<marquee direction="up" loop="-1" width=1200 scrollamount=2.20.>
<div style="HEIGHT: 295px; overflow-x: hidden"><span style="color=#ffffff; font-size: 15pt"><nobr>

<table border=0 cellspacing=0 cellpadding=0><tr><td style='font-family: Arial; font-size: 28pt; font-weight: bold; color: #ffff00; filter: dropshadow(OffX=0, OffY=0, Color=#ffff00)'>

« Last Edit: May 24, 2012, 06:31:21 AM by Mahound »

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: setting cell heights
« Reply #1 on: May 24, 2012, 11:35:57 AM »
Admittedly the height/width settings for cells is a little bit ... difficult to get to behave the way you want.  It has to do with how the entire screen is laid out, using HTML tables in order to get cells heights to stretch to fill screen space, and to get cell contents to vertically center.  Both are difficult goals to achieve with other elements, and adding in a height or width specification doesn't always give the results you expect, or want.  Another reason I'd love to implement a free-form layout.

Why don't you post your layout and let me try a few things?  Maybe I can figure out a workaround to the standard height/width settings.

Mahound

  • Sr. Member
  • ****
  • Posts: 395
  • THE ONLY time i get screwed is when i play poker!
    • View Profile
Re: setting cell heights
« Reply #2 on: May 24, 2012, 05:55:04 PM »
Cheers Corey will be obliged.
There are 3 screens
the main screen
the rules screen and a Poker Etiquette screen

The one I was trying to sort out (mentioned in the previous pos) was for the Poker Etiquette screen
The resolution i am using is 1366 * 768

May be a few days  before i get back to you, as i am off to sunny Cyprus. No online poker- nearest casino 150 miles away, do good to get a rest from all those bad beats  :)

Many thanks in Advance

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: setting cell heights
« Reply #3 on: May 25, 2012, 10:30:09 AM »
Set the height of the <marquee> element instead.  This worked for me.  Here's the HTML in the cell I used:

<marquee direction="up" loop="-1" width=1200 height=600 scrollamount=2.20.>
<welcome3>
</marquee>


For your purposes, you'll probably want to set it to 768 - 30 - 30 = 708.  Might need to play with that just a little to get it just right.  I put a border at the top and the bottom of the center marquee cell to make it easier to see where the marquee started and stopped in my screenshot.  By the way, it worked the same whether or not the center cell's height was set to 600 or was left empty.

Mahound

  • Sr. Member
  • ****
  • Posts: 395
  • THE ONLY time i get screwed is when i play poker!
    • View Profile
Re: setting cell heights
« Reply #4 on: May 25, 2012, 02:24:54 PM »
Many thanks Corey, that worked just great, didn't have to alter it at all. Loved the border on the cell never thought of doing that.