Why   code not working

Discussion in 'HTML & Website Design' started by dglas, Feb 25, 2009.

  1. #1
    I have a blogger blog and beside the sidebar, I inserted a html gadget for adsense codes. And because the ads automatically appear on the left sidebar, I inserted the   to create space and move it further close to the middle. I used to work fine but lately I notice that the ads will appear at the left area even though there's &nbsp.

    I'm using firefox for viewing or is there something wrong with the way the codes are inserted?


     
    dglas, Feb 25, 2009 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,956
    Likes Received:
    4,565
    Best Answers:
    124
    Trophy Points:
    665
    #2
    Take a look with firebug, chances are theres a style putting the javascript in a specific location - and you should be using a div with a style to move the gadget over too. Much better than a space.
     
    sarahk, Feb 25, 2009 IP
  3. xira

    xira Active Member

    Messages:
    315
    Likes Received:
    8
    Best Answers:
    4
    Trophy Points:
    68
    #3
    Since its Javascript, the $nbsp; should work. But if your CSS is conflicting with allocated space, it will be ignored and pushed around. In general, using the spaces is best avoided. CSS can move things around much more effectively.
     
    xira, Feb 26, 2009 IP
  4. dglas

    dglas Peon

    Messages:
    313
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry, I really appreciate your reply. But I don't really get what you mean. Can you please help to rephrase the sentence? I'm a noob in this :D

    Any particular html code to use??
     
    dglas, Feb 26, 2009 IP