Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Posts
    405
    Thanks
    17
    Thanked 2 Times in 2 Posts

    centering on android tablet

    I've got a bit of css that is centering my content vertically and horizontally in web browsers, but the horizontal centering disappears when viewed on a samsung tablet, and sits flush left.

    here's what I've got so far:

    Code:
    #content {
    	display: block; 
    	height: 100%;
    	position:absolute;
    	width:100%;
    }
    	
    .container { 
    	width:974px; 
    	height:530px; 
    	margin:0px auto; 
    	border:0px solid #000; 
    	position:relative; 
    	top: 50%;
    	margin-top: -265px;
    
    }
    Last edited by turpentyne; 03-12-2013 at 07:53 PM.

  • #2
    Regular Coder
    Join Date
    Aug 2010
    Posts
    405
    Thanks
    17
    Thanked 2 Times in 2 Posts
    ack! can somebody move/ or show how to move this to another forum. I placed it here by accident.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •