Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: HTML Scrollbar

  1. #1
    Join Date
    Apr 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTML Scrollbar

    I'm currently working on a school project in Dreamweaver and I'm fairly HTML/CSS/any programming language inept. I'm using tables (I know, I'm a horrible person), and I need a scrollbar in one of them. I've looked at several tutorials, several suggestions in this forum and others, and they haven't helped.

    I think part of the problem is that my navigation buttons run down the side of computer, and I want the text next to it. To do that, I simply put a table within a table. But now I have now idea what to do with the codes most people give me.

    Still, like I said, I'm fairly inept at web programming. If anyone could help me with this, I'd be very, very grateful.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Code:
     <table style="overflow: scroll">

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I'm fairly HTML/CSS/any programming language inept.
    HTML and CSS aren't programming languages

    There's really no need to use tables here, I think... it should be easy enough to do with CSS. One <div> down the side with the icons, floated left, and another, also floated left, with everything else.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    Yes, HTML and CSS are programming languages. So are JavaScript, Java, PHP, ASP, C, C+, C++, VBScript and Perl.
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    HTML is a markup language, and CSS is a stylesheet language. Neither is a programming language.

    VBScript and Javascript are (surprisingly) classified as scripting languages, although the boundary between programming languages and scripting languages is blurred: a scripting language is a programming language designed for rapid development. Perl and PHP (and Python too) are debatable for this reason, but I think most people would agree with me in defining them as scripting languages. C+ does not exist, and ASP is not a language of itself, but a technology by which the output from various languages can be embedded into HTML. The most common language used with ASP is VBScript.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Apr 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much for all your help, and sorry to have started a little fight... I can't believe I said "programming language" anyhow, since I'm in a class that talks about the differences between programming and markup languages.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It was a discussion, not a fight, and techno_race seems to have benefitted from it, so all is good.

    Back to the original topic, there isn't even a real temptation to use tables for this sort of layout. Some can get quite complex to do with CSS, but this isn't one of them. You can give any element a scrollbar by applying overflow: scroll; as pissa said, or you can use overflow: auto; to show scrollbars only when the content is large enough to require them.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    VBScript and Javascript are (surprisingly) classified as scripting languages, although the boundary between programming languages and scripting languages is blurred: a scripting language is a programming language designed for rapid development.
    Another way to define them is to consider dependency. Scripting languages usually depend upon a larger program; they are embedded in, or hosted by, something else.

    Mike

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hmm. I don't like that definition, since it's perfectly possible to find Java interpreters, which nevertheless doesn't make Java a scripting language, and likewise it's theoretically possible to build compilers for any of the many scripting languages in the wild today (thus I'm sure there are many, but I can't think of any off the top of my head), but again, that doesn't make them programming languages.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    but again, that doesn't make them programming languages.
    HTML, hence, hypertext markup-language.
    - Mike

Bookmarks

Posting Permissions

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