background preloader



iframe - Facebook always shows scrollbars around Flash applications
Home / CSS3 Previews / Multiple Backgrounds with CSS3 CSS3 allows web designers to specify multiple background images for box elements, using nothing more than a simple comma-separated list. Browser support for multiple backgrounds is relatively widespread with Mozilla Firefox (3.6+), Safari/Chrome (1.0/1.3+), Opera (10.5+) and even Internet Explorer (9.0+) all implementing the feature. Here’s a basic example: This box has two background images, the first a sheep (aligned to the bottom and center) and the second a grass and sky background (aligned to the top-left corner). Here’s the code for this: How it Works Multiple background images can be specified using either the individual background properties or the background shorthand property. Specifying multiple backgrounds using the individual background properties Multiple background images are specified using a comma-separated list of values for the background-image property, with each value generating a separate ‘background layer’. = | none Multiple Backgrounds with CSS3 Multiple Backgrounds with CSS3
html - how to force link from iframe to be opened in the parent window

Fonts Fonts 15.1 Introduction Setting font properties will be among the most common uses of style sheets. Unfortunately, there exists no well-defined and universally accepted taxonomy for classifying fonts, and terms that apply to one font family may not be appropriate for others. E.g., 'italic' is commonly used to label slanted text, but slanted text may also be labeled as being Oblique, Slanted, Incline, Cursive or Kursiv. 15.2 Font matching algorithm Because there is no accepted, universal taxonomy of font properties, matching of properties to font faces must be done carefully. The User Agent makes (or accesses) a database of relevant CSS 2.1 properties of all the fonts of which the UA is aware. (The above algorithm can be optimized to avoid having to revisit the CSS 2.1 properties for each character.) The per-property matching rules from (2) above are as follows: 'font-style' is tried first. 15.3 Font family: the 'font-family' property There are two types of font family names: serif sans-serif cursive
HTML Glossary
HTML Glossary
Becoming HTML agnostic HTML agnostic means to use as little HTML in your CSS (or none). The key factor here is to avoid becoming markup reliant and avoid declaring qualified names (the element name). Let's take a basic structure for an unordered list navigation: <ul><li><a href="#">Link</a></li><li><a href="#">Link</a></li><li><a href="#">Link</a></li></ul> Here's what you might be used to seeing this to target the above HTML: ul {}ul li {}ul li a {} These selectors aren't specific enough, they are potentially too complicated and not very efficient, especially when we expand our code. On becoming HTML agnostic, we can begin to create more classes to represent each element when we need them. <ul class="nav"><li class="nav-item"><a href="#">Link</a></li><li class="nav-item"><a href="#">Link</a></li><li class="nav-item"><a href="#">Link</a></li></ul> And the CSS that we can link with our navigation will look like this: .nav {}.nav-item {}.nav-item a {} Perfect. HTML5 agnostic Multiple line CSS Writing the best CSS when building with HTML5 Writing the best CSS when building with HTML5
CSS tutorials

CSS Guidelines (2.2.2) – High-level advice and guidelines for writing sane, manageable, scalable CSS
CSS Guidelines (2.2.4) – High-level advice and guidelines for writing sane, manageable, scalable CSS
Today we have decided to showcase a 'map' of the current state of web animation by compiling highly regarded libraries, frameworks and plugins based on their versatility and performance. Infographic 1: The Map of Web Animation The infographic is divided into three sections, the first part is a selection of a few of the most comprehensive animation libraries which offer up all the tools one could ever wish for from easing functions and callbacks to timing control, not to mention the generic animation functions we have come to expect. Infographic 2: List of Tools The second section is dedicated to the various methods for animating UI elements and any others objects in the DOM like scroll animation, parallax, sprites, 3D transformations, physics engines, and transitions. Infographic 3: Performance Tips Last but not least, the third section lays out some basic performance tips to help choose between CSS or Javascript-based animation depending on the requirements of any given project. Web Animation Infographics: A Map of the Best Animation Libraries for JavaScript and CSS3 plus Performance Tips Web Animation Infographics: A Map of the Best Animation Libraries for JavaScript and CSS3 plus Performance Tips
15 Beautiful Text Effects Created with CSS Beautiful text or typography will make your design look attractive. In web design, CSS helps to give style to design including various effects in text or typography. With CSS, you can use clipping and add animation to text to spice things up a little. And to illustrate this, we have collected 15 stunning and cool text effects that are made possible with CSS (some with a little help from Javascript codes). For more things you can do with CSS, check out: Elastic stroke Animation Yoksel animates the stroke of the text with a cool color scheme. SVG Glitch Want to make effects that look like a broken analog TV? Shop Talk logo The Shop Talk logo is recreated by Hugo using only CSS. Slashed Effect This idea by Robet Messerle gives the knife sliced effect, done with less than 70 lines of CSS. Elegant Shadow Effect Long Shadow effect comes to text, made using CSS. Foggy text effect Andreas creates an awesome cinematic foggy effect. SVG text mask Text Animation Hit The Floor Background Clip Text CSS Text-FX 15 Beautiful Text Effects Created with CSS
6 CSS Tricks to Align Content Vertically 6 CSS Tricks to Align Content Vertically Let’s talk about vertical alignment in CSS, or to be more precise how it is not doable. CSS has not yet provided an official way to center content vertically within its container. It’s a problem that probably has frustrated web developers everywhere. But not to fear, in this post, we’re going to run by you a few tricks that can help you imitate the effect. These tricks may however have limitations, and you may have to use more than one trick to complete the illusion. Recommended Reading: How To Obtain Equal Column Height With CSS 1. The first trick we are going to see here uses the position property. We will first set the position of the container element to relative, then we set the child element position to absolute. To align it vertically, move the child element position from the top, by half of the container’s height, and pull it up by half of the child element width. 2. CSS3 Transform has made it easy to put content at the center. 3. 4. 5. 6.
Web - HTML / CSS / JavaScript

CSS Tutorial
Responsive Web Design (RWD) 響應式網站開發教學與心得 @ 小雕雕的家 :: 痞客邦 PIXNET :: Responsive Web Design (RWD) 響應式網站開發教學與心得 @ 小雕雕的家 :: 痞客邦 PIXNET :: 想跳過廢話前言的可以直接點下面的連結到相關主題 0. 前言 1. 2. 2.1. 2.2. 2.3. 3. 3.1. 3.2. 4. 4.1.DIV 內容垂直置中 4.2.Box-Sizing 的使用,避免 padding、border 造成額外寬度引起的破版 4.3.圓形圖片的問題 4.4.使用 Javascript 下 Media Queries 語法 4.5.圖片模糊的處理方式 4.6.使用 Reset CSS 重置各瀏覽器預設的標籤樣式 4.7.關於 CSS 的 display 4.8.分界點 5. 6. 廢話且很長的前言 : 最近公司為了推行動版網站,有想要把現行網頁改成 RWD 設計方式的念頭 因為這樣就不用維護兩個網站邏輯了,能減少一些開發成本,但一開始規劃版面需要點時間 因為必須要根據電腦、平板、手機三種尺寸去做版面設計 雖然很久以前就知道響應式網站的設計方式與原理,但是一直都沒有機會嘗試 因為一直都在寫電腦版! 而且對行動版的觀感不是很好,雖然我 n 年前也在寫 WML跟XHTML (差很多) 以下對行動版網站想法可能比較負面 (慎入) 其實說實在的,我就算用手機瀏覽網頁,還是會手動切換到電腦版網站 因為平常已經習慣電腦版的網頁配置了,一來改成手機版必須要重新去適應與培養操作習慣 二來有些手機版會拿掉一些可能不太重要的東西,但對我來說是重要的資訊 舉例來說, PChome 手機版商品頁的商品介紹只有這樣..... 但電腦版是這樣 (抱歉商品介紹實在太長,只好縮圖) 可以理解站方為了節省大家手機的流量而適度刪減了內容..... 但如果今天你真的是來買東西的,你會想看哪個版本?? 雖然本大爺對花錢不太手軟,但畢竟還是會想要看看商品完整資訊才決定要不要下手啊 再舉一個例子,假設我在打電動happy的時候遇到困難,因此來到了巴哈姆特 以下這是手機版 請告訴我要怎麼找到惡靈古堡Bio6 的討論 @@ 我點開左上 + 右上的功能表都沒看到 以下是電腦版網站,我可以在頁籤上切換各個系列作的討論,BIO6看完我還可以看一下啟示系列咧 這在手機版我真的無法找到....偏偏我每次用手機進來都把我導到手機版 建立手機版的目的是要讓人快速找到想要的資料,並且提供最舒適的瀏覽,不是要折磨使用者的 功能適應性問題還可以用時間來訓練使用者 (如果他真的需要你的資訊) 相對來說找不到想要的資訊反而比較嚴重.... 1. 2. 3. 1. 2.
輕鬆上手CSS(III) - 基本語法傳授!! « MUKI space* 輕鬆上手CSS(III) - 基本語法傳授!! « MUKI space* 「前端基礎 (HTML + CSS + jQuery) 課程」開課啦! 即日起至 7 月底為報名時間,搶在 7/10 前報名更能享有早鳥優惠喔~ ☞ 詳細內容請參考課程說明 輕鬆上手 CSS 系列文 這次要跟大家談論的主題,是修改以及創造的抉擇。 這邊要先跟各位說明,css 的語法跟選擇器是兩種不同的東西,比如以下這段 css: a:hover 是 css 選擇器。 不論以後你要走修改路線或是創造路線(好像遊戲轉職!!) 文字屬性一覽 font-size:11px; font-family:arial,sans-serif; font-style:italic; font-weight:bold; color:#999; letter-spacing:0.1em; line-height:18px; text-align:left; text-decoration:none; 框線屬性一覽 border:1px solid #ccc; border-top:1px solid #ccc; 框線樣式: 實線: solid虛線: dotted雙線: double凹框: inset凸框: outset 背景樣式一覽 background-color:#000; background-image:url("images/bg.gif"); background-attachment:fixed; background-repeat:repeat; background-position:50% 50%; 項目符號樣式一覽 項目符號,我想大家最常用到的就是「如何隱藏項目符號的編號」…但只寫這麼一行感覺很空虛,所以我把幾個編號的樣式也寫出來給大家參考~ list-type-style:none; list-type-style:decimal; list-type-style:disc; list-type-style:circle; list-type-style:squre; list-type-image:url("list.gif"); 邊界與間距 邊界 margin 以及間距 padding 是大家最常用來調整圖層的語法,這邊概略說明兩者的使用方法以及差別: margin:5px; margin-top:5px; padding:5px; padding-top:5px; 來猜猜最後會發生什麼事情吧:)

HTML5, CSS, y JavaScript

Color Picker — HTML Color Codes Color Picker — HTML Color Codes Analogous Complementary Triadic Tetradic Analogous Neutral Shades Tints Tones Color Picker Use the color picker by clicking and dragging your cursor inside the picker area to highlight a color on the right. Color Harmonies Color harmonies are particularly pleasing combinations of two or more colors derived from their relationship on a color wheel. Complementary colors Colors that are directly opposite one another on the color wheel are known as complementary colors. Triadic colors Triadic harmonies consist of three colors equidistant from one another on the color wheel. Tetradic colors Tetradic color harmonies are formed by two sets of complementary colors 60 degrees apart on the color wheel. Analogous colors Analogous harmonies are created by selecting the colors directly adjacent to a chosen color. Neutral colors Neutral schemes, like analogous harmonies, are formed by taking the colors on either side of a chosen color but at half the distance. Color Shades, Tints and Tones
Developer Network
HTML Table Style Generator by eli geske
Responsive Image Breakpoints Generator by Cloudinary
Native Form Elements
On April 26 I posted this year’s version of the Ultimate CSS Survey, a way for us to gather information from CSS developers on their practices, habits, knowledge, and understanding of CSS. More than 1,600 people filled out the survey over the past 6 weeks and now it’s time to show you the numbers. I’ve embedded the results below, and after the embed I’ve posted some of my follow-up comments and observations, especially in comparison to last year’s results. I’ve also included notes on comments that many readers posted in the survey (included as an optional field). Use the up/down arrows to cycle through the survey results ↑ What is the Goal of the Survey? One person wanted to know why we were doing this survey and whether the feedback would change anything. Also, many people last year and this year pointed out that the survey has given them an introduction to CSS tools, features, and technologies that they had never heard of before or maybe had forgotten about. CSS Features Tools Conclusion Results of the Ultimate CSS Survey 2017 — SitePoint Results of the Ultimate CSS Survey 2017 — SitePoint
CSS Transitions, Transforms and Animation Tutorial
In this article you'll learn what you need to know to get started with CSS3 animations. "Animating" with CSS used to be limited to hovering effects. With :hover and :focus pseudo classes we've been able to change color, size, background-color, position, and many other CSS properties based on user action. The :hover trick provides only two states - hovered and non-hovered - with only two keyframes: start and end, and no tweening between these states, creating a harsh and sudden transition. CSS3 transitions solved the tweening issue, enabling transitioning from non-hovered to hovered style (and back) over a period of time. Note that animations are currently supported, prefixed with -webkit- and -moz-, in Chrome, Safari 4+, Firefox 5+, Android Chrome, and iOS webkit. Keyframes To animate elements you first need to define a keyframe animation. In the above code, we've declared the animation name, a starting keyframe and an ending keyframe. Live demo Live demo Live demo Live demo Live demo Animation in CSS3
Sie galten ja schon als ausgestorben. Und keiner wollte sie mehr haben. Vor sehr vielen Jahren aber, so kurz nach den Anfängen des Internets, zu Zeiten des kommerziellen Durchbruchs waren sie allgegenwärtig: Zuerst die animierten GIFs in Form von drehenden Logos und blinkenden Menüs und Buttons. Die Flash-Technologie spielt heute keine Rolle mehr. Was für ein Comeback – und sie sind wiedergekommen, um zu bleiben. Animationen waren deshalb viele Jahre verpönt, weil sie als Spielerei verstanden und eingesetzt wurden. Klar, dass ist auch heute noch auf Webseiten zu finden. jQuery und weitere JavaScript-Frameworks sorgten dafür, dass sich Animations-Effekte fast schon inflationsartig ausgebreitet haben. CSS3 bietet also, was vorher nur mit JavaScript möglich war und geht sogar noch einen Schritt weiter: Recht schnell und einfach Animationen zu erstellen. Dieser Artikel soll die Möglichkeiten von CSS3 aufzeigen schnell und einfach interessante Animationen und Effekte zu erstellen. 1. 2. Fazit Der Leitfaden für CSS3-Animationen - Webdesign Journal
CSS animation

Change Css class properties with jQuery
Level Up Your CSS Animations with Cubic Bezier Transitions and animations are making waves across web development, and rightfully so. They are awesome, easily useable (and abusable), and have the ability to take your front end components and interfaces from good to great. The anatomy of declaring transitions and animations are similar, and only two things are required: In the case of transitions, you select the property you want to transition. For animations, you select the keyframe block.You then declare the duration length for the animation or transition. Some typical CSS might look like this: Transitions and animations also have another shared property that controls how the intermediate values between states are calculated, and that's called the transition timing function. When dealing with simple animations and transitions, it's unlikely that you've touched the step functions - those are more geared towards keyframe cartoon-style animations, which is a very specific use case. Cubic Bezier to the Rescue! Let's digress a little bit.
Just in case you have brain farts about this constantly like I do. If That's what media queries are: logical if statements. "If" these things are true about the browser, use the CSS inside. And The keyword and. Or Comma separate. Technically these are treated like two separate media queries, but that is effectively or. Not Reverse the logic with the keyword not. Just doing not (max-width: 600px) doesn't seem to work for me, hence the slightly funky syntax above. Exclusive To ensure that only one media query is in effect at time, make the numbers (or whatever) such that that is possible. Logically this is a bit like a switch statement, only without a simple way to do "if none of these match do this" like default. Overriding There is nothing preventing more than one media query from being true at the same time. Media queries add no specificity to the selectors they contain, but source order still matters. Mobile First Desktop First Gettin Wacky You can be as complex as you want with this. Share this: Logic in Media Queries
CSS Articles

A Complete Guide to Flexbox Background The Flexbox Layout (Flexible Box) module (a W3C Candidate Recommendation as of October 2017) aims at providing a more efficient way to lay out, align and distribute space among items in a container, even when their size is unknown and/or dynamic (thus the word "flex"). The main idea behind the flex layout is to give the container the ability to alter its items' width/height (and order) to best fill the available space (mostly to accommodate to all kind of display devices and screen sizes). A flex container expands items to fill available free space or shrinks them to prevent overflow. Most importantly, the flexbox layout is direction-agnostic as opposed to the regular layouts (block which is vertically-based and inline which is horizontally-based). Note: Flexbox layout is most appropriate to the components of an application, and small-scale layouts, while the Grid layout is intended for larger scale layouts. Basics & Terminology Properties for the Parent(flex container) display
Media Queries for Standard Devices
Controlling CSS Animations and Transitions with JavaScript

CSS only

css menu


CSS Zen Garden Examples