CSS margin % + px

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CSS margin % + px

    I want to position a div class with left margin 10% + 225px.
    I tried with this
    Code:
    div.main1
    {
    position:absolute;
    left:10% + 225px;
    top:200px;
    z-index:-1;
    width:90%;
    }
    But there is no left margin in the result.
    Then i tried with 2 div
    Code:
    div.nextmainmenu
    {
    position:absolute;
    top:200px;
    left:10%;
    }
    div.nextmainmenu1
    {
    position:absolute;
    
    left:225px;
    }
    Is there any other way to do this with in 1 div?
    Last edited by athora; 27.08.11, 03:23.

    #2
    Try
    Code:
    body
    {
    margin-left:10%;
    }
    libra.wen.ru

    Comment


      #3
      i want margin with 10% plus 225px

      Comment


        #4
        bro, try set like this:
        margin:10%;
        margin-left:225px;

        Comment

        Working...
        X