タグ

cssとtipsに関するbigchuのブックマーク (22)

  • CSS reset for minimalists - Matt Smith

    CSS resets help enforce style consistency across different browsers by providing a clean slate for styling elements. Resources like Normalize, et al., do an excellent job at managing this. For a couple of years now, I’ve opted to go with a minimalist approach to resets and found it to be just as useful: *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } Now elements will be

    CSS reset for minimalists - Matt Smith
    bigchu
    bigchu 2017/01/10
    Reset /
  • CSS-Tricks

    These things called passkeys sure are making the rounds these days. They were a main attraction at W3C TPAC 2022, gained support in Safari 16, are finding their way into macOS and iOS, and are slated to be the future for password managers like 1Password. They are already supported in Android, and will soon find their way into Chrome OS and Windows in […]

    CSS-Tricks
    bigchu
    bigchu 2017/01/08
    css
  • Flexboxで決まり! | Webクリエイターボックス


    2017525 CSS FlexboxFlexible Box Layout ModuleFlexbox使Flexbox使 10  Can I useSafari -webkit- IE11IE10
    Flexboxで決まり! | Webクリエイターボックス
    bigchu
    bigchu 2015/02/24
    : もはや Android みたいね。
  • Flashがz-indexを無視してしまうトラブルが発生 | 株式会社インデックスジャパン


    FlashIEFirefoxz-index Flash Flashz-indexz-index: 1000z-index: 10000IEFirefoxGoogle Chrome Flash z-index Flashz-index使
    Flashがz-indexを無視してしまうトラブルが発生 | 株式会社インデックスジャパン
  • [CSS]画像置換「-9999px」のパフォーマンスを改善した新しいテクニック

    テキストで実装した見出しなどを画像に置換するテクニックで「-9999px」が有名ですが、そのパフォーマンスを改善するテクニックを紹介します。 Replacing the -9999px hack (new image replacement) [ad#ad-2] 画像置換:-9999px 改善したテクニック 画像置換:-9999px -9999pxを使った画像置換のテクニックは、下記のようになります。 HTMLは見出し要素で実装します。 HTML <h3 id="sample06">見出しのテキスト</h3> 「text-indent:-9999px;」でテキストを見えない位置にし、見出しとなる画像を背景画像として表示します。 #sample06{ width:300px; height:50px; background:url('bg-01.gif') no-repeat 0 -250p

    bigchu
    bigchu 2012/06/03
    : -9999pxか
  • CSSグラデーションでの角度の解釈 | Web標準Blog | ミツエーリンクス


    CSS Image Values and Replaced ContenteditorTab Atkins Jr.CSSWGBlogCSS3.info Angles in Gradients linear-gradient() Image Valueslinear-gradient()  background-image: linear-gradient(#eee, #ccc); 使
  • CSSでアイコンをデザイン

    ものすごく大雑把に言うと今まで画像編集ソフトでやっていた、角を丸くするとか背景をグラデーションにするなどという作業をCSSでやってしまおうというお話。もちろんCSSでできないことは多くあるので万能というわけではないが、できることに限って言えば数行のCSSコードでスクリーンショットのような効果を柔軟に適用することができる。 Demo: Design icon with CSS ul li a { display: block; width: 32px; height: 32px; background-image: url("icons-w.png"); background-repeat: no-repeat; text-indent: -10000px; } 各アイコンになるa要素へのスタイルは以上のような単純なものがベースになる。icons-w.pngがアイコンの前景をつなげたスプライ

    CSSでアイコンをデザイン
    bigchu
    bigchu 2011/03/07
    : いいね、かしこい
  • 人や動物のシルエット

    Design Your Way is a brand owned by SBC Design Net SRL Str. Caminului 30, Bl D3, Sc A Bucharest, Romania Registration number RO32743054 But you’ll also find us on Blvd. Ion Mihalache 15-17 at Mindspace Victoriei contact@designyourway.net You came here for some really cool CSS text effects that will help you make amazing web typography for your websites. In order to successfully give a website a lo

    人や動物のシルエット
    bigchu
    bigchu 2011/02/08
    : CSSスニペットのいいまとめ。
  • CSS Writing Modes Level 3

    CSS Writing Modes Level 3 Editor’s Draft, 28 August 2023 More details about this document This version: https://drafts.csswg.org/css-writing-modes-3/ Latest published version: https://www.w3.org/TR/css-writing-modes-3/ Previous Versions: https://www.w3.org/TR/2019/REC-css-writing-modes-3-20191210/ Test Suite: http://test.csswg.org/suites/css-writing-modes-3_dev/nightly-unstable/ Feedback: CSSWG Is

    bigchu
    bigchu 2010/10/05
    : 縦書きなんだがFlashのが縦書きはきれい
  • Ultimate multi-column liquid layouts (em and pixel widths)

    8 Feb 2022 — Updated 20 Mar 2023 Table of contents CSS Grid: Static 3 column Responsive 3 column Flexbox: Static 3 column Responsive 3 column Main content with left & right sidebars Padded boxes with headings Product feature comparison table Responsive Attributes: Static 3 column Responsive 3 column Responsive Columns: Static 3 column Responsive 3 column In this article, we'll explore various type

    Ultimate multi-column liquid layouts (em and pixel widths)
    bigchu
    bigchu 2010/06/01
    : すげぇ
  • [CSS]ハック無しでIE6でmax-widthを実現するスタイルシート

    CSS HackもJavaScriptもIEの条件付きコメントも無しで、IE6でmax-widthを実現するスタイルシートをCSSplayから紹介します。 'max-width' for Internet Explorer IE6 demo: center 実装のポイントとなるのは左右に配置されたdiv要素で、それぞれマイナスマージンを指定します。 コンテンツを配置するdiv要素には「overflow:hidden;」を指定します。 デモでは上記のmax-widthのコンテンツをセンターに配置したものと左右に配置したものがあります。 'max-width' centered 'max-width' left 'max-width' right

    bigchu
    bigchu 2009/10/08
    まわるくどいやり方だけど、JSもいらないのであればGJだ。
  • [CSS]そのまま使えるコメントのスタイルシートのテンプレート集

    スタイリッシュにデザインされたブログなどに無料で利用できるコメントのテンプレートをcss globeから紹介します。 <textarea name="code" class="html" cols="60" rows="5"> <ol class="comments"> <li> <ul class="meta"> <li><img src="path-to-gravatar.gif" alt="Author's name" /></li> <li><a href="url-to-authors-homepage.html">Author's name</a></li> <li>posted on date-goes-here</li> </ul> <div class="body">Comment text goes here...</div> </li> </ol> </textare

    bigchu
    bigchu 2009/09/30
    : コメントアウトのテクかと思ったら、、、ぅゎん
  • 101 CSS Techniques Of All Time- Part 1 - noupe

    CSS has fundamentally changed web design, it has provided designers with a set of properties that can be tweaked to make various techniques to make your pages just look right. Today we are presenting a round-up of 101 CSS techniques designers use all the time. Definitely worth taking a very close look at! This is just the first series , the second part will be coming soon, stay tuned and Enjoy! CS

    101 CSS Techniques Of All Time- Part 1 - noupe
    bigchu
    bigchu 2008/02/14
    : cssの便利なtipsのまとめ/2もある
  • | ^^ |秒刊SUNDAY | これは使える101個のCSSの裏技


    20080126 使101CSS WEB 101 101 CSS Techniques Of All Time- Part 1 101 CSS Techniques Of All Time- Part2  CSS CSS CSS CSS CSS CSS
    bigchu
    bigchu 2008/02/14
    : わりと使えそうなわりに
  • filament group inc. || Styling the Button Element with Sliding Doors

    102 South Street , 3rd floor Boston MA 02111 Phone: 617.482.7120 Fax: 617.687.0212 Email: hello@filamentgroup.com Posted by Scott and Maggie on 05/23/2007 Topics: cssui designvisual design Particle Tree recently posted an article describing a technique for styling the HTML button element. For those not familiar, form buttons are notoriously difficult to customize because they render differently ac

    bigchu
    bigchu 2008/01/30
    : CSSで角丸グラデのボタンをつくる
  • ちょっと便利なCSS Tips いろいろ - DesignWalker

    ちょっと便利なCSS Tips いろいろ - DesignWalker
    bigchu
    bigchu 2008/01/21
    : jsをつかわずにやるのとかね
  • [CSS]テキストにグラデーション効果をつけるスタイルシート


    Web Designer Wall CSS Gradient Text Effect (h1)span  CSS Gradient Text Effect     
  • TOP | CCG - CSS Coding Guideline -

    セットの記述方法 { インデントは半角スペースを4つ。 閉じ カッコ のインデントは書き出し位置に合わせる。 1プロパティは1行で管理する。行の終わり必ずセミコロン ( ; ) } セレクタの記述方法 { 各IDとclassが適用されているタグを必ず明記。 継承を見やすく、かぶりが起こるのを防ぐために親セレクタも記述する。 自然とピラミッド型になるようにマークアップを行う。 } プロパティの記述順序 { ボックスモデル (Box model) 視覚整形モデル (Visual formatting model) 視覚整形モデル詳細 (Visual formatting model details) 視覚効果 (Visual effects) 生成 内容, 自動番号付け及びリスト (Generated content, automatic numbering, and lists) ページ関連

    bigchu
    bigchu 2007/11/05
    この度はCSS Coding Guideline "CCG" が移動いたしました。よろしくお願い申し上げます/ズドンッ! ←(脳天が地面に突き刺さるくらいの土下座の時の効果音)
  • How to create VISTA style toolbar with CSS

    bigchu
    bigchu 2007/10/23
    : vistaっぽいボタンをつくれる
  • imgのheightとwidthは必須か?

    img要素は、HTML文書の或部分に畫像を埋め込む爲の要素です。必須屬性は、畫像のありかを指示するsrc屬性と、代替テキストを示すalt屬性のみです。 屡々「マナー」として、height屬性とwidth屬性を必ず記述しなさい、と言はれます。 「WIDTH」と「HEIGHT」はなくても画像は表示されますが、もし書いておかないと、ブラウザはまず文字のレイアウトを決めてからその後で、画像の入る位置を再び計算することになり結果として表示するのが大変遅くなります つまり画像を全て読みこんで大きさがわかるまで表示されないのです。でももしサイズが書いてあればその大きさ分を空けておくので、画像が読みこまれてからそこに表示するだけとなるので早くなるのです。 <IMG SRC="...">タグでイメージを表示する際には、WIDTH=n と HEIGHT=n 属性を必ず指定するようにしましょう。これを指定しない

    bigchu
    bigchu 2007/07/19
    : imgタグではサイズの指定を省略できます。しかし必ず書こうぇぇ