Re: How do I centre web page in browser window

message from Trueman34 on 15 Jul 2004
Thanks for the help however I am still having problems. My image is sliced into
21 slices so I made my inner table 7 columns by 3 rows. I then inserted all the
slices into each cell but on preview there were gaps between each image. Just
like the cells all had borders even though this was set to zero.
I then tried it with only one cell and pasted the images side by side. It
worked fine for the first row of images but when I got to the second row there
was a large gap betwwen the first and second rows that I couldnt seem to get
rid of.
There needs to be a Insert> html or insert page option to insert all the
slices at once into the inner table.
Any ideas on how to fix this???
 
Murray *TMM* replied to Trueman34 on 15 Jul 2004
Before you devote any more time on your existing HTML, do this. Look at the
code. Count how many occurrences of these two attributes you see - colspan
and rowspan. If you see more than 2, then you should not use that code.
Even when you get it centered successfully, you will still find it to be
unacceptibly fragile.

So - what is the answer?
 
Gary White replied to Trueman34 on 15 Jul 2004
But did you set the cellspacing and cellpadding to zero? If not,
browsers will use their default values, which will not be zero.

That said, Murray has made a VERY valid comment. Image editors write
notoriously bad HTML. Think also about the size of the page in the
number of bytes. Your target weight for a page is to be not more than
40k-50k in order for the page to download in 8 seconds or less.

Another thing to consider is that you have 21 slices. At
websiteoptimization.com, they calculate download times using a value of
0.2 seconds latency for each request. With 21 slices, that adds up to
4.2 seconds just for the turnaround time on the request for those
images.

All in all, this sounds very much like it would be a very fragile and
sluggish page.

Gary
 
Trueman34 replied to Trueman34 on 15 Jul 2004
I also tried to insert the slices one after the other without using enter at
the ned of the first row. This worked and they automatically went down each row
but wehn I previewed the image it displayed them all in one row of 21 columns.
 

Archived message: Re: How do I centre web page in browser window (Macromedia Dreamweaver)