並び順

ブックマーク数

期間指定

  • から
  • まで

321 - 360 件 / 485件

新着順 人気順

flexboxの検索結果321 - 360 件 / 485件

  • 【CSS】flexboxで定義リスト(dl、dt、dd)を横並びにする方法 - Qiita

    今回は、HTMLタグのdl、dt、ddタグを使って定義リストを作成していきます。定義リストタグを横並びにする際、一昔前はfloatを使用していましたが、今回はflexboxを使って横並びにする方法を解説します。 まず定義リストタグというのは、定義する用語とその用語の説明を対にしたリストを作成するためのタグになります。 それぞれのタグの意味は以下の通りです。 dlタグ:「description list」の略で、定義リスト全体を表すタグ dtタグ:「description term」の略で、定義する用語(名称やタイトル)を表すタグ ddタグ:「description description」の略で、dtで定義した用語の説明を記述するタグ HTMLで骨子を作る <div class="company_info"> <dl> <dt>会社名</dt> <dd>株式会社〇〇</dd> <dt>所在

      【CSS】flexboxで定義リスト(dl、dt、dd)を横並びにする方法 - Qiita
    • CSS3の『flexbox』だけでフッターを一番下(最下部)に固定する | 株式会社チップディップ

      ウェブサイトを作成する際に、コンテンツの内容が少ないページのフッターがウィンドウの途中に来てしまって、下に不自然に余白ができてしまう問題ってありますよね。 ↑こういう状態です。 JQueryを使って、調整する方法もあるのですが… 今回はCSS3のflexboxだけでフッターをウィンドウの最下部に固定する方法を紹介していきます! まずはデモページを作成したのでご覧ください。 コンテンツ高がウィンドウより低い場合にはフッターが最下部に固定されます。 そして、コンテンツ高がウィンドウサイズを超えると、フッターはその高さに自動的に調整されているのが分かるかと思います。 早速、次項で使い方を説明していきます。 HTMLとCSS を記述する まずはHTMLを記述をしていきます。 と言っても、特別何かを用意する必要はありません。 最低限書くのはこれだけです。 <body> <div id="wrappe

        CSS3の『flexbox』だけでフッターを一番下(最下部)に固定する | 株式会社チップディップ
      • The CSS3 Flexible Box Layout (flexbox) | 456 Berea Street

        In Flexible height vertical centering with CSS beyond IE7 I mentioned that you can use the properties from the CSS3 Flexible Box Layout Module—flexbox—to center an element horizontally and vertically. I’ll show how to do this along with some other examples of what you can do with flexbox. But first of all a couple of—rather big—caveats, to make you aware of them upfront: Flexbox is currently only

        • Flexboxで最後の行を左寄せにレイアウトする

          Flexboxで要素をレイアウトするときによく使うプロパティで、justify-content:space-between;があります。 親要素の横幅に応じて子要素を均等に配置してくれるので、マージンの計算とか特にする必要も無いので非常に便利ですよね。 僕はよく使ってます。 でも、このjustify-content:space-between;って、要素が1行のみの場合は非常に便利なんですが、 子要素が複数行になる場合になかなか不便だったりします。 複数行の場合にどうなってしまうのか 3列のレイアウトで、最後の行の子要素が2つの場合 4列のレイアウトで、最後の行の子要素が2つの場合 4列のレイアウトで、最後の行の子要素が3つの場合 はい。こんな感じなります。 横の位置を均等に配置してるんだからこうなるのは当たり前ですよね。 でも、我々が求めるレイアウトは最後の列は左寄せになるようなこういう

            Flexboxで最後の行を左寄せにレイアウトする
          • 2012年6月のW3C: メディアクエリー勧告、Flexboxはラストコールに | Web標準Blog | ミツエーリンクス

            メディアクエリーが勧告へ 6月19日付けで、メディアクエリー仕様が勧告されました。 Media Queries CSS WG Blog - CSS3 Media Queries reaches Recommendation 日本語訳も更新しました。 メディアクエリー (日本語訳) RDFa 1.1が勧告へ 6月7日付けで、RDFa 1.1仕様が勧告されました。 RDFa Core 1.1 RDFa Lite 1.1 RDFa 1.1 Primer RDFa 1.1ではXHTMLとの結びつきを解消し、HTML5やSVGなど他の言語でもRDFによるメタ情報を埋め込めるようになりました。接頭辞の宣言方法などが変更されています。 RDFa 1.1 LiteはRDFa 1.1のサブセットです。Dublin Coreやschema.orgなどよく使われる語彙についてデフォルトの接頭辞(Dublin C

            • Learn You a Flexbox for Great Good!を訳した

              おもしろい!Stephen Hayの書いたLearn You a Flexbox for Great Good!というCSS Flexible Box Layout Moduleについての記事がとても良かったので「Flexbox、おもしろいですよ?」というタイトルで日本語に訳した。もう一回言うけど、おもしろい! まぁ細かくは翻訳の方を読んでもらうとして、ざっとさわりというか読むにあたって知っとくと良さそうなことだけちょっと結構書く。 Flexbox? Flexboxはリサイズされたりとかした時に、それに合わせて並んだボックスをそれぞれ割合でリサイズさせたり、あるものだけリサイズするようにしたり、リサイズはしないけど位置をずらしたり(右や中央寄せとかだけでなく均等割付とかも)とかするもの。FirefoxのUIやアドオンでは既に普通に使われている(Web標準を目指しているものとはちょっと違うけ

                Learn You a Flexbox for Great Good!を訳した
              • IE11でflexboxを入れ子にするとテキストが折り返さないバグ

                先日紹介したflexbox関連のバグを検証していたときに遭遇したバグがあったのでメモっておきます。今回は入れ子にしたflexboxに関するバグです。 バグの詳細 IE11では、flexboxを入れ子にすると、入れ子にしたflexboxのflexアイテム内のコンテンツがコンテナより大きい場合、はみ出して表示されてしまいます。たとえば、下のIE11での表示のキャプチャ画像のように長いテキストが折り返さなくなってしまいます。 本来は下のFirefoxでの表示をキャプチャした画像のように、display: flex;によってカラム表示になってテキストが折り返して表示されます。 デモはこちら このバグが発生するソースコードは以下のようになります。 HTML <div class="flex-outer"> <div class="flex-outer__item"> <div class="flex

                  IE11でflexboxを入れ子にするとテキストが折り返さないバグ
                • GitHub - samanthaming/Flexbox30: Learn Flexbox in 30 days with 30 code tidbits ✨

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - samanthaming/Flexbox30: Learn Flexbox in 30 days with 30 code tidbits ✨
                  • Safe/unsafe alignment in CSS flexbox

                    This post is part of my Today I learned series in which I share all my web development learnings. I recently watched the talk "Making Things Better: Redefining the Technical Possibilities of CSS" by Rachel Andrews. The talk included one line of CSS that I haven't seen before. .something { display: flex; // what's that?👇 😲 align-items: safe center; } Rachel explains that when the CSS specs are wr

                      Safe/unsafe alignment in CSS flexbox
                    • flexboxでリキッドレイアウト(固定+可変)にする方法

                      flexboxでリキッドレイアウト(固定+可変)にする方法 このエントリーでは、flexboxでリキッドレイアウトを表現する方法をお伝えします。可変カラム+固定カラムが横並びになるレイアウトにするとき使えるスタイルです。 リキッドレイアウトとは リキッドレイアウトは、可変カラムと固定カラム構成の名称です。ブラウザのサイズやデバイスの違いを柔軟に表示する概念です。 2カラム、あるいは3カラム構成からなるレイアウトが一般に見られるのではないでしょうか。 たとえば、サイドメニューが固定幅で、メインコンテンツが可変幅などが代表的です。 flexboxのリキッドレイアウトが使えるケース レスポンシブデザインに最適固定、可変する要素があるときフォームのラベルと入力要素が並ぶとき 使い方(2カラム) 2カラムレイアウトを例にHTML/CSSを記述します。各々のレイアウトに置き換えてご覧ください。 <di

                      • Grid vs Flexbox: Which Should You Choose?

                        CSS Grid and CSS Flexbox are complimentary web layout technologies that have been hotly anticipated for years. However, despite some superficial similarities they are actually used for very different tasks; they each solve a very different set of problems. In an ideal scenario, you may find that you employ both for different layout tasks. In this post we’ll look at their differences, look at how t

                          Grid vs Flexbox: Which Should You Choose?
                        • CodePen - Flexbox playground

                          ...

                            CodePen - Flexbox playground
                          • FlexboxベースのモバイルファーストなCSSフレームワーク・「Butter Cake」 | かちびと.net

                            Butter CakeはFlexboxベースのモバイルファーストなCSSフレームワークです。モジュール式で必要な機能は自身で追加していくタイプなので軽量に抑えることができます。よく必要とされるUIコンポーネントは一通りそろっている印象で、すぐに開発が始められそうです。良い意味でベーシックなフレームワークですね。ライセンスはMIT。 Butter Cake

                              FlexboxベースのモバイルファーストなCSSフレームワーク・「Butter Cake」 | かちびと.net
                            • Flexbox in the Real World

                              Published 03/11/14 by sean Follow @sfioritto Flexbox is awesome, but is it possible to use flexbox and still support IE8? If you follow these guidelines, you can start using flexbox today. I've been writing about and teaching flexbox for awhile now, and the most common question people ask is, "When will support be good enough for me to use flexbox in a real project?" I've always thought flexbox ha

                                Flexbox in the Real World
                              • How to make a scrollable container with dynamic height using Flexbox

                                One of the hidden features of Flexbox is the ability to make a flex child scrollable. In the past, if you wanted to make a scrollable container, you had to give the container a predefined height. In other words, the height could not be based on the size of its surrounding content. You had to use pixels, percentages, or absolute positioning if you wanted an element’s content to scroll. With Flexbox

                                • CSS Flexbox

                                  Toggle flex box on and off Value of the display property is currently: The interesting thing about this technique is that no floats whatsoever are being used.

                                  • Flexbox Myth Busting

                                    If you write CSS with any kind of regularity, then chances are you have heard of ‘flexbox’ (Flexible Box Layout Module). You might have even heard that flexbox can solve many problems that are thought hard or impossible to solve without the aid of Javascript. But you might have also heard or assumed a few barriers to leveraging flexbox this early. In this post I will be debunking many ‘myths’ that

                                      Flexbox Myth Busting
                                    • Layering CSS so we can use flexbox now

                                      We can start using flexbox right now while still having a similar layout in older browsers by taking advantage of the "cascading" part of cascading style sheets. In this article I'm going to explain how we can take advantage of some of the similarities between flexbox and inline-block layouts to achieve a progressively enhanced layout that looks good in all browsers. #How it works under the hood W

                                        Layering CSS so we can use flexbox now
                                      • OrbitCSS - A modern CSS framework based on flexbox.

                                        Your Docusaurus site did not load properly. A very common reason is a wrong site baseUrl configuration. Current configured baseUrl = / (default value) We suggest trying baseUrl =

                                          OrbitCSS - A modern CSS framework based on flexbox.
                                        • flexboxで上下左右中央揃え - Qiita

                                          <div class="flexbox-container-vertical-center"> <span>中央</span> </div> .flexbox-container-vertical-center { display: flex; /* 子要素をflexboxで揃える */ flex-direction: column; /* 子要素をflexboxにより縦方向に揃える */ justify-content: center; /* 子要素をflexboxにより中央に配置する */ align-items: center; /* 子要素をflexboxにより中央に配置する */ width: 100px; /* 見た目用 */ height: 50px; /* 見た目用 */ border: 1px solid; /* 見た目用 */ } span { border: 1px

                                            flexboxで上下左右中央揃え - Qiita
                                          • Media QueriesとFlexboxでレスポンシブサイトを作るときのメモ - Qiita

                                            // // vwもCSS3で追加された単位です // 1vw=ビューポート幅の1% // 同様に高さを示すvhという単位もあります // #sidebar{ width: 100%; font-size: 4vw; @media screen and (min-width: 900px){ width: 20vw; font-size: 2vw; } } という書き方ができる 個人的には モバイルファーストで書いてPC用にフォントサイズやレイアウトを調整する ピクセル単位の決めうちではなくvwやvh、remなどのデバイスのビューポートによる相対サイズで指定する という方法を使っています CSS上の長さの単位 これまで ピクセル指定 ポイント指定 em指定 などがありましたが、ここまでデバイス毎の解像度やピクセル密度がバラバラになるとそろそろきつい 新しい単位 vw / vh / vmin

                                              Media QueriesとFlexboxでレスポンシブサイトを作るときのメモ - Qiita
                                            • Flexbox Based Responsive Equal Height Blocks With JavaScript Fallback by Osvaldas Valutis

                                              2014-07-12

                                                Flexbox Based Responsive Equal Height Blocks With JavaScript Fallback by Osvaldas Valutis
                                              • Flexbox | Codrops

                                                Flexbox, or the Flexible Box Layout, is a new layout mode in CSS3 designed for laying out complex applications and web pages. In CSS 2.1, four layout modes were defined which determine the size and position of boxes based on their relationships with their sibling and ancestor boxes: the block layout designed for laying out documents, and that lays elements on a page vertically; the inline layout d

                                                  Flexbox | Codrops
                                                • そこが知りたい、Flexbox | 第1回 仕様を知る 1

                                                  Flexible Box Layoutでカラムレイアウト たとえば、左右にカラム分けされたレイアウトを作りたいとします。これをCSSで実現する方法は何通りも存在します。 過去にCodeGridで紹介したような*table-cellやinline-blockを利用したカラムレイアウトであったり、単純にfloatを使用したものであったり、display: grid;であったり……。 *注:これまでに紹介した記事 「display: tableの活用:フレキシブルな段組みレイアウト」 「display: tableの活用:フィットする特性と均等配置」 「display: tableの活用:流し込む方向の制御」 「inline layoutを使いこなす:カラムレイアウト」 方法は挙げればきりがないのですが、今回はCSS Flexible Box Layout Module(以下、Flexbox)に

                                                    そこが知りたい、Flexbox | 第1回 仕様を知る 1
                                                  • IE11でflexboxにmin-heightが効かなくてalign-items: centerが使えないバグ

                                                    flexbox関連のバグをメモ的に書き溜めています。今回はIE11のバグで、flexを指定した要素にmin-heightを指定すると無視されるバグについてです。 バグの詳細 IE11ではdisplay: flex;を指定した要素にmin-heightを指定しても無視されます。IE11ではflexが指定されたflexコンテナの高さは認識されるがflexアイテムの高さは認識されないそうです(Flexbugs参照 )。そのため、align-items: center;で中の要素を上下中央に配置できません。 僕の場合、以下のようなレイアウトの実装の際にこのバグにはまりました。 幅が可変でテキストの長さが異なるレイアウトで、テキストが1〜3行の場合はmin-heightで高さを統一して上下中央寄せにして、4行以上になる場合はテキストの高さに合わせて箱の高さが可変するレイアウトです。 IE11だと以下

                                                      IE11でflexboxにmin-heightが効かなくてalign-items: centerが使えないバグ
                                                    • Flexboxを使ったCSSグリッドシステム・「Gridlex」

                                                      GridlexはFlexboxを使ったシンプルなCSSグリッドシステムです。親要素と子要素に特定のclassを追加して利用するみたいです。非常に簡単なものですが、シンプル故にカスタマイズしやすいかも。カラム数は.grid-*、セルの長さを非均一にする際は.col-*などのclassを与えればいいようですね。入れ子も対応可能。似たようなcssはありそうですが、選択肢のひとつとして。 Gridlex

                                                        Flexboxを使ったCSSグリッドシステム・「Gridlex」
                                                      • Flexbox内のテキストを一行表示にして余った文字を省略表示する方法

                                                        flexbox内のテキストを一行表示にして、横幅を縮めたときに余った文字を省略表示する方法を紹介します。 通常は簡単に実装できるのですが、テキストが子要素の中に入っていると上手く動作しません。 デモページの横幅を縮めると、サンプルの動作を確認できます。 サンプル1(簡単なパターン) テキストを一行表示にして、横幅を縮めたときに余った文字を省略表示するのは簡単です。 一行表示したい要素に以下のCSSを適用するだけです。 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; HTML <div class="flexbox"> <div class="flexitem">横幅を縮めると、余った文字が省略表示されます。</div> </div> CSS .flexbox { display: flex; } .flexit

                                                          Flexbox内のテキストを一行表示にして余った文字を省略表示する方法
                                                        • CodePen - Flexbox Off Canvas Menu

                                                          ...

                                                            CodePen - Flexbox Off Canvas Menu
                                                          • Flexbox playground

                                                            About HTML Preprocessors HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug. Learn more · Versions Adding Classes In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. So you don't have access to higher-

                                                              Flexbox playground
                                                            • 【Labs】Flexboxでレスポンシブデザイン グリッドレイアウト

                                                              6月更新・前月(5月)の人気記事トップ10 06/06/2024 ( 02 ↑) 【Labs】position:absoluteとwidth:100%を指定すると横幅の設定がうまくいかない場合の対処方法について ( 01 ↓) 【Mac】macOSをHigh SierraからMontereyにアップグレード ( 03 – ) 【Mac】Safariでソースコードを見る方法 ( 04 – ) 【jQuery】入門2. jQueryをHTMLに組み込む ( 05 – ) 【Mac】横画面で撮影した動画をYouTubeショート用にMacのiMovieで縦画面に編集する方法 ( 08 ↑) 【Labs】CSSだけでドロップダウンメニュー ( 09 ↑) 【Labs】PHPのエラー表示をなくす方法 ( 06 ↓) 【iPhone / iPad】iPhoneのツイッターアプリでユーザー名をコピーする方

                                                                【Labs】Flexboxでレスポンシブデザイン グリッドレイアウト
                                                              • Understanding CSS3 Flexbox for Responsive WordPress Design

                                                                Oh man, remember how hard it used to be to vertically center content on your site? If you’re struggling with the words “used to be” in that last sentence, you obviously haven’t yet cottoned onto flexbox. CSS wasn’t originally designed to handle the complex template styling that we see on the web these days, forcing developers to come up with CSS hacks to get content looking right. Flexbox, or flex

                                                                  Understanding CSS3 Flexbox for Responsive WordPress Design
                                                                • CSS Grid VS Flexbox: A Practical Comparison

                                                                  Not too long ago, the layout for all HTML pages was done via tables, floats, and other CSS properties that were not well suited for styling complex web pages. Then came flexbox - a layout mode that was specifically designed for creating robust responsive pages. Flexbox made it easy to properly align elements and their content, and is now the preferred CSS system of most web developers. Now we have

                                                                    CSS Grid VS Flexbox: A Practical Comparison
                                                                  • Flexboxで、レスポンシブ対応のページネーションを作成する|レンタルサーバーナレッジ

                                                                    Flexboxを使い、レスポンシブWeb対応のページネーション(Pagination)を作成します。 << デモを表示 >> ※ PCで閲覧している方はデモを開き、画面幅を変えてみてください。 ソースコード index.html <!DOCTYPE html> <html lang="ja"> <head> <title>Flexboxテスト</title> <meta charset="UTF-8"> </head> ​<body> <h1>Flexbox レスポンシブPagination</h1> <ul class="pager"> <li><a href=""><<</a></li> <li><a href=""><</a></li> <li><a href="">1</a></li> <li><a href="">2</a></li> <li><a href="">3</a></

                                                                      Flexboxで、レスポンシブ対応のページネーションを作成する|レンタルサーバーナレッジ
                                                                    • CSS Flexbox Cheatsheet - Visual Studio Marketplace

                                                                      CSS Flexbox Cheatsheet (link) VS Code extension that lets you open a flexbox cheatsheet directly in the editor. Features The cheatsheet can be opened in a few ways: Press Ctrl + Shift + P (Win, Linux) / Cmd + Shift + P (Mac) and search for the Open CSS Flexbox Cheatsheet command. Press Ctrl + K K (Win, Linux) / Cmd + K K (Mac) keyboard shortcut. Hover any display: flex declaration and click the Op

                                                                        CSS Flexbox Cheatsheet - Visual Studio Marketplace
                                                                      • 20 Examples Of UI Components Built Using CSS Flexbox – Bashooka

                                                                        Flexbox Patterns Flexbox is awesome, but it introduces many new concepts that can make it difficult to use. These interactive examples will show you practical ways to use it to build UI components. They start out simple and get more complex near the end. Bulma A modern CSS framework based on Flexbox. Smart-splitting window panes If the window is wider than it is tall, it’ll split into columns. Oth

                                                                          20 Examples Of UI Components Built Using CSS Flexbox – Bashooka
                                                                        • Learn CSS Flexbox in 3 Minutes

                                                                          In this post you’ll learn the most important concepts of the flexbox layout in CSS, which will make your life easier if you find yourself struggling with CSS layouts from time to time. We’ll only focus on core principles, while leaving out stuff you shouldn’t care about until you’ve understood the basics. You should also check out the CSS flexbox basics screencast I’ve created. It’s interactive, s

                                                                            Learn CSS Flexbox in 3 Minutes
                                                                          • CSS3のFlexboxを使ってレスポンシブなサイトを作ってみた - Qiita

                                                                            前に投稿した記事です Flexboxを使ってみた プロパティの記述が間違っていたので修正 -webkit-display: flex; を display: -webkit-flex; と修正 Flexboxを使ってレスポンシブなサイトを作る <!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="style.css"> <title>サンプル</title> </head> <body> <div id="wrapper"> <div id="header"> <h1>Header</h1> </div> <div id="content"> <p>コンテンツコンテンツコンテンツコンテンツコンテンツコンテンツコンテンツコンテンツコンテンツコンテンツコンテンツコン

                                                                              CSS3のFlexboxを使ってレスポンシブなサイトを作ってみた - Qiita
                                                                            • Learn You a Flexbox for Great Good! – The Haystack

                                                                              This article is outdated and no longer accurate. Find up-to-date information about flexbox at HTML5 Please. Yet Another Note (2012-05-13): It might be obvious that the flexbox spec is changing often, but a kind commenter suggested I add a note here regarding the fact that in the spec, the flex() function has been replaced by the `flex` property, which makes plenty of stuff in this article obsolete

                                                                                Learn You a Flexbox for Great Good! – The Haystack
                                                                              • より良く、よりシンプルなグリッドシステム — Solved by Flexbox — クリーンでハックのない CSS

                                                                                大抵の現代的なグリッドシステムは float または inline-block の2つのレイアウト手法のうち、どちらか1つを採用しています。しかしそれらの手法はどちらもレイアウトを実現する意図で使うものではないため、結果として重大な問題や制約を引きおこします。 floatは、レイアウトに関する多くの問題を抱えているために、「クリア」を行なう必要があります。御存知の通り、要素をクリアすると、ページ内の無関係のパーツの下に強制移動させられることがあります(例えばこの Bootstrap issueを参照してください)。加えて、floatをクリアするといつもbeforeとafter擬似要素が必要になり、別の用途に使うことの妨げとなります。 インラインブロックレイアウトはinline-block アイテム間のホワイトスペース問題に取り組むのに必要ですが、それらの 解決方法 は ハックに満ちていて

                                                                                • Juiced - A Flexbox CSS Framework

                                                                                  Juiced: a Flexbox CSS Framework Juiced has many of the same layout features that you know and love, but improves upon them with better mobile targeting, custom column ordering, better alignment options, understandable HTML, and less boilerplate styles.