並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 46件

新着順 人気順

css margin padding examplesの検索結果1 - 40 件 / 46件

  • View Source

    · About · Changelog URL: Fetched 1.23 KB in 0.304554 seconds Don’t wrap lines · Tidy markup <!doctype html> <html> <head> <title>Example Domain</title> <meta charset="utf-8" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style type="text/css"> body { background-color: #f0f0f2; margin: 0; padding: 0; f

    • Modern CSS For Dynamic Component-Based Architecture | Modern CSS Solutions

      Modern CSS For Dynamic Component-Based Architecture Updated on: Apr 24, 2024 Written by Stephanie Eckles The language of CSS has had an explosion of new features and improvements in the last few years. As a result, feature parity between browsers is at an all-time high, and efforts are being made to continue releasing features consistently and synchronously among evergreen browsers. Today, we will

        Modern CSS For Dynamic Component-Based Architecture | Modern CSS Solutions
      • ぼくのMac環境 ver.のんピ | DevelopersIO

        何年後かの自分へ こんにちは、のんピ(@non____97)です。 業務で使用する新しいMacが届きました。 新しいMacを初期セットアップするにあたって「今の設定どうだったっけ...」と調べる時間が結構かかってしまいました ということで何年後かの自分がまた新しいMacに乗り換える際に手間取らないように、設定した内容を書き記しておきます。 移行先のMacの情報は以下の通りです。M1 Max、嬉しい。 # OSのバージョンの確認 > sw_vers ProductName: macOS ProductVersion: 12.4 BuildVersion: 21F79 # カーネルのバージョン確認 > uname -r 21.5.0 # CPUのアーキテクチャの確認 > uname -m arm64 # CPUの詳細確認 > sysctl -a machdep.cpu machdep.cpu.

          ぼくのMac環境 ver.のんピ | DevelopersIO
        • Bootstrap 5

          The Bootstrap Blog News and announcements for all things Bootstrap, including new releases, Bootstrap Themes, and Bootstrap Icons. Bootstrap 5 has officially landed! After three alphas, three betas, and several months of hard work, we’re shipping the first stable release of our new major version. It’s been a wild ride made possible by our maintainers and the amazing community that uses and contrib

            Bootstrap 5
          • WebKit Features in Safari 16.4

            Mar 27, 2023 by Patrick Angle, Marcos Caceres, Razvan Caliman, Jon Davis, Brady Eidson, Timothy Hatcher, Ryosuke Niwa, and Jen Simmons ContentsWeb Push on iOS and iPadOSImprovements for Web AppsWeb ComponentsCSSHTMLJavaScript and WebAssemblyWeb APIImages, Video, and AudioWKWebViewDeveloper ToolingWeb InspectorSafari Web ExtensionsSafari Content BlockersNew Restrictions in Lockdown ModeMore Improve

              WebKit Features in Safari 16.4
            • Defensive CSS

              I spent years teaching CSS layout on this blog. I put everything I know into The Layout Maestro course: 70+ lessons and 150+ interactive examples that teach you how to think CSS layouts, not just memorize syntax. 👋 This article has been expanded into a new project called Defensive CSS. Due to the fact that the content here will not be updated, I recommend you to read defensivecss.dev instead. Oft

                Defensive CSS
              • Reimagine Atomic CSS

                [[toc]] This post will be a bit longer than usual. It's quite a big announcement to me, and there are many things I want to talk about. I'll be appreciated if you take the time to read through it. The table of contents is hidden on the left if you are on a desktop. Hope you enjoy :) 中文 Chinese Version What is Atomic CSS? Let's first give a proper definition to Atomic CSS: From this article by John

                  Reimagine Atomic CSS
                • 2025: The year in LLMs

                  31st December 2025 This is the third in my annual series reviewing everything that happened in the LLM space over the past 12 months. For previous years see Stuff we figured out about AI in 2023 and Things we learned about LLMs in 2024. It’s been a year filled with a lot of different trends. The year of “reasoning” The year of agents The year of coding agents and Claude Code The year of LLMs on th

                    2025: The year in LLMs
                  • Less Absolute Positioning With Modern CSS

                    I spent years teaching CSS layout on this blog. I put everything I know into The Layout Maestro course: 70+ lessons and 150+ interactive examples that teach you how to think CSS layouts, not just memorize syntax. Each time I work on a component that needs absolute positioning, I ask myself: is it really necessary? I started to notice a few use-cases where using position: absolute isn’t needed. I f

                      Less Absolute Positioning With Modern CSS
                    • CSS :has Parent Selector

                      Do you want to master CSS layouts? I'm building a new course. Learn more Have you ever thought about a CSS selector where you check if a specific element exists within a parent? For example, if a card component has a thumbnail, we need to add display: flex to it. This hasn’t been possible in CSS but now we will have a new selector, the CSS :has which will help us to select the parent of a specific

                        CSS :has Parent Selector
                      • A Guide To CSS Debugging — Smashing Magazine

                        Debugging in CSS means figuring out what might be the problem when you have unexpected layout results. Today, Stephanie Eckles will look at a few categories bugs often fit into, see how you can evaluate the situation, and explore techniques that help prevent these bugs. We’ve all been there, at the end of completing CSS for a layout and — what’s that? Ah! An extra scrollbar! Or maybe an element is

                          A Guide To CSS Debugging — Smashing Magazine
                        • Cascade Layers Guide | CSS-Tricks

                          This is your complete guide to CSS cascade layers, a CSS feature that allows us to define explicit contained layers of specificity, so that we have full control over which styles take priority in a project without relying on specificity hacks or !important. This guide is intended to help you fully understand what cascade layers are for, how and why you might choose to use them, the current levels

                            Cascade Layers Guide | CSS-Tricks
                          • CSS Container Query Units

                            Do you want to master CSS layouts? I'm building a new course. Learn more A few days ago, I saw a tweet by Miriam Suzanne about CSS query units being supported. This was originally proposed by Una Kravets on Github. I couldn’t resist experimenting with them and see how we can get even more benefit from CSS container queries. I will try my best to explain how each unit works, and where we can use a

                              CSS Container Query Units
                            • Conditional CSS

                              Do you want to master CSS layouts? I'm building a new course. Learn more I like to think of CSS as a conditional design language. Over the years, CSS was known as a way to style web pages. Now, however, CSS has evolved a lot to the point you can see conditional rules. The interesting bit is that those CSS rules aren’t direct (i.e: there is still no if/else in CSS), but the way features in CSS work

                                Conditional CSS
                              • Using :has() as a CSS Parent Selector and much more

                                ContentsThe basics of how to use :has() as a parent selectorA practical example using :has() with CSS GridUsing :has() with the child combinatorUsing :has() with sibling combinatorsStyling form states without JSDark mode toggle with no JSAnd moreThe :has() revolution It’s been a long-standing dream of front-end developers to have a way to apply CSS to an element based on what’s happening inside th

                                  Using :has() as a CSS Parent Selector and much more
                                • CSS Findings From Photoshop Web Version

                                  Do you want to master CSS layouts? I'm building a new course. Learn more A few weeks ago, Adobe released a web version of Photoshop that is built with the web technologies like WebAssembly, web components, P3 colors, and a lot more. Photoshop was the first professional design app that I learned when I was 14 years old. It was one of the reasons that I became a designer, and eventually a front-end

                                    CSS Findings From Photoshop Web Version
                                  • Hello, CSS Cascade Layers

                                    I spent years teaching CSS layout on this blog. I put everything I know into The Layout Maestro course: 70+ lessons and 150+ interactive examples that teach you how to think CSS layouts, not just memorize syntax. One of the most common causes of confusion in CSS is facing specificity while writing styles. For example, changing the display value for an element never works because another element in

                                      Hello, CSS Cascade Layers
                                    • WebKit Features in Safari 18.4

                                      Mar 31, 2025 by Jen Simmons, Saron Yitbarek, Jon Davis, Razvan Caliman, Karl Dubost, Brady Eidson, Elika Etemad, Youenn Fablet, Matthew Finkel, Simon Fraser, Timothy Hatcher, David Johnson, Anne van Kesteren, Daniel Liu, Keith Miller, Rupin Mittal, Tim Nguyen, Pascoe, Abrar Rahman Protyasha, Richard Robinson, Lily Spiniolas, Brandon Stewart, John Wilander and Luming Yin ContentsDeclarative Web Pus

                                        WebKit Features in Safari 18.4
                                      • CSS Style Queries

                                        Do you want to master CSS layouts? I'm building a new course. Learn more For me, 2022 is the best year ever for CSS. We got a lot of new stuff supported in stable browsers and it’s just like living a dream. From CSS subgrid, :has selector, container queries, and the new viewport units. So many things to grasp, I understand - but I’m sure we agree that this is exciting, isn’t it? Recently, the Chro

                                          CSS Style Queries
                                        • 【2026年版】Web Components詳細入門ガイド

                                          誰にでも、できればやりたくないと思うプロジェクトがあるはずです。コードが管理不能になり、スコープが拡張し、修正の上に修正を重ねる有様。コードが絡まり合い、構造が崩壊。コーディングは混乱を招くことがあります。 そこで責任の所在がはっきりした、シンプルで独立したモジュールです。これを使用することで、プロジェクトはスムーズに進みます。コードをカプセル化すると、実装についての心配も軽減できます。あるインプットが与えられたときにモジュールが何をアウトプットするかが分かっていれば、その目標が「どのように達成されたか」を理解する必要は必ずしもないのです。 モジュールの概念を単一のプログラミング言語で理解するのは、難しいことではありません。しかし、ウェブ開発の世界では、多様な技術を組み合わせることが必要になります。ブラウザはHTML、CSS、JavaScriptを解析し、ページのコンテンツ、スタイル、機能

                                            【2026年版】Web Components詳細入門ガイド
                                          • A 2025 Survey of Rust GUI Libraries

                                            I did this in 2020 and then again in 2021, but I’m in the mood to look around again. Let’s look through Are We GUI Yet? and see what’s up these days. The task today is to have a text label and an input field that can change the text in the label. In React, for example, this is basically free: const Demo = () => { let [state, setState] = useState("Hello, world!"); return ( <div> <p>{state}</p> <inp

                                            • Writing Logic in CSS

                                              CSS is a highly specialized programming language focusing on style systems. Because of this unique use case and its declarative nature, it's sometimes hard to understand. Some folks even deny it's a programming language altogether. Let's prove them wrong by programming a smart, flexible style system. Control StructuresMore traditional, general-purpose languages (like JavaScript) give us tools like

                                                Writing Logic in CSS
                                              • The Complex But Awesome CSS border-image Property — Smashing Magazine

                                                The CSS border-image property is one of those properties you undoubtedly know exists but may not have ever reached for. Or maybe you have reached for it but found all of its slicing logic difficult and cumbersome. That’s because it is! But the property is also capable of some really interesting things if we take the time to understand its syntax. In this article, Temani Afif demonstrates different

                                                  The Complex But Awesome CSS border-image Property — Smashing Magazine
                                                • Everything You Need to Know About the Gap After the List Marker | CSS-Tricks

                                                  Everything You Need to Know About the Gap After the List Marker I was reading “Creative List Styling” on Google’s web.dev blog and noticed something odd in one of the code examples in the ::marker section of the article. The built-in list markers are bullets, ordinal numbers, and letters. The ::marker pseudo-element allows us to style these markers or replace them with a custom character or image.

                                                    Everything You Need to Know About the Gap After the List Marker | CSS-Tricks
                                                  • Running OCR against PDFs and images directly in your browser

                                                    30th March 2024 I attended the Story Discovery At Scale data journalism conference at Stanford this week. One of the perennial hot topics at any journalism conference concerns data extraction: how can we best get data out of PDFs and images? I’ve been having some very promising results with Gemini Pro 1.5, Claude 3 and GPT-4 Vision recently—I’ll write more about that soon. But those tools are stil

                                                      Running OCR against PDFs and images directly in your browser
                                                    • Thomas Gazagnaire :: A CSS Engine in OCaml

                                                      I have rewritten my website in OCaml more times than I can count (from ocaml-cow to Canopy to custom MirageOS unikernels). This time, the styling was the problem: I use Tailwind CSS, and I wanted the entire pipeline (Markdown to styled HTML to CSS) to be a single dune build with no Node.js dependency. That meant porting Tailwind's CSS generation to OCaml. To make sure the port was correct, I neede

                                                        Thomas Gazagnaire :: A CSS Engine in OCaml
                                                      • Super Simple Full-Bleed & Breakout Styles – Frontend Masters Blog

                                                        Recently, I saw someone asked on Reddit what others are using these days for full-bleed and breakout elements. This refers to having a main content area of limited width (usually centered), but having the ability for some elements to be wider, either all the way to the browser edges or somewhere in-between. desired layout at various viewports — notice the image is a full-bleed element, the warning

                                                          Super Simple Full-Bleed & Breakout Styles – Frontend Masters Blog
                                                        • The Guide To Responsive Design In 2023 and Beyond

                                                          Do you want to master CSS layouts? I'm building a new course. Learn more When you think about building fluid layouts these days isn’t about having fixed-width breakpoints anymore. Instead, the layouts we build today need to work on nearly any device size. To my surprise, I still see websites follow the adaptive design pattern, where it has a container that gets a new max-width value as per the vie

                                                            The Guide To Responsive Design In 2023 and Beyond
                                                          • Old Dogs, new CSS Tricks

                                                            A lot of new CSS features have shipped in the last years, but actual usage is still low. While there are many different reasons for the slow adoption, I think one of the biggest barriers are our own brains. New feature fatigue Permalink to “New feature fatigue” #Right now, we’re in the middle of a real renai-css-ance (the C is silent). It’s a great time to write CSS, but it can also feel overwhelm

                                                              Old Dogs, new CSS Tricks
                                                            • Migrating to v5

                                                              Track and review changes to the Bootstrap source files, documentation, and components to help you migrate from v4 to v5. Dependencies Dropped jQuery. Upgraded from Popper v1.x to Popper v2.x. Replaced Libsass with Dart Sass as our Sass compiler given Libsass was deprecated. Migrated from Jekyll to Hugo for building our documentation Browser support Dropped Internet Explorer 10 and 11 Dropped Micro

                                                                Migrating to v5
                                                              • Inline conditionals in CSS, now? • Lea Verou

                                                                The CSS WG resolved to add if() to CSS, but that won’t be in browsers for a while. What are our options in the meantime? A couple days ago, I posted about the recent CSS WG resolution to add an if() function to CSS. Great as it may be, this is still a long way off, two years if everything goes super smoothly, more if not. So what can you do when you need conditionals right now? You may be pleased

                                                                  Inline conditionals in CSS, now? • Lea Verou
                                                                • 📚ブラウザの仕組みを学ぶ

                                                                  Photo by Remotar Jobs on Unsplash Webフロントエンジニアたるもの、ブラウザの仕組みに興味を持つのは自然の摂理です。本記事では、私がブラウザの仕組みを学んでいく過程を備忘録として残します。 みんな大好きChrome Webフロントエンジニアに愛されているブラウザといえば、IEChromeですよね。 ブラウザでHTML,CSS,JSの動作確認するのは、日常茶飯事です。 ブラウザによって動作が異なることは、Webフロントエンジニアなら周知の事実です。 じゃあ、なんで動作が違うのかというと、 「レンダリングエンジンが違うから〜」 「Javascriptエンジンが違うから〜」 ぐらいは知っているんじゃないかなと思います。 じゃあ、そのレンダリングエンジンってどういう仕組みで動いているのでしょうか。 気になりますよね。 Chromiumについて Chromiumも、

                                                                    📚ブラウザの仕組みを学ぶ
                                                                  • What Can We Actually Do With corner-shape? | CSS-Tricks

                                                                    When I first started messing around with code, rounded corners required five background images or an image sprite likely created in Photoshop, so when border-radius came onto the scene, I remember everybody thinking that it was the best thing ever. Web designs were very square at the time, so to have border-radius was super cool, and it saved us a lot of time, too. Chris’ border-radius article fro

                                                                      What Can We Actually Do With corner-shape? | CSS-Tricks
                                                                    • 【CSS】くの字矢印・三角・丸囲み三角の矢印アイコンサンプル集 - CODING WONDERLAND

                                                                      <p class="btn btn-arrow-right"> <a href="#">くの字矢印(右)</a> </p> /* ボタンのスタイル */ .btn a { position: relative; display: block; width: 280px; padding: 15px 0; background-color: #21be78; border-radius: 8px; font-size: 14px; color: #fff; text-decoration: none; text-align: center; } /* アイコンのスタイル */ .btn-arrow-right a::after { content: ''; position: absolute; top: 0; bottom: 0; right: 27px; width: 9px; heig

                                                                        【CSS】くの字矢印・三角・丸囲み三角の矢印アイコンサンプル集 - CODING WONDERLAND
                                                                      • HTML Whitespace is Broken - Devel without a Cause

                                                                        HTML Whitespace is Broken September 2, 2024Recently, I was working on a project which required a deeper understanding of how whitespace works in HTML. I was never a fan of HTML's whitespace behavior before as I've been burned by it a few times. But as I dug into it more deeply, I found myself discovering complex design issues that I wanted to explore in a blog post. This is partially to write down

                                                                          HTML Whitespace is Broken - Devel without a Cause
                                                                        • Smart CSS Solutions For Common UI Challenges — Smashing Magazine

                                                                          Writing CSS has probably never been more fun and exciting than it is today. In this post we’ll take a look at common problems and use cases we all have to face in our work and how to solve them with modern CSS. If you’re interested, we’ve also just recently covered CSS auditing tools, CSS generators, front-end boilerplates and VS code extensions — you might find them useful, too. It’s incredible t

                                                                            Smart CSS Solutions For Common UI Challenges — Smashing Magazine
                                                                          • Styling `select` elements for real

                                                                            Styling <select> elements consistently across browsers has long been a difficult task. While it is now possible to style the button part of a <select>, styling its contents – the box that contains the list of options, and the options themselves – remains very limited. These limitations often push web developers to use libraries that provide custom select-like controls. Unfortunately using a librar

                                                                              Styling `select` elements for real
                                                                            • Axios POST requests: Handling errors, authentication, and best practices - LogRocket Blog

                                                                              Sending requests to a web server is one of the most commonly performed tasks in frontend development. Creating a Facebook post, uploading a new Instagram image, sending a post on X, or signing up on a website all send requests to a server. Axios is a free and open source promised-based HTTP library that runs both in the browser and Node.js. In this article, you’ll learn how to use the Axios POST m

                                                                                Axios POST requests: Handling errors, authentication, and best practices - LogRocket Blog
                                                                              • 実用的でユニークなチェックボックスのまとめ・「Beautiful CSS checkboxes examples」 | かちびと.net

                                                                                Result CSS ScanでCSSでスタイリングされた実用的でユニークなチェックボックスが沢山紹介されています。 どれもクリックだけでコピー可能で、CSSとHTMLがセットになったコードを発行しているのでペーストするだけで実装できるようになっています。 全てJavaScript不要で実装可能です。 css .checkbox-wrapper-11 { --text: #414856; --check: #4F29F0; --disabled: #C3C8DE; --border-radius: 10px; border-radius: var(--border-radius); position: relative; padding: 5px; display: grid; grid-template-columns: 30px auto; align-items: center; }

                                                                                • A Look at Building with Astro | CSS-Tricks

                                                                                  Astro is a brand new framework for building websites. To me, the big thing is that it allows you to build a site like you’re using a JavaScript framework (and you are), but the output is a zero-JavaScript static site. You can opt-in to client-side JavaScript as needed, and there are clever options for doing so. Notably, the learning curve is somewhat flattened by the fact that it supports componen

                                                                                    A Look at Building with Astro | CSS-Tricks