Note that there are some explanatory texts on larger screens.

plurals
  1. POHorizontal scroll to anchor
    primarykey
    data
    text
    <p>I have a site that its horizontally navigated.</p> <p>here's the code:</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href="#box-1"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-2"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-3"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-4"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-5"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-6"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-7"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-8"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-9"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#box-10"&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="content"&gt; &lt;div id="box-1"&gt;&lt;/div&gt; &lt;div id="box-2"&gt;&lt;/div&gt; &lt;div id="box-3"&gt;&lt;/div&gt; &lt;div id="box-4"&gt;&lt;/div&gt; &lt;div id="box-5"&gt;&lt;/div&gt; &lt;div id="box-6"&gt;&lt;/div&gt; &lt;div id="box-7"&gt;&lt;/div&gt; &lt;div id="box-8"&gt;&lt;/div&gt; &lt;div id="box-9"&gt;&lt;/div&gt; &lt;div id="box-10"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Each box have 300px width. But when i click, if its visible in the resolution area it wont scroll to the box. What im trying to do is, if i click for example <code>&lt;a href="#box-3"&gt;</code> it'll bring me to the div <code>#box-3</code> but it'll be the first on the left and others div must be hidden. It only hides others div when the resolution is very little, it works perfectly, but if the resolution is very wide it wont work..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
 

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