background preloader

CSS

HTML & CSS

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
Cascading Style Sheets (CSS) are a stylesheet language used to describe the presentation of a document written in HTML or XML (including XML dialects like SVG or XHTML). CSS describes how elements should be rendered on screen, on paper, in speech, or on other media. CSS is one of the core languages of the open web and has a standardized W3C specification. Developed in levels, CSS1 is now obsolete, CSS2.1 is a recommendation, and CSS3, now split into smaller modules, is progressing on the standardization track. CSS Reference An exhaustive reference for seasoned Web developers describing every property and concept of CSS. See also Mozilla's Learning CSS section Web languages CSS is often applied to: HTML, SVG, XHTML and XML. Join the Web layout community Document Tags and Contributors CSS CSS
CSS / HTML i els browsers diferents
HTML / CSS

Hakim El Hattab
HTML - CSS

box-shadow From: 0 0 black To: 0 150px 10px -50px rgba(0,0,0,.5) Author: @leaverou Animatable: One property, two values, endless possibilities Animatable: One property, two values, endless possibilities
On the modern web there are numerous techniques that can be used to create interesting interactions, but the simplest and most elegant is usually CSS, and specifically the additions that came with CSS3. Back in the old days, we had to rely on JavaScript for this kind of effect, but thanks to ever-increasing support for CSS3 across browsers, it’s now possible to set up effects like these without any scripting at all. There are sadly still browsers (IE9 and below) that don’t support CSS3, so you’ll either need a fallback for legacy browsers or to treat the effect as a progressive enhancement. Today, we’re going to look at how we can apply cool, but neat hover effects to show and hide images captions. If you’d prefer to follow along with the code, you can download the files here. Demo 1 The first demo is our simplest: the image will fly to its right to reveal the caption. The markup For our first demo’s HTML we will use an unordered list and then wrap the caption and the image inside it. The CSS 3 cool CSS3 image hover effects 3 cool CSS3 image hover effects
Winona Ujarak Wayra Tamaya Rayen Pipaluk Moema Based on the "Add New Location" button concept by Charles Patterson. Isi Aylen Saqui Wapasha Nina Nanuk Nuka Antiman Itzel clip-path does not work in IE, so you'll see the line under the icon. Naira Quidel Sacnite Shikoba Based on Portfolio Update! Icons "Vicons" by Victor Erixon. If you enjoyed this demo you might also like: Button Styles Inspiration Button Styles Inspiration
HTML and CSS

CSS Layers - CSS tutorial CSS Layers - CSS tutorial With CSS, it is possible to work with layers: pieces of HTML that are placed on top of the regular page with pixel precision. The advantages of this are obvious - but once again Netscape has very limited support of CSS layers - and to top it off: the limited support it offers is quite often executed with failures. So the real challenge when working with layers is to make them work on Netscape browsers as well. First look at this example: Second look at the code: To create a layer all you need to do is assign the position attribute to your style. The position itself is defined with the top and left properties. Finally, which layer is on top is defined with the z-index attribute. You can either position your layer calculated from the upper left corner(absolute) or calculated from the position where the layer itself is inserted (relative). While the position property indicates the out spring of our coordinate system, the left and top properties defines the exact position of our layer.
HTML Basics - HTML Tutorials HTML Basics - HTML Tutorials This one just tells about how to do simple, (and fun!) things to spice up your Myspace, Xanga, or whatever! Okay...so... [size=3]Hearts and what-not[/size] Now, a lot of people just wanna make a heart like this: And you know what?! Its super easy! &hearts; makes this: ♥ &spades; makes this: ♠ &clubs; makes this: ♣ And &diams; makes this: ♦ You got hearts! [size=3]Soo.....you want an image? 6.) EXAMPLE: I want a picture of this graphic I made using Photoshop so I can show it off to all my friends. So my code would look like this: You can always replace the "Image I wanna Show Off" text with something else like, "My Dog Scruffy" [size=3]Skip a line baby YEAH! So, you want to make a break in your lines? Well, its super easy! For example, to make something like the above, just do this: Hi, my name is Sierra. Would look like this: Hi, my name is Sierra. Awesomeness. [size=3]Centering Text[/size] [center]So, you want your text in the center like this? <center>Your Text/Images</center> <b>Your bold text</b>
HTML Colors
CSS - jquery - Transitions

CSS3 Animations
This post will introduce you to CSS transitions and CSS transforms: the CSS power couple. When used together, these properties allow you to create simple animations and add valuable interaction and visual feedback for your users. Just remember when adding any kind of movement to your project to keep it simple, subtle, and consistent. The movement you create should convey meaning, always enhancing, not distracting from the interaction for your users. So what are transforms and transitions? At their most basic level, transforms move or change the appearance of an element, while transitions make the element smoothly and gradually change from one state to another. CSS transitions: an introduction Let’s start with CSS transitions. Hover below: In this post I’ll be using transitions in conjunction with transforms. There are two properties that are required in order for the transition to take effect: 1. transition-property 2. transition-duration Note: Transition Shorthand CSS syntax examples: scale skew CSS Transitions and Transforms for Beginners CSS Transitions and Transforms for Beginners
jquery - How to slide a hidden div up/down on click of a button?
About CSS

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* 「前端基礎 (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; 來猜猜最後會發生什麼事情吧:)
CSS Zen Garden: The Beauty of CSS Design So What is This About? There is a continuing need to show the power of CSS. The Zen Garden aims to excite, inspire, and encourage participation. CSS allows complete and total control over the style of a hypertext document. Participation Strong visual design has always been our focus. You may modify the style sheet in any way you wish, but not the HTML. Download the sample HTML and CSS to work on a copy locally. Benefits Why participate? Requirements Where possible, we would like to see mostly CSS 1 & 2 usage. Luckily, designing this way shows how well various browsers have implemented CSS by now. We ask that you submit original artwork. This is a learning exercise as well as a demonstration. By Dave Shea.
CSS Zen Garden: The Beauty of CSS Design So What is This About? There is a continuing need to show the power of CSS. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. CSS allows complete and total control over the style of a hypertext document. Participation Strong visual design has always been our focus. You may modify the style sheet in any way you wish, but not the HTML. Download the sample HTML and CSS to work on a copy locally. Benefits Why participate? Requirements Where possible, we would like to see mostly CSS 1 & 2 usage. Luckily, designing this way shows how well various browsers have implemented CSS by now. We ask that you submit original artwork. This is a learning exercise as well as a demonstration. By Dave Shea.
So What is This About? There is a continuing need to show the power of CSS. The Zen Garden aims to excite, inspire, and encourage participation. CSS allows complete and total control over the style of a hypertext document. Participation Strong visual design has always been our focus. You may modify the style sheet in any way you wish, but not the HTML. Download the sample HTML and CSS to work on a copy locally. Benefits Why participate? Requirements Where possible, we would like to see mostly CSS 1 & 2 usage. Luckily, designing this way shows how well various browsers have implemented CSS by now. We ask that you submit original artwork. This is a learning exercise as well as a demonstration. By Dave Shea. CSS Zen Garden: The Beauty of CSS Design
CSS Zen Garden Examples

CSS 3

In addition to the techniques below, see this roundup of additional explorations of this problem. Garrett Dimon: Data tables don't do so well with responsive design. Just sayin'. He has a good point. Responsive design is all about adjusting designs to accommodate screens of different sizes. So here's what we are gonna do... We're going to use "responsive design" principles (CSS @media queries) to detect if the screen is smaller than the maximum squishitude of our table. We're being good little developers and using Plain Ol' Semantic Markup here for our table. <table><thead><tr><th>First Name</th><th>Last Name</th><th>Job Title</th></tr></thead><tbody><tr><td>James</td><td>Matman</td><td>Chief Sandwich Eater</td></tr><tr><td>The</td><td>Tick</td><td>Crimefighter Sorta</td></tr></tbody></table> Our regular CSS is nothing special: The small-screen responsive stuff comes in now. Hey what about IE? <! See it View Demo Download Files This isn't perfect... UPDATE: Other ideas View Demo View Demo Responsive Data Tables
width
align-content
html/css

CSS

A Visual Guide to CSS3 Flexbox Properties
A Beginner’s Guide to Pure CSS Images – dailycssimages – Medium
Position any background image with offsets in all corners
CSS tricks

css - Remove white space below image
css - Remove white space below image
Inspiration for Button Styles and Effects
Color Picker — HTML Color Codes
Responsive Image Breakpoints Generator by Cloudinary
HTML CSS

CSS Layouts & Resources

CSS super power

HTML, CSS, PHP, Javascript, XML, Web Service y SOAP

Css Html Javascript

HTML, CSS & JS

CSS, HTML, MD