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 4 of 4
  1. #1
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post

    3 column layout, center column padding

    On the middle column here:

    http://www.lonelylizard.com/~eli/index2.php

    how do i make it so that it has the same spacing on the right of the center column as it does on the left. If i make it 100% it pops down below. It needs to be a percent because the page is fluid.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It can still be fluid even if the middle column isn't in a percent. Check out this example.

  • #3
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post
    ok...but still...i would like a percent. Do you know why this isn't working and how to fix it?

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Code:
    div.center
    {
    	margin: 0 120px 0 150px;
        padding:10px;
    	text-align: center;
    }
    Your right column was only 120px wide not 150px. Next time read the examples they help you know.


  •  

    Posting Permissions

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