Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 12|回復: 0

Horizontal scrolling on patagonia

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2023-12-27 12:46:52 | 顯示全部樓層 |閱讀模式
Acontent stream. 4. Make the horizontal scroll option visually apparent. Be sure to minimize the chance of visitors missing your content by signaling that horizontal scrolling is possible. In addition to button indicators like arrows you might set your scrolling containers such that a horizontal scrollbar appears on mouseover. Or try showing a sliver of hidden content in your scrollable container. Ecommerce sites like Patagonia do this for product listings notice the product thumbnails poking out on both sides of the display container.com Image Source Lastly instructional text like Scroll for more also works. Try all of these implementations in your prototyping and testing.

Create Horizontal Scrolling Containers in HTML and CSS When an HTML element lets say a div contains content that exceeds its boundaries this is called overflow. For example in a standard web page all content below the fold is overflow in the browser window. To enable horizontal scrolling we can use the CSS property overflowx. If we assign the value scroll to the Digital Marketing Service overflowx property of the container element the browser will hide horizontally overflowing content and make it accessible via horizontal scrolling. For this to work the widths of both the container element and child element the element in the container must be specified. a text box with horizontal scrolling enabled Lets break down this method into more detail below. Step 1 Use HTML to create the container. In this example Ive created a div container element with a width of 500 pixels. Inside this div.




Container is a p child element with a set width of 1000 pixels. Since the width of p exceeds the width of div the text overflows to the right of the container. Heres the HTML code for my example as shown above DOCTYPE html html head body div p Your text goes here. Also you can place other elements within this parent div. p div body html Step 2 Use CSS to specify a set width for the container and apply scroll behavior. Setting overflowx scroll.

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|GameHost抗攻擊論壇

GMT+8, 2025-4-22 10:04 , Processed in 0.030467 second(s), 18 queries .

抗攻擊 by GameHost X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |