www.webdeveloper.com
Results 1 to 5 of 5

Thread: Adding a scroll bar to a snipt.net imbed

  1. #1
    Join Date
    Apr 2014
    Posts
    4

    Adding a scroll bar to a snipt.net imbed

    Hi there!

    New to web developing, I've been using a wordpress site. I'm using the Code Embed plugin to display Snipts of code on certain pages but I'd like to have a scroll bar instead of having them take up the whole page.

    I've tried adding the div style overflow but to no success. Any tips for a rookie?

  2. #2
    Join Date
    Apr 2014
    Posts
    4
    Ahh, nevermind I figured it out right after posting this thread. Feel free to delete.

  3. #3
    Join Date
    Apr 2014
    Posts
    4
    Nope, nevermind I can set the width but not the height, and the scroll bars appear but aren't working.

    Here's what I'm using

    <div style="height: 150x; width: 250px; overflow-x: scroll; overflow-y: scroll;">%CODE600%</div>

  4. #4
    Join Date
    Mar 2005
    Location
    Behind you...
    Posts
    1,033
    I'm not sure if this was a typo or not, but you are missing the 'p' in your height units.
    Code:
    <div style="height: 150px; width: 250px; overflow-x: scroll; overflow-y: scroll;">%CODE600%</div>

  5. #5
    Join Date
    Apr 2014
    Posts
    4
    HA! I'm such a dummy. That was it! Thanks so much!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles