You are here: Re: Problem w/ Text Alignment - IE7 Problem Only « HTML « IT news, forums, messages
Re: Problem w/ Text Alignment - IE7 Problem Only

Posted by John Hosking on 08/27/07 20:25

Mtmartin71 wrote:
> For the following web site:
>
> www.thedukestreetkings.com
>
> I am having an issue where the text in the index page (table is
> justifying to the left no matter what I try).

You've got tables nested at least three deep, so it's hard to know which
one to look at. I don't have IE7 here, so it's not obvious to me what's
wonky. In IE6 I see a strong leftist tendency by the text starting with
"Cool News for our Tenth Annual...," but you say it's only in IE7, so I
don't know.

> The problem does not
> occur when viewing this with Mozilla Firefox and the text covers the
> table appopriately. Looking for any help to see if it's something
> within the HTML. Here is the source for the page in question:

But you already gave us the URL. We therefore have the code. Or did you
paste the code here because GoLive added zillions of empty lines to your
markup, making it unreadable? ;-)

>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

invokes Quirks mode. Aim for standards mode with, say,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

....
> <meta name="generator" content="Adobe GoLive">
> <title>The Duke Street Kings</title>
> <csscriptdict import=""></csscriptdict>

Umm.. <checking the HTML specs...>

> <script type="text/javascript"
> src="file:///Users/stin/Library/Preferences/Adobe/GoLive/Settings7/
> JScripts/GlobalScripts/CSScriptLib.js"></script>

A reduced sample of the problem might help others debugging. I'm not
claiming the JS is causing your problem, but in that case, why not get
rid of it and all other extraneous markup, leaving just the problem?
IAC, I see two JS errors in FF:

Security Error: Content at http://www.thedukestreetkings.com/ may not
load or link to
file:///Users/stin/Library/Preferences/Adobe/GoLive/Settings7/JScripts/GlobalScripts/CSScriptLib.js.

Error: newImage is not defined
Source File: http://www.thedukestreetkings.com/
Line: 65

> <csactiondict></csactiondict>
> <script type="text/javascript">
> <!--
> <!--

Two oddities for the price of one!

....

> <td>
> <div align="center"></div>
> <div align="center"></div>
> <div align="center"></div>
> <div align="center"></div>
> </td>

Bizarre.

....

> </html>

Your code has some validation errors, and while I think they won't cause
the problem you're seeing (I don't know what csscriptdict does), you
might get rid of the errors and make sure.

HTH. In the meantime, remain calm; somebody with IE7 will be along soon.


--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html

 

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

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