cell sizeing

G

Guest

Hi their,

Im currently making a website.

To begin im in the stages of making the layout via tables and cells, but
some of the cells wont actually go any smaller than say 10 pixels.

I can resize them but only to make them bigger, even smaller but not past 10
pixels.

I can i make the cells even smaller, say around 3-4 pixles etc?

Thanks
Marcus!
 
G

Guest

Hi, Marcus~

If you are making the cell width 3 or 4 pixels, but the cells are not
getting that small, perhaps you have cellpadding set to a higher number than
0 - that will make the cells wider by the number of pixels you have the
padding set to.

Teri
:)
 
G

Guest

i had cell padding set to 0 for the whole table and cells. Im kinda new but i
have worked something out.

If i set cell padding for the table at the start i will be able to get small
lines between my boxes without having to create the smalll lines by dragging
2 lines out

Is this correct u think?

Its kinda hard to explain what im trying to do with words tbh :p

Marcus :D
 
G

Guest

Yes, that will work. Your best bet would be to try to do your design
formatting with a style sheet, but if you must use tables, it's doable.
Another suggestion on the width is to keep in mind that the total of all the
cells should be equal to the width of the table itself. Many designers use
clear (invisible) .gif files to "hold" the table width to a certain width -
make a file spacer.gif - perhaps 10px wide by 1px high - then manually change
the width of the image after it is placed into the cell to the width of your
desire.

Teri
:)
 
M

Murray

Look at your code. You have content in those cells (or in that row/column)
that is preventing the resize.

For example, this cell -

<td>&nbsp;</td>

which only contains a non-breaking space character, will never get shorter
or narrower than about 19px (which are the dimensions of that character).
Interestingly, if that cell is within a region that is styled to have a
larger or smaller character size, those minimum dimensions will change.

You can fix such cells by inserting a transparent GIF image that is sized as
you want, for example -

to make a cell have a height of 4px, you would insert a transparent GIF
image that is 4px tall.

You can also do this with CSS, but the use of these "shim" or "spacer"
images is a basic technique that is always useful.
 
G

Guest

ok thanks!, what can i make these GIF's with?

also could you just remove the too get the size you desire?

thanks again

Marcus!
 
G

Guest

Oh forgot to mention, i can resize the cells with are vertically alligned to
any size i want, even 1 or 2 pixels.

Its just the horizontal cells that have problems rezieing below 19 as you
said.

Does this problem ring anybells as it seems abit strage that only the cells
going down can be corrected to my prefure size.

Marcus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top