CSS/ HTML problems, help appreciated

Discussion in 'Programming' started by easydolla, Dec 3, 2008.

  1. #1
    Hi,


    I am trying to put up a new adspot on my side, in order to do so I need to modify the html in the template (smart TPL) files and the css

    I am trying to make a div ID for this ad spot in the css, here is what I got :

    #leftad{margin:0;padding:0;width:120px;text-align:center;float:left}#leftad span{margin:0;padding:3px;display:block;color:#aeaeae}
    Code (markup):
    and for the html code for the tpl file

    </div>
            <div id="leftad" >
    		<span>{$lang0}</span>
            {insert name=get_advertisement value=var AID="7"}
    Code (markup):

    So now for my problem :

    When I put the code in, it works, it does what its supposed to to, but it pushes everything down to the bottom (recently/ featured videos)

    so it is getting in the way oh the main content of the page

    is there anyway around this?

    PLEASE REPLY IF YOUR READING THIS!

    Thanks :)
     
    easydolla, Dec 3, 2008 IP