Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 4|回復: 0
打印 上一主題 下一主題

div overflowx hidden Another solution

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
跳轉到指定樓層
樓主
發表於 2023-12-27 12:47:26 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式

Ato the container div renders a scrollbar inside it. Heres the corresponding CSS code for my example div backgroundcolor lightblue border 1px solid black height 100px width 500px overflowx scroll p width 1000px margin 10px Want to flesh out a fancy horizontal scrolling element CSS Tricks Codeburst and UX Collective all offer detailed tutorials you can reference for building custom containers. How to Disable Horizontal Scrolling If you do not set the width of the child element within its parent div the contents of the child element will wrap around to the next line avoiding overflow. You can also set the overflowx CSS property to hidden which prevents child content from wrapping within its container but turns off sideways scrolling. is to set the width of child elements to 100. This tells the child content to wrap around to the next line to avoid.



Getting clipped by the container edge no matter the width of the container. p width 100 Scrolling Sideways For most of us vertical scrolling is a reflex it just makes more sense than its horizontal alternative. However horizontal Digital Marketing Service scrolling does have a place in modern web design. When implemented sparingly and intentionally this method can help structure your pages and present content in a useful manner. Ultimately youre designing for the average visitor so usability precedes any stylistic embellishment. If you have doubts about your horizontal scrolling elements test them with real.





Users not fellow designers. If feedback is negative dont hesitate to fall back on a different approach. Editors note This post was originally published in September 2020 and has been updated for comprehensiveness. Free UX Research Kit Templates 3 templates for conducting user tests summarizing your UX research and presenting your findings. User Testing Template UX Research Testing Report Template UX Research Presentation Template Download for Free Learn more Topics Use20 of the Best Interactive Websites How to Make Your Own Anna Fitzgerald Anna Fitzgerald Updated April 01 2022 Published June 10 2021 The best websites are designed.


回復

使用道具 舉報

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

本版積分規則

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

GMT+8, 2024-11-10 14:56 , Processed in 0.280378 second(s), 6 queries , File On.

抗攻擊 by GameHost X3.3

© 2001-2017 Comsenz Inc.

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