Note that there are some explanatory texts on larger screens.

plurals
  1. POVertical Parent and horizontal child?
    primarykey
    data
    text
    <p>I've seen a few examples pertaining to the unification of container elements with selective scrolling capabilities, but none of them are really what I am looking for.</p> <p>Basically I am working with SharePoint and trying to modify the seattle masterpage to handle content of unknown size across a responsive web design. One example would be a large data table.</p> <p>I decided the best option would be to have a fixed width of the content with a scroll effect across the x-axis, while the actual page section will handle vertical scrolling. This way my header and footer are unaffected by the horizontal shifting and I don't get any odd whitespace popping up.</p> <p>Example: <a href="http://jsfiddle.net/lazyhermit/4F9Pb/" rel="nofollow">JsFiddle.net</a></p> <pre><code>&lt;div id='s4-workspace'&gt; &lt;div id='contentBox'&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;div class='content'&gt;&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div class='content'&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;div class='content'&gt;&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div class='content'&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>But a problem occurs when interacting with a touch screen: I can't scroll up or down when interacting inside the content container unless I use two fingers to scroll.</p> <p><strong>So just to reiterate</strong>: on the seattle master page, I want the content(#contentBox) to take care of overflow-x, while the page(#s4-workspace) will handle overflow-y. And I want the page to scroll while I am interacting with the content without resorting to using two fingers with working on a touchscreen device. </p> <p>Anyone had this situation and can lead me in the right path?</p> <p>Thank you in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload