background preloader

Box-shadow, one of CSS3′s best new features

Box-shadow, one of CSS3′s best new features
Home / CSS3 Previews / Box-shadow, one of CSS3’s best new features The box-shadow property allows designers to easily implement multiple drop shadows (outer or inner) on box elements, specifying values for color, size, blur and offset. Browser support is growing of late with Mozilla (Firefox), Webkit (Safari/Chrome/Konqueror), Opera and the IE9 Platform Preview all offering a decent implementation of the spec, although Mozilla and Webkit still require their respective -moz- and -webkit- prefixes (note Mozilla Firefox 4.0+ no longer requires the -moz- prefix). Here’s a basic example: Firefox, Safari/Chrome, Opera and IE9 users should see a grey fading shadow under this box. In theory, the code for this is straightforward: But for the moment, as with many other ‘experimental’ CSS3 properties, you’ll need to use the following prefixes to support Mozilla and Webkit: How it Works The Syntax: box-shadow: none | [ , ]* = inset? Examples: Creating a basic drop shadow Layering multiple shadows Example:

Animation Using CSS Transforms < CSS Tweet363 Shares Share0 Tweets37 Comments The examples on this page will work now in Firefox, Safari, Chrome, Opera and Internet Explorer 10. In older browsers you will see either no effects, or the transforms taking place without any animation. The animations presented below involve setting up a transformation to take place in response to a mouseover or other event. Then, rather than applying the effect instantly, we assign a transition timing function which causes the transformation to take place incrementally over a set time period. There are also other kinds of animation available, including @keyframes for perpetual motion, and requestAnimationFrame which gives complete control over the timing and path. Firefox and Opera now support these transforms with an almost identical syntax - just replace -webkit- with -moz- or -o- in the examples below. Internet Explorer 10 supports transitions with no prefix. To support all modern browsers, the following styles should be used for transitions:

[HTML] Semantyczny blog w HTML5 - Porady i tutoriale WWW - forumweb.pl zawsze aktualna wersja tutorialu Witam wszystkich! To ponoć forum webmasterskie, a nie znalazłem ani jednego tutoriala na temat HTML5. Trza to naprawić Od razu uprzedzam, że słowa "semantyczny" i "HTML5" z tematu są rozdzielne i część porad można zastosować w starym dobrym HTML4.Dobra, do rzeczy. Nasz celChcemy być cool i porzucamy zgrzybiałego HTML4 na rzecz jego potomka . HTML5Okey, to zaczynamy. Jeśli nie jesteś odważny, migrację na HTML5 możesz zakończyć w tym miejscu. Kolejnym wrogiem jest ustawienie kodowania. ). Teraz wystarczy abyście wiedzieli, że akapit można z pełnym spokojem zamienić na h2 i oba nagłówki opatulić nowiutkim hgroup. W tym celu posłużymy się znacznikiem nav, który powstał specjalnie po to, aby oznaczać elementy nawigacyjne.W naszym nagłówku pozostał jeszcze formularz wyszukiwania, ale do niego wrócę później i omówię go razem z formularzem dodawania komentarzy. Dobra, teraz zatrzymujemy się na div.post - to też można ulepszyć. ). ). ). ). )? email - dla e-maili

CSS How to Géolocalisation en HTML5 Tutoriel issu de ma présentation à la KiwiParty 2011. La géolocalisation fait partie des API gravitant autour de HTML5 (Geolocation API Specification) et des nouvelles fonctionnalités introduites par la mobilité. Ses usages sont nombreux et souvent corrélés avec des bases de données de renseignements géographiques : Plans/cartes, calculs de position et d'itinéraires Renseignements locaux en mobilité (points d'intérêts proches) Résultats contextualisés sur les moteurs de recherche Méta-informations jointes aux photos/vidéos De quelles informations a-t-on besoin pour se géolocaliser ? Dans l'espace, trois coordonnées sont nécessaires : Une quatrième coordonnée peut être prise en compte pour les puristes : le temps. L'API donne aussi accès lorsqu'il y a déplacement à la vitesse et à la direction (en ° par rapport au nord géographique). De quels moyens dispose un navigateur pour se géolocaliser ? Disponibilité de l'API ? L'API repose sur l'objet geolocation membre de navigator. Confidentialité <!

BAZINGA Designs Warszawa » Tutoriale » Jak założyć sklep internetowy za darmo? Pre­sta­Shop to spraw­ny, no­wo­cze­sny,wy­daj­ny i łatwy w ob­słu­dze sil­nik skle­pu in­ter­ne­to­we­go - za­rów­no dla dla klien­tów jak i ad­mi­ni­stra­to­ra. Pre­sta­Shop za­pew­nia: Pro­stą edy­cję i do­da­wa­nie to­wa­ru, zdjęć i opi­sówNie­skoń­czo­ną ilość ka­te­go­rii i pod­ka­te­go­rii to­wa­rówWie­lo­ję­zycz­nośćPrzy­ja­zne ad­re­syEdy­to­wal­ne stro­ny CMSDar­mo­we lub nie­dro­gie wtycz­ki roz­sze­rza­ją­ce funk­cjo­nal­ność skle­puŁa­twość w do­pi­sy­wa­niu mo­du­łów na ży­cze­nie klien­taDobry sys­tem tzw. Dzię­ki ochot­ni­kom zwią­za­nym z por­ta­lem Pre­sta­shop.​pl mamy do dys­po­zy­cji go­to­wą do za­in­sta­lo­wa­nia pol­ską wer­sję Pre­sta­Shop ze wszyst­ki­mi po­trzeb­ny­mi nam na start do­dat­ka­mi. Aby sklep mógł dzia­łać po­trze­bu­je swo­je­go miej­sca na ser­we­rze i do­me­ny. Stwórz na swoim dysku nowy fol­der i na­zwij go "pre­sta­shop-in­sta­la­cja". Ikon­kę MYSQL roz­po­znasz bo la­ta­ją­cym, nie­bie­skim Del­fi­nie Je­ste­śmy już pra­wie na miej­scu!

The Shapes of CSS Learn Development at Frontend Masters CSS is capable of making all sorts of shapes. Squares and rectangles are easy, as they are the natural shapes of the web. Add a width and height and you have the exact size rectangle you need. We also get the ::before and ::after pseudo elements in CSS, which give us the potential of two more shapes we can add to the original element. Square Rectangle Circle Oval Triangle Up Triangle Down Triangle Left Triangle Right Triangle Top Left Triangle Top Right Triangle Bottom Left Triangle Bottom Right Curved Tail Arrow via Ando Razafimandimby Trapezoid Parallelogram Star (6-points) Star (5-points) via Kit MacAllister Pentagon Hexagon Octagon Heart via Nicolas Gallagher Infinity via Nicolas Gallagher Diamond Square via Joseph Silber Diamond Shield via Joseph Silber Diamond Narrow via Joseph Silber Cut Diamond via Alexander Futekov Egg Pac-Man Talk Bubble RSS Feed via Kevin Huff 12 Point Burst via Alan Johnson 8 Point Burst via Alan Johnson Yin Yang via Alexander Futekov TV Screen Lock

How to Create a Beautiful Icon with CSS3 Today, I'd like to show you a neat trick. We'll create a document icon with pure CSS3. Even better, this effect will only require a single HTML element. The Game Plan Create a square boxRound the edgesUse pseudo elements to create a curled cornerCreate the illusion of text with a striped gradient Let's get started! Step 1: Create a Box We'll begin by adding our single HTML element: an anchor tag. Let's set the somewhat arbitrary dimensions for our icon. Note that, above, we're setting a positioning context in order to work with pseudo elements shortly. Next, let's add some shine using CSS box shadows. So Far, We Have: Step 2: Rounded Corners Next, we need to create a rounded corner effect. By passing four values, we can specify the top, right, bottom, and left radii, accordingly. Which Gives Us... Step 3: One Curled Corner To create the illusion of a curled corner, we'll use generated content, or pseudo elements. First, add content :before our icon. Tada! Step 4: Adding Lines We're Finished!

Create a Typography Based Blog Layout in HTML5 Last week I posted part one of this tutorial series covering the process of creating a typography based blog design in HTML5 and CSS3. We finished off the Photoshop concept with the design based on a strict grid and text laid out in our desired typeface. Now let’s replicate the design in a static HTML5 and CSS3 prototype before finishing it all off as a fully working WordPress theme. Head back to last week’s tutorial post if you want to follow the step by step process of building this design in Photoshop. The WordPress theme we’re creating is called Typo. View the Typo blog design Photoshop tutorial With this design being pretty minimal and largely typography based there’s not much in the way of background image files that need exporting. This particular layout will be built with HTML5 elements, so it’s important to take a moment to familiarise yourself with the elements and check whether they fit into the layout semantically. <! The full HTML layout View the full annotated HTML5 code

Breaking Floats Without Hacks Learn how to properly use the CSS float and the clear properties. I have run across so many problems with designers confused about how to properly make use of the CSS property, clear. As a result, I'll be discussing two common mistakes and how to avoid them in this article. The Full Break When you want to clear all floats across the entire width of the page or a div, this single line of CSS code just won't cut it when using: <div class="clear"></div>. clear: both; Instead, we're going to use four lines. width: 100%; height: 1px; margin: 0 0 -1px; clear: both; Alright, let's break this down. I've seen this hack around, but if anyone can find an instance where the following code works properly and mine doesn't, please email me, I'd love to see it! Cancelling Inherited Floats While float: none; can work, clear can be an easier solution. Floats and clear are two of the most important CSS properties, so hopefully, whether you're an amateur or expert, this article gives you something to think about.

jQuery CSS – selektory atrybutów, których prawdopodobnie nie znasz cz. 2 | Adrian Bienias W poprzedniej części kursu css zaprezentowałem Ci selektory elementów. Dziś zajmiemy się selektorami atrybutów. Atrybuty to po prostu dodatkowe parametry elementów. Klasa i ID również są atrybutami danego elementu. Zamiast stylować elementy o wybranej klasie za pomocą selektora atrybutu możesz ostylować np. wszystkie obrazki z atrybutem title. Jak to wygląda w praktyce? selektor[atrybut] W poniższym przykładzie nadamy czerwony kolor tekstu paragrafom, które mają atrybut class (obojętnie jaki) oraz kolor zielony paragrafom, które mają atrybut class i title jednocześnie. Efekt: selektor[atrybut="wartość"], selektor[atrybut~="wartość"] W poniższym przykładzie dla przypomnienia użyjemy konstrukcji selektor[atrybut]. Dodatkowo zastosujemy nową konstrukcję selektor[atrybut="wartość]. Dodanie tyldy przed znakiem równości oznacza, że w atrybucie musi wystąpić wybrane słowo oddzielnie. selektor[atrybut|="wartość"], selektor[atrybut^="wartość"] Dwie nowe możliwości. Praktyczne przykłady

Circle Hover Effects with CSS Transitions « Previous Demo: Animated Responsive Image Grid Back to the Codrops Article Use what you have by Angela Duncan View on Dribbble Common Causes of Stains by Antonio F. Mondragon View on Dribbble Pink Lightning by Charlie Wagers View on Dribbble CSS3 Patterns Gallery Browser support The patterns themselves should work on Firefox 3.6+, Chrome, Safari 5.1, Opera 11.10+ and IE10+. However, implementation limitations might cause some of them to not be displayed correctly even on those browsers (for example at the time of writing, Gecko is quite buggy with radial gradients). Also, this gallery won’t work in Firefox 3.6 and IE10, even though they support gradients, due to a JavaScript limitation. Submission guidelines If you have a new pattern to submit, please send a pull request. Does it present a new technique?

FIXED! font-face rendering incorrectly in Chrome For a while now web designers have been tackling the issue of fonts on the web. 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? There are a variety of font services out there: fonts.com and Google fonts are the big players; however we decided to go down the route of @font-face, as we have a large collection of bought fonts already that we could utilise through @font-face. Skip To The Fix! font-face @font-face is a CSS rule which allows you to download a particular font from your server to render on a webpage if the user hasn’t got that specific font installed. font-face vs Chrome The FIX! Try It Yourself .

Related: