Results 1 to 5 of 5

Thread: Layout problem in IE

  1. #1
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Layout problem in IE

    Hi All,

    Iv been working on the following webpage

    http://www.etonuae.com/indextest.html

    Now it opens perfectly in Mozilla firefox and in Safari, problem is
    it opens really strangely in internet explorer.
    Someone please explain.

    Redice

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I suggest you validate your page. Correcting those errors will probably take care of the problem or at least make it clear what the trouble is. One thing that is confusing the heck out of IE is your frequent insertion into element tags of a quotation mark that doesn't belong. These errors will appear in the validator as:

    Error Line 48 column 38: an attribute specification must start with a name or name token.

    <td background="images/pix_2.jpg" "style="background-repeat:repeat-y; backgr

    An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).
    and similar. Here is how it looks in the HTML code, with the extra quote highlighted:

    Code:
    <td background="images/pix_2.jpg" "style="background-repeat:repeat-y; background-position:right ">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks alot.
    Let me get right onto that

    redice

  4. #4
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Done,

    Can now see the site better in explorer.
    I validated it once more i still get 51 errors mostly

    required attribute "ALT" not specified
    there is no attribute "BACKGROUND"

    Though these dont really seem to be like errors to me. Please
    correct me and explain to me what errors these are

    Redice

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, aside from the body tag, background is not an attribute, though many browsers recognize it as such. Where you have:

    Code:
    background="images/rep_top.jpg" style="background-repeat:repeat-x; background-position:top "
    and similar for many of your table cells, it could more properly be expressed and combined as:

    Code:
    style="background:url('images/rep_top.jpg') top repeat-x;"
    The thing about the alt attribute is simply a required convention for validation that all image tags have alt attributes. This is so that if the image is missing, the user can see some text to explain what should be there. This gets a little complicated because IE incorrectly uses the alt attribute as a tooltip in the absence of the optional title attribute. However you can fool the validator by using an empty alt attribute:

    Code:
    alt=""
    Or better still, use a descriptive alt attribute but, if you do not want the tooltip effect in IE, also include an empty title attribute.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •