Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  
    I have a site I am taking care of. I have designed an invoice with CSS. I have been using negative margin-top for placing elements. While the other margins seem to work, for margin-top it doesn't work. It just doesn't move. Using a code like this: (I just got rid of h2 and replaced it with heading2.

    <heading2 style="position: absolute; margin-left: -550px; margin-top: -700px; font-family: Tempus Sans ITC, Arial;">YB SEFORIM</heading2>

    If you have any ideas please let me know.
    • CommentAuthorIanBack
    • CommentTimeMar 10th 2010
     
    Absolutely positioned elements are only partially supported, and if you use negative margins you are likely to run into problems. Having said that, you may be able to do what you want by setting the CSS in a separate style (not in-line style) and defining left and top e.g.

    $html = '
    <style>
    .fixed {
    position: absolute;
    overflow: visible;
    left: 0;
    top: 0;
    margin-left: -550px;
    margin-top: -700px;
    font-family: Tempus Sans ITC, Arial;
    }
    </style>
    <div class="fixed">YB SEFORIM</div>
    ';