title: Internal anchor in TYPO3 doesn't work
body: <p>Normally an internal anchor is defined with <code>&lt;a name="anchorname"&gt;Introduction&lt;/a&gt;</code>. If you link on to an anchor you write something like <code>&lt;a href="#anchorname"&gt;Top&lt;/a&gt;</code>.</p>
  
  <p>TYPO3 adds before each element an anchor like <code>&lt;a id="c118"&gt;&lt;/a&gt;</code>. So now I link with the RTE on a content element (tab: page). If I click on such a link <code>&lt;a class="internal-link" title="Some text" href="index.php?id=24#c118"&gt;Some text&lt;/a&gt;</code> nothing happens in FF 15.0.1.</p>
  
  <ul>
  <li>FF 15.0.1 - not working (does nothing)</li>
  <li>IE9 - not working (jumps but to wrong position)</li>
  <li>Safari 5.1.7 - works</li>
  <li>Opera 12.02 - not working (does nothing)</li>
  <li>Chrome 21 - works</li>
  </ul>
  
  <p>Are there any solutions to link to a content element on the same page in TYPO3? Is that outside the specification or a browser bug?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Now I put this into the main setup:</p>
  
  <pre><code>tt_content.stdWrap {
    dataWrap = |
    prepend &gt;
    prepend = COA
    prepend {
      10 = TEXT
      10.dataWrap = &lt;a id="c{field:uid}" name="c{field:uid}"&gt;&lt;!-- ANCHOR --&gt;&lt;/a&gt;
      10.if.isFalse.field = _LOCALIZED_UID
      20 = TEXT
      20.dataWrap = &lt;a id="c{field:_LOCALIZED_UID}" name="c{field:_LOCALIZED_UID}"&gt;&lt;!-- ANCHOR --&gt;&lt;/a&gt;
      20.if.isTrue.field = _LOCALIZED_UID
    }
    prefixComment = 1 | CONTENT ELEMENT,
  uid:{field:_LOCALIZED_UID//field:uid}/{field:CType}
  }
  </code></pre>
  
  <p>Now I have <code>&lt;a id="c118" name="c118"&gt;&lt;/a&gt;</code> anchors in the HTML code but FF still won't work ... Than I found out if I disable all styles (CSS), than the anchors work in FF. Why that?</p>
  
  <p><strong>Solution:</strong></p>
  
  <p>The following lines were the problem:</p>
  
  <pre><code>.gallery {
    /* Weird anchor link bug in browsers if activated 
    position:relative;
    float:left;
    */
    width:753px;
    margin-bottom:25px;
  }
  </code></pre>
  
  <p>Remains the question why this causes problems ...</p>