0
      <span class="a" dojoAttachPoint="apoint"></span>  
      <span class="b"   dojoAttachPoint="bpoint">hyperlinked msg</span>
      <span class="c" dojoAttachPoint="cpoint"></span>
      <div>Hello</div>

css:

      .a, .b, .c{
            float:left
      }

Now when i am selecting the hyperlinked message, it is also selecting the next div's text 'Hello'.To avoid this problem I changed the code to

      <div>Hello</div>
      <span class="a" dojoAttachPoint="apoint"></span>  
      <span class="b"   dojoAttachPoint="bpoint">hyperlinked msg</span>
      <span class="c" dojoAttachPoint="cpoint"></span>

And this solved the problem.Can anyone please provide an explanantion as to how this problem got solved?

  • 1
    You need to clear your floats, read my answers [here](http://stackoverflow.com/questions/12871710/why-clear-both-css/12871734#12871734) and [here](http://stackoverflow.com/a/16568504/1542290) – Mr. Alien Oct 25 '13 at 08:28

1 Answers1

0

you forget your flux :

<span class="a" dojoAttachPoint="apoint"></span>  
<span class="b"   dojoAttachPoint="bpoint">hyperlinked msg</span>
<span class="c" dojoAttachPoint="cpoint"></span>
<div style="clear:both"></div>
<div>Hello</div>

CSS

.a, .b, .c{
            float:left
      }

faq clear

ColoO
  • 813
  • 5
  • 14