Computer HardwareXbox GamesGameCubePlaystation 2PSOnePC/Windows GamesGameboy AdvanceDreamcastNintendo 64Gameboy ColorNintendo DSSony PSPXbox 360Nintendo Wii GamesPS3 Games

Neoseeker Forums » Programming and Design » HTML/CSS & NeoHome Help » How To

Moderated by: Chiggins
REPLY TO THIS THREAD   START NEW THREAD
| Sharemore
Options: Print   subscribe   remove   PM this thread to a friendNeoPM  
subscribe to thread Topic: How To
FusionWeapons
Im Back...
Hooked on Neo



FusionWeapons' profileEmail FusionWeaponsNeoPM FusionWeapons
since: Jul 2007
Nov 01, 08 at 4:15pm
How To

How do you put two scroll bars beside each other.



-------------------
Currently Playing: Final Fantasy Tactics [Playstation 1]
quote   quick quote   edit   quick edit   del  searchposts in thread  report
Artificer
Nov 01, 08 at 4:20pm
re: How To

While it's possible, it would help if you share what you want to do that requires multiple side-by-side scrollbars. I only ask because it's a bit unusual.



-------------------
100% of innovation—from business to politics—is inspired not by "market analysis" but by people who are supremely pissed off by the way things are.

Tom Peters
quote   quick quote   edit   quick edit   del  searchposts in thread  report
FusionWeapons
Im Back...
Hooked on Neo



FusionWeapons' profileEmail FusionWeaponsNeoPM FusionWeapons
since: Jul 2007
Nov 01, 08 at 4:23pm
re: How To

Well it is going to be a part of my About Me section. And my About Me section is going to have Sub Sections. Basically it is going to look similiar to Gray Shadows About me section.


-------------------
Currently Playing: Final Fantasy Tactics [Playstation 1]
quote   quick quote   edit   quick edit   del  searchposts in thread  report
Artificer
Nov 01, 08 at 6:37pm
re: How To

OK, I see what you're saying. You want to have multiple scrollboxes next to each other, right?

The first step is to make a scrollbox itself, which you can do like this:

code
<div style="overflow: auto; height: 300px; width: 150px;">
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
</div>


The only thing special about this <div> element is that it has an explicit height and width, which determines how big the scrollbox area is, and a special attribute called "overflow" set to "auto", which tells the browser to put the content in a scrollbox if the content overflows the predefined area (150x300).

You can also achieve this using CSS to refactor your styling information:

code
<style type="text/css">
div.scrollbox {
    overflow: auto;
    height: 300px;
    width: 150px;
}
</style>
<div class="scrollbox">
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
  <p>Content Here</p>
</div>


Now that we have one scrollbox, we need to make multiple that exist side-by-side. To do that, we have two options: 1) use a table or 2) use divs to emulate the table layout. It's actually much easier to do the table here, especially if you want to center it.

code
<style type="text/css">
.center {
  margin: 0px auto;
}
div.scrollbox {
  overflow: auto;
  height: 300px;
  width: 150px;
}
</style>

<table class="center">
  <tr>
    <td>
      <div class="scrollbox">
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
      </div>
    </td>
    <td>
      <div class="scrollbox">
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
      </div>
    </td>
    <td>
      <div class="scrollbox">
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
        <p>Content Here</p>
      </div>
    </td>
  </tr>
</table>


Hope this helps.

[size=1][color=#666666]This message was edited by Artificer on Nov 02 2008.


-------------------
100% of innovation—from business to politics—is inspired not by "market analysis" but by people who are supremely pissed off by the way things are.

Tom Peters
quote   quick quote   edit   quick edit   del  searchposts in thread  report
FusionWeapons
Im Back...
Hooked on Neo



FusionWeapons' profileEmail FusionWeaponsNeoPM FusionWeapons
since: Jul 2007
Nov 02, 08 at 3:04pm
re: How To

Thanks I also found another way I can do it using Tables. But ill try your way.

Also I have one more question. I understand how to make a Navbar but I do not get how and where you put your information in it. I know this is a dumb question.


-------------------
Currently Playing: Final Fantasy Tactics [Playstation 1]
quote   quick quote   edit   quick edit   del  searchposts in thread  report
[All dates in (PT) time]Threads List   « Next Newest   Next Oldest »
REPLY TO THIS THREAD   START NEW THREAD


search:
search posts by username:
Neoseeker Forums » Programming and Design » HTML/CSS & NeoHome Help » How To



Jump to another forum:

Powered by neoforums v0.9.8b (equilibrium)
Copyright Neo Era Media, Inc. 1999-2010

neoseeker forum community
Neoseeker.com   |   Forum Rules   |   Forum FAQ   |   Neoseeker Terms of Use   |   Supermods On Duty [ server id: nova ··· elapsed: 0.0895299911]
Affiliated sites:   GameGrep - Football Manager Wiki - Halo Wiki - MGS Wiki - GTA Wiki - Smackdown Wiki - Zelda Wiki - PS2seeker - Xbox seeker - DEVPEN - GFXcess