background preloader

HTML

Facebook Twitter

SEO

A Whole Bunch of Amazing Stuff Pseudo Elements Can Do. It's pretty amazing what you can do with the pseudo elements :before and :after.

A Whole Bunch of Amazing Stuff Pseudo Elements Can Do

For every element on the page, you get two more free ones that you can do just about anything another HTML element could do. They unlock a whole lot of interesting design possibilities without negatively affecting the semantics of your markup. Here's a whole bunch of those amazing things. A roundup, if you will1. FIXED! font-face rendering incorrectly in Chrome. For a while now web designers have been tackling the issue of fonts on the web.

FIXED! font-face rendering incorrectly in Chrome

Times have now changed from the days of designing strictly in web-safe fonts (Arial, Tahoma, Georgia etc.) to using JavaScript (Cufon) to render more fancy fonts. With a huge wealth of fonts (both paid and free) now readily available online to designers, rendering fonts online has become more of an issue. Sure, your website may look great in Photoshop, but how are you going to emulate that intricate font across multiple browsers?

How to fix the ugly font rendering in Google Chrome - Dev Metal. An image says more than thousand words: This was indeed how a lot of webfonts (Google Webfonts and also highly professional fonts from Typekit etc.) looked in Firefox (left) and Google Chrome (right) on Windows systems (and eventually elsewhere too).

How to fix the ugly font rendering in Google Chrome - Dev Metal

No joke! To clarify this: The only browser that completely messed up Google Webfonts was Google’s browser Chrome. How sick is that ? In 2013 Opera browser has switched its rendering engine (to blink, thanks to the commenter for the notice), so this problem exists in Opera too. Displaying SVG in Web Browsers - SVG Tutorial. Displaying SVG in web browsers like Chrome, Firefox and Internet Explorer can be done in several ways: Point the browser to the URL of the SVG file.

Displaying SVG in Web Browsers - SVG Tutorial

Embed SVG inside an HTML page You can embed an SVG image in an HTML file in several ways: Using an iframe element Using an img element Using the SVG image as background image. Using an svg element Using an embed element Video Version of Tutorial. Html - Change an input's HTML5 placeholder color with CSS. Css3 - How to give border to any element using css without adding border-width to the whole width of element. HTML5 Form Validation. HTML5 Form Validation Examples < HTML. The option of using pure HTML (sometimes with a dab of CSS) to complement JavaScript form validation was until recently unthinkable.

HTML5 Form Validation Examples < HTML

Sure there have been all kinds of whacky JavaScript plug-ins over the years aimed at achieving something similar, but never a single standard that we could work towards. For a more detailed introduction to HTML5 form validation you can find some great articles linked under References below. In this article we intend to present only a number of simple examples to get you started, covering basic form element types.

Before you ask, and someone always does, these examples will currently work only in the following browsers: Safari 5, Chrome 6, Opera 9, Firefox 4 Beta and the iPhone/iPad. Also each browser has a slightly different default behaviour. 1. Html - Image center align vertically and horizontally. Items on circle with CSS. April 02, 2013 If you like to experiment or do a little bit of webdesign, then you have probably already tried to put elements on a circle.

Items on circle with CSS

Unless you're a CSS hacker, you've probably set a class/ID per item, then used left and top accordingly to position everything around the circle. But in most cases, you would have ended doing this with JavaScript, or jQuery. There are plenty of plugins doing this out there, and no doubt they are all good. Css3 - Select every Nth element in CSS. Html - Disable a link using css. Html - How to increase space between dotted border dots.

Jquery - Twitter Bootstrap carousel vertical sliding. Demo: Pure CSS GUI icons (experimental) Css sprites - Clip/Crop background-image with CSS.

JS

Jquery pushing custom history. AngularJS. Jetstrap - The Bootstrap Interface Builder. 20 Awesome Resources for Twitter Bootstrap Lovers. Generators Bootstrap Custom Build. jQuery. Oyvindkinsey/easyXDM. Code a Spinning Circular Menu With CSS. Don’t be a square, break outside your boring box and try on a circle for size.

Code a Spinning Circular Menu With CSS

Character Code Finder. Making of the World Wonders 3D Globe. Introduction to the World Wonders 3D globe If you've viewed the recently launched Google World Wonders site on a WebGL-capable browser, you might have spotted a fancy spinning globe at the bottom of the screen.

Making of the World Wonders 3D Globe

This article lets you in on how the globe works and what we used to build it. To give you a quick overview, the World Wonders globe is a heavily tweaked version of the WebGL Globe by the Google Data Arts Team. We took the original globe, stripped out the bar graph bits, changed the shaders, added fancy clickable HTML markers and Natural Earth continent geometry from Mozilla's GlobeTweeter demo (big thanks to Cedric Pinson!) Html - Yet Another cross-domain iframe resize Q&A. 6 Methods For Vertical Centering With CSS. Centering elements vertically with css is something that often gives designers trouble.

6 Methods For Vertical Centering With CSS

There are however a variety of methods for vertical centering and each is fairly easy to use. Today I want to present 6 of those methods. I’ve usually skipped over the topic of vertical centering, since there are some good posts already out there that are easy enough to find, but recently Bikram commented requesting a tutorial on vertically centering so I thought why not. You can view demos of each of the methods below by clicking here.

Stop Apache Listing Directories. Last Updated 25th November 2007 From time to time I wish to use a directory/folder on a website that does not contain an index, home or default file.

Stop Apache Listing Directories

With Apache this means that if a web browser is pointed to a folder and there are no such files in that folder, the user will be giving a listing of files. For Example: Stop Typekit Fonts From Slowing Down Your Site. Typekit is one of the easiest ways to get fancy fonts working on your website. Just sign up for an account, pick a font and paste a few lines of code into your pages. TypeKit takes care of the rest, ensuring that your fonts load and there’s no unsightly flash of unstyled content (FOUT) or other problems. There is, however, one possible problem with the default way of embedding Typekit fonts. If the TypeKit code fails to load, it can slow down the rest of your site. Typekit avoids FOUT by pausing your page load for a fraction of a second, but if the Typekit script never finishes loading, that fraction of a second can turn into many seconds.

Typekit. Forbidden permission issue on Typekit. Typekit is a service launched in the year 2009 which allows web owner to use @font-face css property to embed non-standard font for online documents using javascript and subscription services. Installation of typekit is pretty easy. You can follow their suggested steps here and made the beautiful fonts they have available in your site. OK, let'’s jump to our main objective, there are 3 main font events and they have corresponding class names which are: “loading”, “active”, “inactive”. Css3 - What's the math behind CSS's background-size:cover. Html - How to align Facebook Like Button in dynamically-created iframe.

Centering in the Unknown. By Chris Coyier On centering, pseudo elements, vertical-align When it comes to centering things in web design, the more information you have about the element being centered and its parent element, the easier it is. So what if you don't know anything? It's still kinda doable. #Not too hard: Known Child If you know the height and width of both the element to be centered and its parent element (and those measurements won't change, i.e. not fluid width environment) one foolproof way to center the element is just to absolute position it with pixel values so it looks perfectly centered. Let's say you know the exact width and height of the element you are centering, but the parent element can change in height and width. You absolutely position the element to be centered and set the top and left values to 50% and the margin top and left values to negative half of the elements height and width. #Harder: Unknown Child The hard comes in when you don't know the dimensions of the element to be centered.

10+ Testing Tools for Responsive Web Design. Finally, as we develop our responsive website, we’ll come to the point where our content clean and adaptive, our images are flexible and our layout is fluid. Now we need to make sure that our site works in as many browsing environments as possible and test the website in different resolutions and how the media queries work. To get started with building a responsive site, having a strong toolkit (see also: 10 Free and Responsive jQuery Slide/Gallery Plugins and jQuery Plugins for Fluid Layouts/Responsive Web Design) can make a world of difference. Testing responsive web design could turn out to be a tough job, it’s not convenient resizing to a specific dimension (width and height) each time.

Changing browser width and testing it across different browsers and devices is painful and adds loads of development time. These tools listed below will definitely help you in testing your responsive website at multiple screen sizes. Removing The Dotted Outline. Anchor links (<a>'s) by default have a dotted outline around them when they become "active" or "focused".

In Firefox 3, the color is determined by the color of the text. I believe in previous versions and in some other browsers it is by default gray. This is default styling for the purpose of accessibility. Overriding The Default Text Selection Color With CSS. One of those cool CSS3 declarations that you can use today is ::selection, which overrides your browser-level or system-level text highlight color with a color of your choosing. At the time of this writing, only Safari and Firefox are supporting this, and both in slightly different ways.

Fortunately, this can be thought of as one of those "forward-enhancement" techniques. ¿Se puede hacer operaciones matemáticas con CSS?: sí, con la función calc() Suena a ciencia ficción poder realizar cálculos en el CSS, pero así es, sin necesidad de JavaScript podemos realizar sumas, restas, multiplicaciones y divisiones gracias a la función calc(). Pero lo mejor es que nos permite sumar distintas unidades (como em, px, %...), lo que nos facilitará la labor de ajustar elementos con medidas relativas que tengan, por ejemplo, bordes o márgenes que suelen tener el tamaño en píxeles y descolocan gran parte del diseño, esto algo que dificulta los diseños adaptables. Y otra gran ventaja es que funciona hasta con Internet Explorer 9 (increíble, pero cierto). El funcionamiento es muy simple, podemos usarlo para cualquier propiedad CSS que admita unidades de medida, sean del tipo que sean (de tamaño, tiempo...) y actualmente es aconsejable usar el prefijo de webkit, aunque está bastante bien adoptado por todos los navegadores de escritorio (desde hace mucho tiempo, pero casi ningún navegador móvil admite su uso).

Convert an image to grayscale in HTML/CSS. Responsive Images. Responsive Web Design with Twitter Bootstrap. Twitter Bootstrap Forms tutorial. Twitter Bootstrap Forms tutorial has average rating 7 out of 10. Total 661 users rated. Rails - Bootstrap. Css - How do I center a Bootstrap div with a 'spanX' class. Jquery find element at a particular position. [Tutorial] How to only resize textarea vertically?

Quick Tip: An Introduction to Sammy.js. You've been seeing it for a while now with Google's Reader, Gmail, and most recently, on Facebook. Probably, you, too, would like to write RESTful evented JavaScript applications. Well, fellow developers, meet Sammy.js, a tiny JavaScript framework built on top of jQuery. How to use Bootstrap scroll spy. Html - Image map support in firefox, chrome and other browsers. Modify the URL without reloading the page. Css - How to properly integrate HTML5 Boilerplate with Twitter Bootstrap.