Horizontal scrollbar wont appear :(

Discussion in 'CSS' started by News Updates, Mar 18, 2012.

  1. #1
    friends I'm making a wp theme.

    I've width no width, neither in %age nor in pixels. so its fluid.

    the problem is that when content goes bigger in width the horizontal scrollbar wont appear even through I've set overflow-x to scroll.

    I want the scroll to appear. Please let me know what could be the problem.


    solution:
    just tried and found that we must have to add the width somewhere for content

    so I left the header with no width and made a div for content with fixed width like the example below

     
    Last edited: Mar 18, 2012
    News Updates, Mar 18, 2012 IP
  2. steve0

    steve0 Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    you could also do width:101% to show the scroll bar permanently.
     
    steve0, Oct 17, 2012 IP
  3. tommy2912

    tommy2912 Peon

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thats a very bad idea.
     
    tommy2912, Nov 30, 2012 IP
  4. hasanoben

    hasanoben Active Member

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    90
    #4
    <div style="margin:auto;width:1200px;overflow-x:scoll;>
    content
    </div>


    here in the code you wrote scoll, not scroll.. maybe that's the problem?
     
    hasanoben, Dec 2, 2012 IP