background preloader

Advanced CSS Menu

Advanced CSS Menu
Last tutorial, I showed you how to design a watercolor effect menu in Photoshop. This tutorial I will show you how to slice up the menu design (step by step) and put them together with CSS. Most of you probably know how to code a horizontal or vertical CSS list menu. Now let's take it to the next level — code an advanced (un-typical) list menu utilizing the CSS position property. View Demo CSS menu Download Demo ZIP Overview Here are the required graphics to assembe the menu (you can download from the zip). 1. Open the Photoshop file. 2. Turn off the background Layer Group and leave only the menu text layers visible. Create a new file and take note of the file dimension (w x h), in my case the "home" graphic is 144 x 58px. Here is how the hover effect will work. Repeat this step for the other buttons. 3. When you are done with the graphics, let's start coding. #menu Reset the menu to no padding, no margin, and no list-style. #menu span #menu a The key point here is the text-indent property. Related:  HTML/CSS

30+ Pure CSS Menu Tutorials For Web Developers CSS is an very useful and effective tool which help you separate the representation definitions of such structured documents as HTML, XHTML, XML from content. It opens the doors to a lot of powerful and rich opportunities such as create a whole new look, feel, and effect of sites. We introduced some useful CSS skills, helpful CSS tools and most useful CSS resource in pervious articles. In this article, we collected 30+ pure CSS Menu tutorials for web developers. Advanced CSS Menu This tutorial I will show you how to slice up the menu design (step by step) and put them together with CSS. Advanced CSS Menu Trick What we want to do here, is instead of simply altering the state of the navigation item the user is currently rolling over, we want to alter the non navigation items as well. A Great CSS Horizontal Drop-Down Menu The question has been asked numerous times in the css forum, "Is a there way to create a css horizontal drop-down menu in css that will work on most browsers. CSS menus

Webmaster, tutoriaux et ressources Dreamweaver, Flash, Photoshop, CSS, Javascript - weByo.[net] Powerful CSS-Techniques For Effective Coding | CSS | Smashing Ma Advertisement Sometimes being a web-developer is just damn hard. Particularly coding is often responsible for slowing down our workflow, reducing the quality of our work and sleepless nights with pizza and coffee laying around the laptop. Reason: with a number of incompatibility issues and quite creative rendering engines it sometimes takes too much time to find a workaround for some problem without addressing browsers with quirky hacks. One year ago we’ve published the post with 53 CSS-Techniques You Couldn’t Live Without where we provided references to the most useful CSS-techniques which are often used in almost every project. In this post we present 50 new CSS-techniques, ideas and ready-to-use solutions for effective coding. Thanks to all developers who contributed to the CSS-based design over the last year. CSS-Techniques 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43.

Super Fantastic CSS Navigation Image Rollovers | The Blog of Joren Rapini The fun part of CSS (if you’re a weirdo like me and get a kick out of this sort of thing) is coming up with the most optimized, cleanest, accessible, and compliant code that you possibly can. This tutorial will show you one of my favorite ways of doing a navigation menu with image rollovers done in CSS that uses only one image and very minimal HTML / CSS code. This is by no means the only way of going about it, nor is it the “right” way if there is such a thing, but I’ve found this to be a very quick and efficient way of accomplishing our task. This article is the first of a 2 part series, and the second half will apply this tutorial into creating a CSS only dropdown menu navigation with the image rollovers that is compliant with IE6 and up. Click here to see a demo of what we’ll be doing. The first trick is to make your navigation image. Next we will write all of the HTML out: 01. 02. 03. 04. 05. 06. 07. 08. 09. 10. 11. I always set up my navigation menus in unordered lists. 01. 06.

Main Page - F-Spot HTML - Medien Wiki HTML[[HTML|Hypertext Markup Language]] steht zwar für Hypertext Markup Language, trotzdem ist HTML[[HTML|Hypertext Markup Language]] keine Programmiersprache, sondern eine sog. Auszeichnungssprache - ein dokumentenbeschreibendes Format. HTML[[HTML|Hypertext Markup Language]] besteht eigentlich nur aus Tags, die (wenn XML-kompatibel) den Inhalt umschließen und verschachtelt sein können. <html><head>Hier ist der Kopf</head><body>...und hier der Körper</body></html> Struktur Das Grundgerüst einer HTML[[HTML|Hypertext Markup Language]]-Datei sieht typischerweise wie folgt aus: <! Erläuterung der Zeilen: Definition des Dokumentenformats Es gibt folgende sog. Tags Tags kann man sich einfach merken, wenn man weiß, wofür sie stehen. HTML[[HTML|Hypertext Markup Language]] head title meta link (kein umgangsspr. HTML5 und CSS3 bringen in Verbindung mit JavaScript einige interessante Neuerungen, vor allem im Hinblick auf die Erweiterung von HTML5 als Programmierungebung für Browser-basierte Apps.

Code a Responsive Navigation Menu Navigation menus used to be a fairly simple thing. Code up an unordered list, float it left and you’re good to go. With responsive design being all the rage these days though you’re faced with some new challenges when creating a menu design. Follow along as we start from scratch and code a simple but effective responsive navigation menu that you can easily modify and reuse in your own projects. What We’re Building If you’re the kind of person who likes to skip ahead, here’s a sneak peek at what we’re building. Demo: Click here to see and tweak it on Dabblet. The HTML Let’s jump right into this project without a bunch of unnecessary fluff. The first step is to decide on some markup. Believe it or not, this one little piece of code had my head spinning when it came time to test. Fortunately, the fix is easy, just drop in the famous html5shiv and you’re good to go (place this in the head portion of your document). Add the List Add The Sub Tag Progress Check Starter Styles Container Styles Border Fix

Créer une galerie photos avec CSS 3 / Benjamin PREVOT Toujours à la recherche de solutions permettant de réaliser des effets avec CSS 3, je me suis penché sur la création d'une galerie photos sans JavaScript. Le but va être de réaliser un ensemble d'aperçus de photos comme sur ce site : Bien entendu, JavaScript interdit Mise en place de la structure HTML Avant toute chose, nous allons définir la structure de notre fichier HTML. Il s'agit tout simplement d'une liste de photos (les aperçus) : la galerie. Mise en page Il faut maintenant positionner notre galerie. Pour cela, nous optons pour une disposition de 3 photos par ligne. Le code CSS ci-dessous va nous y aider : Nous obtenons alors une galerie photos centrer horizontalement, avec 3 colonnes. Au passage, nous réduisons la taille des images à 75% et nous définissons la transition qui sera appliquée au survol du curseur. Pour plus d'informations sur les propriétés CSS, vous pouvez vous référer au site du W3C : Démo

CSS3 Progress Bars I made some progress bars. They look like this: View Demo Download Files They use no images, just CSS3 fancies. Like a good little designer always does, they fall back to totally acceptable experience. As you might imagine, in browsers that support no CSS3 at all will look similar to the above, only even more simplified. HTML Base The bar itself will be a <div> with a class of meter. The basic: Start of CSS The div wrapper is the track of the progress bar. Then span inside will be the fill in part of the progress bar. Thems the basics. Other Colors Let's make it as easy as possible to change the color. Candystriping We can get a cool striped effect by adding another element on top of that span and laying a repeated CSS3 gradient over it. I first saw and snagged this idea from Lea Verou. Animating Candystripes Only Firefox 4 can animate pseudo elements, and only WebKit can do keyframe animations. The span will be exactly the same as the pseudo element, so we'll just use the same values... And done:

Top Drawer - A smooth dropdown menu for responsive web design | Experiment #5 Tap the menu icon in the top right. The click event will assign the class of active to the drawer container which alters the translate value to bring it into view. Modernizr will detect whether the user's device is capable of CSS transforms, if it isn't we simply show and hide the menu after the button is pressed - no point in animating if it isn't going to work smoothly. To set up the experiment we need to create a scenario similar to a box of matches, the box (in our case the top black heading) covers the match drawer beneath (our div with a class of drawer). We build the page as normal but pull the drawer up and off the canvas using the CSS Translate property and show it again in the active state for the div using Translate back to it's regular position. CSS Transitions allow us to create the smooth animation between the states. <div class="top"> ...

CSS3 PIE: CSS3 decorations for IE A Handful Of CSS Trends And How To Use Them There are a handful of CSS and CSS3 trends that are making their way across the web. Find out how to use them on your site… As I make my daily web travels, I’m constantly keeping an eye out for any trends or cool effects that other blogs are taking advantage of. Some of the examples below are taking advantage of CSS3 and may not work in all browsers. Text Selection Color This is kind of a neat one. Just add the following CSS to your stylesheet and you’ll be in business. Gradual Fading Links Here is another great way to add a nice subtle effect to your site. 99% of the time when you hover over any link, it will change right? Add the following CSS to your stylesheet to take advantage of the effect. The 1px Click Give your links a little style with the 1px click effect. Intro Paragraphs Are Easy I wrote about intro paragraphs in an earlier post, but didn’t go into depth on how to use them on your site. Box Shadow with RGBA on Hover Whoa, we’re getting a little deep here! Wrapping Things Up

Stick div at top after scrolling No this is not about using position: fixed by default. Take a look at this page as example, scroll down, and see the top-left. Notice the issue metadata stick on top? As far as I know there is no pure CSS for this task, it uses onscroll to do the job. The following element would stick on top after you scroll down enough: This will stay at top of page Here is the source code and you can play with jsFiddle: I didn’t invent this, the original code is from an answer on Stack Overflow, and that seems to be from Stack Overflow’s code, but with a few of my own modifications. The #sticky-anchor is for providing an offset reference, so we can compare with and know if visitor scrolls down far enough. z-index is better to be applied since other elements may have that, make sure the number is high enough so #sticky would be on top of others. Related link: jQuery plugin sticky-div.

Outils 78 ressources en ligne Haut de page Visual Studio Code Visual Studio Code est un éditeur de code source récemment lancé par Microsoft,…, le générateur de template HTML5 Alsacréations est fier de vous annoncer la naissance de, notre nouvel… Rendu par défaut des éléments HTML Outil conçu par Julien Royer, permettant d'observer les différences de rendu par… MobileHTML5 MobileHTML est un tableau de compatibilité récapitulatif à destination des plate-formes… ReformedApp Chronophage, redondant et fastidieux... Coder vos formulaires à la main vous… Initializr Initializr vous permet de générer un template HTML5 basé sur HTML5 Boilerplate.… HTML5Please HTML5Please est un récapitulatif clair et bien organisé listant les différentes… HTML5 Boilerplate HTML5 Boilerplate est un gabarit HTML5 et CSS3 contenant toutes les bonnes pratiques… HTML5Rocks Diaporama des nouveautés HTML5, tutoriels pas à pas, et exemples en ligne. Haut de page Accessibilité Haut de page Développement Web