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. Panel with Sroll

Panel with Sroll

Scheduled Pinned Locked Moved ASP.NET
sysadmin
5 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.
  • M Offline
    M Offline
    maro18
    wrote on last edited by
    #1

    Hi All, i have a panel (server control)with a specify height , it extends in the web page when the content r large. Is there any solution so that the height wont increase & show the scrollbar.:confused: Thanks

    A 1 Reply Last reply
    0
    • M maro18

      Hi All, i have a panel (server control)with a specify height , it extends in the web page when the content r large. Is there any solution so that the height wont increase & show the scrollbar.:confused: Thanks

      A Offline
      A Offline
      Andrew Quinn AUS
      wrote on last edited by
      #2

      Hi there, You can use the overflow-y CSS property, e.g.

      Label l = new Label();
      l.Text = "This panel contains a label control which has a large amount of text. Text that does not fit will be clipped and hidden.";
      Panel1.Style\["overflow-y"\] = "hidden";
      Panel1.Controls.Add(l);
      

      Hope this helps, Andy

      M 1 Reply Last reply
      0
      • A Andrew Quinn AUS

        Hi there, You can use the overflow-y CSS property, e.g.

        Label l = new Label();
        l.Text = "This panel contains a label control which has a large amount of text. Text that does not fit will be clipped and hidden.";
        Panel1.Style\["overflow-y"\] = "hidden";
        Panel1.Controls.Add(l);
        

        Hope this helps, Andy

        M Offline
        M Offline
        maro18
        wrote on last edited by
        #3

        Thx Andy for ur reply the panel doesent extend but the rest of the panel content doesent appear, is there anyway that the panel have a scrollbar so all the content could appear by scrolling???

        A 1 Reply Last reply
        0
        • M maro18

          Thx Andy for ur reply the panel doesent extend but the rest of the panel content doesent appear, is there anyway that the panel have a scrollbar so all the content could appear by scrolling???

          A Offline
          A Offline
          Andrew Quinn AUS
          wrote on last edited by
          #4

          Hi, Yes - rather than setting to "hidden", try setting it to "auto" As well as affecting the Y-axis, you can use overflow-x to change the horizontal behaviour. Or you can use overflow to change both horizontal and vertical. Here's the link to MSDN if you want more info. Hope this helps, Andy

          M 1 Reply Last reply
          0
          • A Andrew Quinn AUS

            Hi, Yes - rather than setting to "hidden", try setting it to "auto" As well as affecting the Y-axis, you can use overflow-x to change the horizontal behaviour. Or you can use overflow to change both horizontal and vertical. Here's the link to MSDN if you want more info. Hope this helps, Andy

            M Offline
            M Offline
            maro18
            wrote on last edited by
            #5

            Thx Andy:) Thats Really Help maro

            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