You are here: Re: Pixel Question « HTML « IT news, forums, messages
Re: Pixel Question

Posted by Neredbojias on 11/02/05 01:42

With neither quill nor qualm, Sparticus quothed:

> I have been doing web development for a while now (as a hobby) but
> there is one thing I never understood. It's about tables and pixels
> widths.
>
> For example,
>
> 1.) If I make a table at tell it to be 800 pixels wide, with border="1"
> (which I don't think is 1 pixel... but just size 1) is the table
> something like 796 pixels wide, ple 4 pixels for the border? Or 800
> pixels wide, plus 4 pixels for the border? (a total of 804).

The inner width of the table is 800px. Even in IE.

> 2.) If I do the same thing as question 1, but with no border, I assume
> my table is in fact 800 pixels wide... so, can I toss in an 800 pixel
> wide image and have it fit perfectly (none if it is clipped)?

There's white space to consider. If your markup handles that correctly,
an image can fit "perfectly" in most browsers.

> 3.) I normally always set my cellspacing and cellpadding to zero, but
> if I don't, how does that affect the answers to the other questions?

Both add inter-cell spacing with different effects. For example,
padding will show *cell* background color and spacing won't.

> I understand I'm asking allot... but it's always bothered me and I
> never found any documentation to help me. if anyone can answer these
> questions for me I'd be very grateful.
>
> Thanx in advance!
>
> Ryan Ritten
>
>

--
Neredbojias
Contrary to popular belief, it is believable.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация