HighDots Forums  

How do I centre web page in browser window

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss How do I centre web page in browser window in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Trueman34
 
Posts: n/a

Default How do I centre web page in browser window - 07-15-2004 , 12:49 AM






I have designed a simple webpage in Adobe photoshop and have saved it as html.
I can open it in dw but it displays on the left hand side of the page. I want
to centre this page within DW and use a background colour down the left and
right sides so that those with 800x600 screen resolution will see the whole
page but those with 1024 x 768 see the webpage in the middle of their screen
and the coloured background down each side of the browser.
This is where I am having problems, I can create a table but then I am unable
to insert the html or sliced images into the table.
I can open the page in DW but then have no way of putting it into a table or
adding two tables down each side. There must be an easy way of doing this that
I am just not sure about. Can someone please help?

Thanks.


Reply With Quote
  #2  
Old   
naazg
 
Posts: n/a

Default Re: How do I centre web page in browser window - 07-15-2004 , 01:16 AM






Hello TrueMan,

The simple answer is... open a new empty page... insert a table with 1 row and
1 col centerlize it and change the width and height of that tablle in pixels
according to your image side. If you have one large image you can insert in but
if you have sliced the images into small images then insert another table
within that table with 100% with 1 col and 2 rows. in the first row all all
your images beside each other without spaces. and at the bottom row you can use
your copyrights.

This is the simple ways. If you still face a problem them let me know.. I will
see how best i can answer.

Regards,
Naaz


Reply With Quote
  #3  
Old   
Trueman34
 
Posts: n/a

Default Re: How do I centre web page in browser window - 07-15-2004 , 09:54 AM



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???


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: How do I centre web page in browser window - 07-15-2004 , 10:02 AM



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?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Trueman34" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
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???




Reply With Quote
  #5  
Old   
Trueman34
 
Posts: n/a

Default Re: How do I centre web page in browser window - 07-15-2004 , 10:26 AM



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.


Reply With Quote
  #6  
Old   
Gary White
 
Posts: n/a

Default Re: How do I centre web page in browser window - 07-15-2004 , 10:49 AM



Trueman34 wrote:

Quote:
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.

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.