How to Do This?

Discussion in 'PHP' started by philosophy.Fool, Nov 13, 2008.

  1. #1
    Hey DP Members :)

    I wanted to know how I can make the columns in wordpress expandable depending on one's screen resolution.

    Do I edit it in the css?

    Or in the index? Or where?

    Any help is appreciated.
     
    philosophy.Fool, Nov 13, 2008 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    its either you use html <table>
    or css containers.. but i prefer more on the html <table>, just to minimize cross browsing bugs in design
     
    bartolay13, Nov 13, 2008 IP
  3. philosophy.Fool

    philosophy.Fool Banned

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the reply :)

    So I have ID'ed my css container and when I enter the width as auto it still doesn't automatically expand.

    Any clues?
     
    philosophy.Fool, Nov 13, 2008 IP
  4. elias_sorensen

    elias_sorensen Well-Known Member

    Messages:
    852
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #4
    
    #yourid {
    width: 100%;
    }
    
    Code (markup):
     
    elias_sorensen, Nov 14, 2008 IP
  5. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #5
    use percentage...

    table width="80%" etcc...
     
    bartolay13, Nov 14, 2008 IP
  6. sterex

    sterex Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    While learning how to use floating layouts (layouts that size themselves to the user's screen resolution), don't edit an existing CSS style. 'Cause all the items in the stylesheet would be inter-related and would behave differently.

    Try to get the hang of it by making a small layout of your own. Once you know what to do, then edit the CSS you need.

    Using the %age values is the right thing. However, your main container must also be in %age and you can have the child containers as auto. I suggest you do some trial and error changes.
     
    sterex, Nov 14, 2008 IP