Using media query and some of my css classes won't move?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • csmoses
    New Member
    • Sep 2014
    • 2

    Using media query and some of my css classes won't move?

    I am making a responsive site sandbox.mercomc orp.com
    Code:
    @media screen and (device-width:800px) and (orientation:landscape)
      {
           html, body {
          background:white!important;
      }
          
         .container
            {
              height:100%;
              width:100%;
              text-align:center;
              background-color:white;
                display:inline-block;
              
            }
          .square
          {
             margin:auto;
              width:10.5em!important;
              text-align:center;
              display:inline-block;
          
            }
            
      
               a.linktext1
            {
              position: absolute !important;
               top: -9999px !important;
               left: -9999px !important;
            }
             
            a.linktext
            {
              color:#464646 ; font-size:18px;
            }
            
            a.linktext2
            {
              color:#464646 ; font-size:18px;
            }
            .socialicons
            {
                z-index:2;
                position:absolute!important;
                top:150px!important;
            }
           #block-172
           {
                position: absolute !important;
               top: -9999px !important;
               left: -9999px !important;
           }
    }
    Is my css I am trying to pull up .socialicons but it is not moving.
    Last edited by Rabbit; Sep 9 '14, 11:13 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Hi csmoses:

    top:150px!impor tant;

    You need to set either margin or padding to make the icon move down.

    _damon

    Comment

    Working...