Solved

Scrolling DIV

Posted on 2006-11-02
8
178 Views
Last Modified: 2010-04-09
Please take a look at this page
http://ca.geocities.com/malik_arefin@rogers.com/test/index_new.html

I am trying to separate the Month section (Jan, Feb, March) so it is the only
part that scrolls sideways not the whole page. Could someone please help
me figure this out.

Thanks
0
Comment
Question by:apparition
  • 5
  • 3
8 Comments
 
LVL 5

Author Comment

by:apparition
ID: 17858393
P.S. I dont want to use frames since all the data needs to be in the same form.
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17858458
The first thing that comes to mind is the following:


<div id="main" style="width: 800px;">
Here's the main body of the page


<div style="overflow: visible;">
Here's the stuff you want to scroll
</div>


</div>


It's clean, understandable, a perfect application of valid CSS applied to valid markup, and completely tanks in MSIE.  ::shrug:: We can't have everything.


(There may be a way of tricking MSIE into doing this; I don't know off the top of my head, but this may be a starting point.)
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17858488
Sorry, it would be nice if I thought a little before posting.  "overflow: scroll;" makes a whole lot more sense than "visible"
0
 
LVL 5

Author Comment

by:apparition
ID: 17858496
I need it to work in IE......plus It be helpful if someone could show me how modify my existing code to achieve this....

0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17858714
Here's what I'd recommend; I've tested this on Firefox 1.5 and MSIE 6.0.  I took out all the tables you were using for layout, which make it excessively painful to style, and replaced them with valid CSS.

<style type="text/css">
#header
, #managers {
      width: 900px;
}

#header {
background-color: white;
background-image: url(index_new_files/title.gif);
height: 45px;
background-repeat: no-repeat;
}

#managers {
background: #a5bec6;
text-align: right;
}

ul#views {
      float: right;
      clear: both;
      padding: 0;
      
}
ul#views li {
      list-style: none;
      float: left;
      border: 1px solid black;
      padding: 0;
      margin: 0;
      background: white;
}
ul#views li.active {
      background: gray;
}

</style>

</head>

<body>
<div id="managers">
      <select id="Select7" class="input1" disabled="disabled">
      <option selected="selected">Joe Smith</option>
      </select>
</div>

<div id="header"></div>


<ul id="views">
      <li><a class="link2" href="http://ca.geocities.com/malik_arefin@rogers.com/test/month.html">Monthly</a></li>
      <li class="active"><a class="link2" href="http://ca.geocities.com/malik_arefin@rogers.com/test/qtr.html">Qtrly</a></li>
</ul>

<br style="clear: both;" />


<table style="overflow: scroll;">

<!-- big scary table of data here -->

</table>
0
 
LVL 5

Author Comment

by:apparition
ID: 17859074
Thanks,

but I am not sure if this is going to accomplish what I want to do.

I want to split the main table so only the months section is scrollable but the other items to the left stay static.
0
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 250 total points
ID: 17859115
Ahhh; ok.  In that case I might suggest breaking it into two tables:

<table style="float: left;">
<!-- stuff you don't want to scroll.
</table>

<table style="float: left; overflow: scroll;">
<!-- stuff you do want to scroll -->
</table>

<br style="clear: both;" />
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17950193
If the B grade indicates you were hoping for more information I hope you'll ask!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now