|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Sep 2004
Location: Provo, UT
Posts: 302
|
HTML rendering differences between IE and Safari
Here is the code in question:
Code:
<table width="770" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="13" background="http://www.oil-testimonials.com/images/bottomline.gif"></td>
</tr>
</table>
Any suggestions? Thanks! |
|
|
|
|
|
#2 |
|
SitePoint Enthusiast
![]() Join Date: Jun 2007
Location: North Yorkshire, UK
Posts: 38
|
I'm afraid you are not writing valid html. I suspect that IE is taking notice of the height and background. Probably the height on the table is overriding the height on the row so the row becomes the height of the table, 30px. The image is repeating both horizontally and vertically hence you are seeing two lines. Since the image height is 13px I would suspect to see the beginning of a 3rd line.
Try HTML Code:
<html> <body> <table style="width: 770px; height: 30px; border: none; text-align: center"> <tr> <td style="background-image: url(http://www.oil-testimonials.com/images/bottomline.gif);"></td> </tr> </table> </body> </html> |
|
|
|
|
|
#3 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Sep 2004
Location: Provo, UT
Posts: 302
|
Unfortunately that didn't go over well. If you goto oil-testimonials.com you'll see the problem down at the bottom. Any other ideas?
|
|
|
|
|
|
#4 |
|
SitePoint Enthusiast
![]() Join Date: Jun 2007
Location: North Yorkshire, UK
Posts: 38
|
Some addition E (with accent) have crept in somewhere in the process. These need to be removed.
Secondly lose the text-align style, reduce you height on the table (unless 30px is the height you wanted) and put your align="center" attribute back in. That is: HTML Code:
<html> <body> <table style="width: 770px; height: 13px; border: none;" align: center"> <tr> <td style="background-image: url(http://www.oil-testimonials.com/images/bottomline.gif);"></td> </tr> </table> </body> </html> |
|
|
|
|
|
#5 |
|
SitePoint Member
Join Date: Aug 2009
Posts: 6
|
I agree about CSS. A simple way to begin with that: are you building in DreamWeaver? If you go under Modify > Page Properties and change some settings there, DW will generate a CSS file. You can open that file and see how it is written.
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 20:38.








Linear Mode
