+ Reply to Thread
Results 1 to 4 of 4

Thread: Web Design

  1. #1
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Web Design

    I am trying to write a website and always found teh vertical scrollbars on the left intriguing but I can't seem to figure out how to get those, what they do is, they scroll the text inside of it instead of the whole page, anybody have any ideas on how I would do that?

  2. #2
    exemption is offline x10Hosting Member exemption is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    66

    Re: Web Design

    Code:
    <STYLE type="text/css">
    <!--
    BODY
    {
    scrollbar-face-color: #800000;
    scrollbar-highlight-color: #CDC9C9;
    scrollbar-3dlight-color: #CDB7B5;
    scrollbar-darkshadow-color: #FFCCCC;
    scrollbar-shadow-color: #FF4500;
    scrollbar-arrow-color: #C76114;
    scrollbar-track-color: #E38217 ;
    }
    -->
    </STYLE>
    Thats the code for the scroll bar..
    Use the gif file attached to see what is what..
    ;)
    Attached Thumbnails Attached Thumbnails Web Design-scroll-bar-details.gif  
    Last edited by exemption; 10-21-2008 at 12:33 PM.


    I program PHP..so if you need help lemme know!


  3. #3
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Web Design

    exemption has showed you how to style the scroll bars, where I will now show you how to create the scrollbar themselves!

    The first thing that you need to do is to create a page that is going to hold all the text that you want to scroll through. For examples sake lets name it page1.html

    You now need to insert something called an iFrame. These are known as floating frames.

    Basically, all you need to insert into your webpage is the following piece of code:

    Code:
    <iframe name="iframe" src="page1.html" width="300px" height="300px"></iframe>
    You can also load other pages from within the page by adding:

    Code:
    <a href="http://forums.x10hosting.com/graphics-webdesign/page2.html" target="iframe">click here to load page 2</a>
    Notice the target part of the link code. That tells the web page to direct the page into the iframe, which we named iframe!
    Last edited by Zenax; 10-22-2008 at 05:33 AM.
    Regards,
    Zenax

  4. #4
    hexusff is offline x10Hosting Member hexusff is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    9

    Re: Web Design

    Personally I don't like iframes, another way to get those scrollbars are just divs with some styling.
    PHP Code:
    <style type="text/css">
    .
    DivWithScrollbar
    {
        
    height:50px;
        
    background-color:#DFF;
        
    overflow:auto;
    }
    </
    style>
    <
    div class="DivWithScrollbar">
    this is the div content<br />
    this is the div content<br />
    this is the div content<br />
    this is the div content<br />
    this is the div content<br />
    </
    div

+ Reply to Thread

Similar Threads

  1. Design for Web Developers guide (Ebook)
    By Veivei in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 08-24-2008, 09:53 PM
  2. Sohail's Web2.0 Design Shop
    By Sohail in forum The Marketplace
    Replies: 21
    Last Post: 04-30-2008, 08:11 PM
  3. Custom Graphics Design
    By X3r0X in forum Graphics & Webdesign
    Replies: 48
    Last Post: 09-04-2005, 08:25 AM
  4. Network design - need help !
    By ked in forum Off Topic
    Replies: 4
    Last Post: 05-03-2005, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers