SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2006
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy I Have A Very Weird Problem

    Hey guys,

    I have this problem going on with my design. It is driving me nuts because I have no idea what is causing. I have some div tags and a line of text. It looks like this

    <div class="content">
    <div class="sectioncontent">
    <div class="header" align="right">
    <span class="sectionheader">This Is The Header</span>
    </div>
    </div>
    </div>

    Now, this problem is only occuring in IE, not Firefox or Netscape, but this is what is happening. Quite simply, in IE it is repeating the line of text "this is the header" below the content div... so I have two lines of text on the page that say "this is the header" ... but its only in my code once... Now if I delete the line of text, the div goes crazy and is placed out of order... for the div to be placed properly, it needs to have content in the header div. But then it repeats the content, which in this case is text... and once again, if I delete the content, the div goes out of order... also, my div is aligned and positioned with css, using margins.

  2. #2
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    haslayout problems of IE, see FAQ CSS
    http://www.sitepoint.com/forums/show...9&postcount=24

  3. #3
    SitePoint Addict
    Join Date
    Feb 2006
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you all4nerds...

    I found a page that talks about this problem in detail. Quite simply, my HTML comments were causing this bug. I have to use conditional comments to rid the problem

    http://www.positioniseverything.net/...haracters.html


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
  •