Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Safari/Opera 6 poor rendering of simple table.

 
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Next:  800x600 vs. 1024x768 visitor stats?  
Author Message
user567

External


Since: Aug 15, 2004
Posts: 7



(Msg. 1) Posted: Fri Aug 27, 2004 12:34 am
Post subject: Safari/Opera 6 poor rendering of simple table.
Archived from groups: alt>www>webmaster (more info?)

I hope someone can help me with this. This page renders well in IE, NS &
Opera 7, however someone with a MAC reports trouble when viewing in Safari -
notably two broad white bands horizontally across the screen.

This can also be replicated in Opera 6.02 on my PC.

Effectively I have a 100%x100% three-rowed table with solid colour in top
and bottom cells. The middle cell has a background image (a 1x350px image
stretched to fit page width) and an image centred in that cell. The idea is
that, down to the size of the image in the centre, the page can be resized
to fit any resolution and fill the page without scroll bars.

I can specify the height of the centre cell in pixels, but not the top and
bottom as these should just fill out the outstanding height, shouldn't they?

Can anyone advise? Trouble with FTP at the moment, so I cannot show you in
the flesh but here is the body code:

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"
marginwidth="0" marginheight="0"
onLoad="MM_preloadImages('images/click-here-on.gif')">

<table width="100%" height="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="100%" bgcolor="189EF4"></td>
</tr>
<tr>
<td height="350">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="350" background="images/gradiant.gif"><div
align="center"><img src="images/centre-image.gif" alt="bar.05 - about the
business of bars" width="267" height="350"></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#4FFFDB">
<div align="center">
<p><a href="#" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('click2enter','','images/click-here-on.gif',1)"><i
mg src="images/click-here-off.gif" alt="Click to view" name="click2enter"
width="150" height="13" border="0"></a></p>
</div>
</td>
</tr>
</table>

 >> Stay informed about: Safari/Opera 6 poor rendering of simple table. 
Back to top
Login to vote
abuse2

External


Since: Aug 24, 2004
Posts: 30



(Msg. 2) Posted: Fri Aug 27, 2004 2:39 pm
Post subject: Re: Safari/Opera 6 poor rendering of simple table. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

JustMe wrote:
 >
 > I hope someone can help me with this. This page renders well in IE, NS &
 > Opera 7, however someone with a MAC reports trouble when viewing in Safari -
 > notably two broad white bands horizontally across the screen.
 >
 > This can also be replicated in Opera 6.02 on my PC.
 >
 > Effectively I have a 100%x100% three-rowed table with solid colour in top
 > and bottom cells. The middle cell has a background image (a 1x350px image
 > stretched to fit page width) and an image centred in that cell. The idea is
 > that, down to the size of the image in the centre, the page can be resized
 > to fit any resolution and fill the page without scroll bars.
 >
 > I can specify the height of the centre cell in pixels, but not the top and
 > bottom as these should just fill out the outstanding height, shouldn't they?
 >
 > Can anyone advise? Trouble with FTP at the moment, so I cannot show you in
 > the flesh but here is the body code:

You can set the VALIGN="MIDDLE" ALIGN="CENTER" for the center table which would
place that table's alignment at the middle of the page. You also might wish to
use an absolute path in your image callout as in
BACKROUND="/images/gradiant.gif" This way you can use the same code in pages in
subdirectories without having to call a relative path.

If you are using php you can define a path like so.


ROOT_PATH="/your.user.directory/images"

For includes I like to use <?php include ("includes/top.inc"); ?> in the pages
and I place this in the file as well as other things Iwant called out.

INCLUDES_PATH="/your.user.directory/includes"

This defines the path for the variable $INCLUDES_PATH and I place this in the file
when I am calling out an include.

<?php include ("$INCLUDES_PATH"/include_html.file.inc"); ?>

I use this to call the includes and set the include path as an absolute so I don't
have to deal with writing the relative path. For menus I use a relative path so
each menu is relative to the URL that called it.

<table width="100%" border="0" cellspacing="0" cellpadding="0" VALIGN="MIDDLE" ALIGN="CENTER"><tr><td height="350" background="images/gradiant.gif">

<div align="center">

<img src="images/centre-image.gif" alt="bar.05 - about the business of bars" width="267" height="350">

</div>

</td></tr></table>

 > <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"
 > marginwidth="0" marginheight="0"
 > onLoad="MM_preloadImages('images/click-here-on.gif')">
 >
 > <table width="100%" height="100%" border="0" cellspacing="0"
 > cellpadding="0">
 > <tr>
 > <td width="100%" bgcolor="189EF4"></td>
 > </tr>
 > <tr>
 > <td height="350">
 > <table width="100%" border="0" cellspacing="0" cellpadding="0">
 > <tr>
 > <td height="350" background="images/gradiant.gif"><div
 > align="center"><img src="images/centre-image.gif" alt="bar.05 - about the
 > business of bars" width="267" height="350"></div></td>
 > </tr>
 > </table>
 > </td>
 > </tr>
 > <tr>
 > <td width="100%" bgcolor="#4FFFDB">
 > <div align="center">
 > <p><a href="#" onMouseOut="MM_swapImgRestore()"
 > onMouseOver="MM_swapImage('click2enter','','images/click-here-on.gif',1)"><i
 > mg src="images/click-here-off.gif" alt="Click to view" name="click2enter"
 > width="150" height="13" border="0"></a></p>
 > </div>
 > </td>
 > </tr>
 > </table>

--
Mark Ferguson<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Safari/Opera 6 poor rendering of simple table. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]