Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. overflow:auto

overflow:auto

Scheduled Pinned Locked Moved ASP.NET
cssquestion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paul Unsworth
    wrote on last edited by
    #1

    Hi Guys I have a list of items that span the width of their parent div, and they have left and right aligned text. I have put this list into it's own div which CSS is set to overflow:auto. This works great apart from one minor detail... When the scroll bars appear, the vertiacal one hides the right most text. Is there a way to combat this? I don't want to change the width as the page is going to be viewable accross many resolutions, and the list items line up nicely with other parts of the page. Thanks :-D

    oooo, the Jedi's will feel this one....

    D 1 Reply Last reply
    0
    • P Paul Unsworth

      Hi Guys I have a list of items that span the width of their parent div, and they have left and right aligned text. I have put this list into it's own div which CSS is set to overflow:auto. This works great apart from one minor detail... When the scroll bars appear, the vertiacal one hides the right most text. Is there a way to combat this? I don't want to change the width as the page is going to be viewable accross many resolutions, and the list items line up nicely with other parts of the page. Thanks :-D

      oooo, the Jedi's will feel this one....

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      Can't you simply reduce the width of the list box to leave space on the right to accommodate the vertical scroll??

      P 1 Reply Last reply
      0
      • D Dinesh Mani

        Can't you simply reduce the width of the list box to leave space on the right to accommodate the vertical scroll??

        P Offline
        P Offline
        Paul Unsworth
        wrote on last edited by
        #3

        Thanks for you reply, The thing is, I don't want to fix the width or the list box so that it looks pretty much the same accross different resolutions. I did try messing about with the width as a percentage, but that makes it look funny when the browser isn't full screen... Do you know of a way without fixing the width? I could do that, but only as a last resort. Cheers, :-D

        oooo, the Jedi's will feel this one....

        D 1 Reply Last reply
        0
        • P Paul Unsworth

          Thanks for you reply, The thing is, I don't want to fix the width or the list box so that it looks pretty much the same accross different resolutions. I did try messing about with the width as a percentage, but that makes it look funny when the browser isn't full screen... Do you know of a way without fixing the width? I could do that, but only as a last resort. Cheers, :-D

          oooo, the Jedi's will feel this one....

          D Offline
          D Offline
          Dinesh Mani
          wrote on last edited by
          #4

          I'm not able to think of any other way to do it.

          P 1 Reply Last reply
          0
          • D Dinesh Mani

            I'm not able to think of any other way to do it.

            P Offline
            P Offline
            Paul Unsworth
            wrote on last edited by
            #5

            Thanks anyway... Just so you know, after much playing around, I have kind of solved the right aligned stuff by applying padding. This does make it look slightly odd when the scroll bars are not visible, but it's working better than the fixed width option. Thank you for you time. :-D

            oooo, the Jedi's will feel this one....

            D 1 Reply Last reply
            0
            • P Paul Unsworth

              Thanks anyway... Just so you know, after much playing around, I have kind of solved the right aligned stuff by applying padding. This does make it look slightly odd when the scroll bars are not visible, but it's working better than the fixed width option. Thank you for you time. :-D

              oooo, the Jedi's will feel this one....

              D Offline
              D Offline
              Dinesh Mani
              wrote on last edited by
              #6

              You were able to do it with padding? I tried with padding and margins before my previous reply, but was not able to achieve it. :omg:

              P 1 Reply Last reply
              0
              • D Dinesh Mani

                You were able to do it with padding? I tried with padding and margins before my previous reply, but was not able to achieve it. :omg:

                P Offline
                P Offline
                Paul Unsworth
                wrote on last edited by
                #7

                Yip... The right aligned items were already in their own div with their own CSS class, so I stuck padding-right:20px; into the class, and it appears to be working nicely. Like I said though, this does mean that when the scroll bars are hidden, the right aligned text looks quite a distance from the edge, but I feel thats a small price to pay. :-D

                oooo, the Jedi's will feel this one....

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups