background preloader

Web Design, Development, and Business

Web Design, Development, and Business

Open Source Web Development Resources for Designers & Developers 10 CSS Snippets to Save Precious Time | Blog Oh Blog Today, I have compiled a set of 10 CSS snippets that can save you a lot of time and effort. These codes are needed frequently when developing CSS-based websites or themes. Just bookmark these codes (Ctrl + D) so that you don’t have to look for them on the Internet every time. 1. CSS Tooltips Through this code, you can have your own tooltips using just CSS. Now, use the tooltips like this :- [html] Easy TooltipThis is the crazy little Easy Tooltip Text.. 2. HTML tags on different browsers have their own formatting and styling. 3. This code will add different color borders around your assets depending on its level. 4. You can easily center a DIV by using margin:auto; property when you have mentioned its width in your CSS. 5. Instead of using any kind of JavaScript to add a loading icon before your large image is loaded, you can use this simple CSS technique. 6. In case you need to preload images before the loading of your page completes, use the following technique. 7. 8. 9. 10.

Problema al centrar imagenes con jquery/javascript Veréis tengo un problema al intentar centrar imágenes verticalmente mediante jquery. Os copio el código tal y como lo tengo ahora: index.php: Código PHP: my_jquery_scripts.js: $(document).ready(function() { /* Centrar altura de cada imagen respecto a div padre */ // Altura de div "padre" var altura_div_padre = $(".img_div").css("height"); var altura_div_padre = altura_div_padre.slice(0, -2); $(".img_thumb").each(function() { // Altura de la imagen var altura_img = $(this).attr("height"); // Restamos altura del div "padre" y dividimos entre 2 redondeando a entero var resto_altura = Math.round((altura_div_padre - altura_img) / 2); // Centramos la imagen con el resultado $(this).css("position" , "relative").css("top" , resto_altura); }); El script funciona perfecto SOLO SI NO es la primera vez que visitas la página (o pulsas Ctrl+F5), es decir, si entras por primera vez no funciona, a partir de ahí ya puedes recargas tantas veces como quieras que funciona sin problemas.

Iconion : Free Icon Maker 帕兰映像 120 Tips, Tricks, and Tuts from 2009 Worth your Time Now that we’re down to the end of 2009, what were some of the best web development and design tutorials and articles from the year? We’ll take a look at 120 of them! Jump to a Month January How to Build a Login System for a Simple Website In today’s video tutorial, we’ll be building a login system with PHP and MYSQL. Run Your Own TinyURL Service With Phurl Jan 13th, 2009 in Other by Thord Hedengren URL shortening services are a must if microblogging services like Twitter are to work. Slice and Dice that PSD In today’s video tutorial, we’ll be slicing up a PSD, dicing it for the web, and serving it on a warm hot plate. The Definitive Guide to Creating a Practical jQuery Plugin In this article weíre going to be building our very own jQuery plugin step-by-step from scratch; jQuery makes this task exceptionally easy for us, giving us a simple method of packaging up our scripts and exposing their functionality, and encouraging the use of scalable and reusable object-oriented techniques. February

Imágenes en HTML Vemos cómo colocar una imagen en una página web y algunos atributos básicos para asignarle estilos a las imágenes en HTML. Sin duda uno de los aspectos más vistosos y atractivos de las páginas web es el grafismo. La introducción en nuestro texto de imágenes puede ayudarnos a explicar más fácilmente nuestra información y darle un aire mucho más estético. El abuso no obstante puede conducirnos a una sobrecarga que se traduce en una distracción para el navegante, quien tendrá más dificultad en encontrar la información necesaria. El uso de imágenes también tiene que ser realizado con cuidado porque aumentan el tiempo de carga de la página, lo que puede ser de un efecto nefasto si nuestro visitante no tiene una buena conexión o si es un poco impaciente. En este capitulo no explicaremos como crear ni tratar las imágenes, únicamente diremos que para ello se utilizan aplicaciones como Paint Shop Pro, Photoshop o Gimp. La etiqueta que utilizaremos para insertar una imagen es <img> (image).

webdesign.tutsplus Responsive web design. That says it all. As the man behind the most contagious movement in web design at the moment, Ethan Marcotte really needs no introduction. Designer. I'm an independent designer/developer/something who lives in Cambridge, Massachusetts. More recently, I suppose I'm "known for" coining the term "responsive web design" at An Event Apart Seattle 2010, to describe a more flexible way of designing beyond the desktop. In a nutshell, responsive design is an alternative way to design the post-desktop web. Anyway. Personal crusade? Hey! But really, the absolute best thing about working on the Web is that there is no One True Way™ of working. I've been working with one large client this year where the latter is the case: that the goals of each "context," as it were, overlaps to such a high degree that a responsive approach was easily the best one. Man. First and foremost, there's a lot that could be improved on the CSS side of things.

ilovecolors A Form of Madness You are here: Home Dive Into HTML5 Diving In Everybody knows about web forms, right? Make a <form>, a few <input type="text"> elements, maybe an <input type="password">, finish it off with an <input type="submit"> button, and you’re done. You don’t know the half of it. Placeholder Text The first improvement HTML5 brings to web forms is the ability to set placeholder text in an input field. You’ve probably seen placeholder text before. When you click on (or tab to) the location bar, the placeholder text disappears: Here’s how you can include placeholder text in your own web forms: Browsers that don’t support the placeholder attribute will simply ignore it. Ask Professor Markup Q: Can I use HTML markup in the placeholder attribute? Autofocus Fields Web sites can use JavaScript to focus the first input field of a web form automatically. To solve this problem, HTML5 introduces an autofocus attribute on all web form controls. Here’s how you can set a form field to autofocus: What’s that? To sum up:

Tag HTML dt Bypass main content Nota: Si no sabes lo que es un elemento/tag o cómo debes utilizarlo, te recomiendo que leas el tutorial "Tags y atributos en HTML", que puedes encontrar en la sección de tutoriales HTML. Descripción El elemento HTML dt contiene un término en una lista de definiciones (elemento HTML dl). Éstos términos pueden ser visualmente asociados a una descripción (elemento HTML dd) o no. En las listas de definiciones un sólo término puede tener una descripción, más de una o ninguga. Ejemplos A continuación, una lista de definiciones es representada con diferentes asociaciones entre términos y descripciones. Código Lenguaje de marcado hipertextual basado en SGML y no compatible con XML. Lenguaje de marcado hipertextual extensible basado en XML, un subconjunto de SGML. Lenguaje creado para reducir la orientación presentacional de sus predecesores. XML, un subconjunto de SGML. Vista Lenguaje de marcado hipertextual basado en SGML y no compatible con XML. Charles Hola Estás ahí? Susan Hola!! dir

Don't Be Scared Of Functional Programming Advertisement Functional programming is the mustachioed hipster of programming paradigms. Originally relegated to the annals of computer science academia, functional programming has had a recent renaissance that is due largely to its utility in distributed systems (and probably also because “pure” functional languages like Haskell are difficult to grasp, which gives them a certain cache). Stricter functional programming languages are typically used when a system’s performance and integrity are both critical — i.e. your program needs to do exactly what you expect every time and needs to operate in an environment where its tasks can be shared across hundreds or thousands of networked computers. Clojure1, for example, powers Akamai2, the massive content delivery network utilized by companies such as Facebook, while Twitter famously adopted3 Scala4 for its most performance-intensive components, and Haskell5 is used by AT&T for its network security systems. [ [x, y], [x, y] …etc ] Excellent!

Related: