Fancy FAQ page using CSS3 only Usually, a FAQ page is that long page with lots of questions and answers, the one we are searching for when we need some extra info regarding a subject. So, for example, if you own a website that sells stuff, then you will need a page like that. In this article I'll show you how to create a fancy FAQ page using CSS3 only, no JavaScript. View demo The idea When I visited Facebook's Help Center section (theirs FAQ's), I noticed a cool effect for the answers previews. After seeing it, of course I immediately thought about how can I create a similar effect using CSS3 only. The HTML We will start as usual with the markup structure: <section class="faq-section"><input type="checkbox" id="q1"><label for="q1">Question? In the above image, the label is the proper heading of the section. How it works? There's no rocket science here. I played before with this cool technique, but never had the opportunity to create a practical example actually. The CSS Browser support What about the older browsers? Done!
Créer un menu Accordéon avec jQuery Non non, détrompez-vous, nous n’utiliserons pas CSS et jQuery pour fabriquer cet instrument de musique à vent ! Bien que les langages évoluent continuellement, dans un contexte aussi poussé seuls quelques poignées de petits génies pourraient pratiquer ce sport extrême ! Dans notre cas, nous allons simplement nous intéresser au menu accordéon, et c’est bien mieux comme ça. Petit tour d’horizon Si vous parcourez fréquemment les blogs, vous avez sans doute déjà vu ce type de menus dépliables. Avec ce genre de menu, on sollicite l’action de l’utilisateur par un évènement JavaScript (ex: click, hover, …) qui ouvre le contenu de la section sur laquelle il a interagi. L’effet visuel de base s’effectue par deux scrolling inversés. Est-ce vraiment utile ? Tout dépend du contexte, et de ce que vous souhaitez faire. Prenons pour exemple, un blog de voitures. Dans d’autres cas, il représente carrément l’armature même d’un site (ex: book photo, portfolio, …). <! On y intègre nos sections : <!
15 Amazing Free HTML5 & CSS3 Accordion Elements March 30, 2013 by Suzanna Rating: 15 Amazing Free HTML5 & CSS3 Accordion Elements Reviewed by Filiz ÖZER on . best css3 accordion elements Rating: 10 out of 10 Today’s free items and tutorials comes some web design and development blogs and in this resource article features many extremely useful resources I found over Google search results! If you are look a vertical or horizontal accordion elements, this items will help you. Please note: The result of this tutorial will only work as intended in browsers that support the respective CSS properties. Designmodo Accordion with Icons Demo | Source Codrops Accordion Demo | Source CSS3-Only Vertical Accordion Demo | Source Pure CSS3 accordion Demo | Source CSS-Based Content Accordion Demo | Source Pixelngrain Accordion Demo | Source Accordion with CSS3, HTML5 and jQuery Demo | Source CSS transitions with Accordion Demo | Source Cross Browser Pure CSS3 Horizontal Accordion Demo | Source The CSS Ninja Accordion Demo | Source Vertical Accordion Slider Demo | Source
Amazing Hover Effects with CSS3 I have received a lot of questions lately about hover effects and how you can execute them using only CSS. There was a time when you would have to use jQuery to really make your effect stand out, but now CSS3 has some pretty amazing properties that help designers create some lightweight effects that truly stand out. Box Shadow This effect will create a shadow around your div container when you hover over it: Ut vulputate sem venenatis magna commodo ac semper nibh mollis. That one’s pretty simple and straightforward, but still kind of cool. Opacity Having something fade in on a hover can be seen almost anywhere on the web. If you want to create an even cooler opacity fade effect, you can take advantage of the new transition property. (this one only works in Chrome or Safari) The Switch and/or Reveal I have seen a lot of sites use an effect where something is revealed when you hover over an element. Hover over me to see something happen (this one also only works in Chrome or Safari) Position
Six Degrees of Kevin Bacon Using Neo4j and Ruby | Ruby Zone Previously I showed you how to get Neo4j up and running with Ruby and how to find recommended friends on a social network. What about finding out how you are connected to someone outside of your friends of friends network? Do you remember the concept of six degrees of separation? A credit card commercial explains how this works: The actor, Kevin Bacon wants to write a check to buy a book, but the clerk asks for his ID, which he does not have. You may not be a Hollywood actor, but if you’ve used the social network site Linked In, you’ve seen this feature in their “How you’re connected to” window. 01.require 'rubygems' 02.require 'neography' 04. 06.def create_person(name) 07. 08.end 10.def make_mutual_friends(node1, node2) 11. 12. 13.end 15.def degrees_of_separation(start_node, destination_node) 16. paths = @neo.get_paths(start_node, 17. destination_node, 18. 19. depth=4, 20. algorithm="allSimplePaths") 21. paths.each do |p| 22. p["names"] = p["nodes"].collect { |node| 23. 24. end 25.end 39.end 04. 09.
Generateur Codes Couleurs RGB hexadecimal Nuancier Annuaire Referencement Gratuit Jok Concept Couleurs hexadécimale RGB Informatique et Web Les couleurs en informatique sont exprimées en "codes hexadécimaux" ou "RGB", (Red, Green, Blue, en francais RVB Rouge, Vert, Bleu). Pour coder la couleur d'un pixel on utilise trois octets qui définissent chacun la luminosité des couleurs Rouge Verte Bleu ; on utilise un nombre hexadecimal à 6 chiffres : les 2 premiers correspondent à la luminosité du rouge, les 2 suivants à la luminosité du vert et les 2 derniers à la luminosité bleu (ex : avec une intensité maximale sur le rouge on a #FF0000)... En hexadécimal là aussi les couleurs sont divisées en groupe de trois fois deux "valeurs hexadécimal" par couleurs : #FFFFFF = (#) FF FF FF = BLANC. Selon le contexte et les protocoles utilisé dans un proget, (HTML, XHTML, libérie GD en PHP...), on préferera utiliser des valeurs de couleurs exprimées en "RGB" ou en "HEXADECIMAL".
Beau menu déroulant jquery - Sliding Menu jquery Dans ce tutoriel Html & Css, nous allons vous montrer comment créer un très beau menu déroulant. Nous allons bien évidemment utiliser les nouveau attributs des langages HTML & CSS qui enjolivent toujours plus nos sites web. Voir la démo Télécharger le fichier zip 1 ère étape : créer le menu en html <div id="content"><ul><li><a href="#">Amis <span>340</span></a><ul><li><a href="#">Famille<span>14</span></a></li><li><a href="#">Ecole<span>6</span></a></li><li><a href="#">Travail<span>2</span></a></li></ul></li><li><a href="#">Videos <span>147</span></a><ul><li><a href="#">Sport<span>14</span></a></li><li><a href="#">Musique<span>6</span></a></li><li><a href="#">Cuisine<span>2</span></a></li></ul></li> Etc... 2ème étape : le style CSS Ces quelques lignes demandent un léger éclaircissement. Le sprite image pour les icônes 3ème étape : du jquery pour dynamiser La bibliothèque directement prise à la source pour bénéficier de la rapidité des serveurs.
Orman Clark’s Vertical Navigation Menu: The CSS3 Version Next in the Orman Clark's coded PSD series is his awesome looking Vertical Navigation Menu. We'll recreate it with CSS3 and jQuery while using the minimal amount of images possible. The only images we'll be using are for the icons - I'll be creating a sprite using a new tool called SpriteRight, but this is optional. Additionally, I'll be using GradientApp to create my CSS3 gradients, but again this is optional. Step 1: Basic HTML Markup Let's start off by throwing in some basic markup, an empty HTML5 document: And now the markup for our menu; an unordered list within a containing wrapper. Lastly, we create the submenus by placing an unordered list nested within each of our existing list items. Okay, there may seem a lot there but don't let it confuse you. I've also added a class to each list item, just so it'll make styling easier later on. Step 2: Fluid Fonts We'll first make sure our menu displays correctly. Now to explain how the wrapper font size works. Step 3: Main Menu CSS Okay!
The Julia Language Utiliser Wordpress en local avec Wamp La plupart des webmasters souhaitent faire une refonte complète du design de leur thème Wordpress ou bien avoir un backup local de leurs articles afin de les éditer ou tout simplement ajouter des articles en local. Il y a de nombreuses solutions pour travailler en local, avec par exemple Google Gears qui vous permettra de créer des articles en local et qui synchronisera le contenu une fois ceux-ci terminés. Mais si vous souhaitez par exemple importez vos articles localement et que vos fichiers (images, zip) ont une URL absolue sur vos articles pointant chez votre hébergeur, alors là ça se corse Dans ce tuto, je vais vous montrer comment travailler simplement en local avec Wordpress tout en étant hors-ligne afin d'avoir une copie conforme de votre blog et pouvoir synchroniser votre travail simplement avec votre hébergeur. Cela concerne les refontes de thèmes, plugins, l'écriture et modification d'articles, mots-clés, etc... Allez c'est parti WampServer Paramétrages initiaux