Author Topic: Size of Cells  (Read 1662 times)

Yum Man

  • Newbie
  • *
  • Posts: 13
    • View Profile
Size of Cells
« on: November 27, 2006, 02:21:04 PM »
How do i control the size of individual Cells. I have a logo I want to insert in the middle of my layout, but when I do it pushes the cells on the right off the screen. Can someone point me in the right direction?

Thank,

Yum Man

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5402
    • View Profile
Re: Size of Cells
« Reply #1 on: November 27, 2006, 03:08:28 PM »
Cells will always be at least as tall and as wide as their contents.  And cells will expand to fill the height and width of the screen.  Each cell has a Height and a Width property.  This property can force the cell to be wider or taller than it otherwise would be, but not smaller - a cell will always be at least as tall and wide as its contents.  So if you put an image that is, say, 500 pixels wide inside of a cell, the cell is going to be at least 500 pixels wide.  If you set the cell's width to 700, it will be 700 pixels wide.  If you set it to 300, it will still be 500 pixels wide (in order to accommodate the image).

So... if placing an image inside of a cell pushes neighboring cells off of the screen, how could you possibly fit the image and the neighboring cell side-by-side?  Sounds to me like their combined size is bigger than your screen.  If this is the case, you can trim or move what's displayed in the other cells, or you can reduce the size of the logo image.  You can use an image editing program to do this, or just specify the size of the image in the image tag, like this: <img src="C:\myLogo.gif" height=100 width=200>

Yum Man

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Size of Cells
« Reply #2 on: November 28, 2006, 09:40:26 AM »
Thank you very much for the quick and clear response. That's exactly what I needed.

Great program by the way. I will be purchasing in the next few days.

Thanks again,

Yum Man