Step by step CSS float tutorial Floatutorial takes you through the basics of floating elements such as images, drop caps, next and back buttons, image galleries, inline lists and multi-column layouts. General info Tutorial 1. Floating an image to the right Float an image to the right of a block of text and apply a border to the image. Tutorial 2.
Hierarchical Menus with the Underrated style.display Object One of the most common DHTML requests I get is for a Windows Explorer-style hierarchical menu, where there's a list of topics or "folders" that a user can click on to reveal subtopics, or "files," within that folder. It's a common desktop metaphor that seems ever more necessary on the Web, especially as we see navigation bars incorporating larger and more complex content while still trying to fit on the screen. Hierarchical menus are a solution to the common problem of having too many links in too small a space. But, I figured, there are several Web sites where you can find large, complex scripts to create large, complex hierarchical menus. Instead, I'll show you how to make your own menus, of any length or complexity, with the use of an extremely useful and widely unknown DOM CSS property, style.display.visibility. When you set an element to visibility="hidden", it simply disappears while still taking up space on the page, almost as if it were transparent.
CSS Style Guides As we wrap up our recent poll on ordering CSS properties, it brings up the larger issue of CSS style guides. Ordering properties is just one choice you have to make that makes up a complete styling strategy. Naming is a part of it. Sectioning is a part of it.
Math in HTML (and CSS) - presenting mathematical expressions on Web pages Typesetting math: 100% How to present mathematical expressions using a language that has so little markup for them? Web authors often need resort to images, but there are more flexible approaches, like MathJax. Moreover, if you need just some special symbols or simple expressions, a lot can be done in HTML, assisted with style sheets (CSS). This document mainly discusses relatively simple mathematical expressions rendered one-dimensionally (inline), though possibly with superscripts or subscripts. The word “mathematical” is used in a rather broad sense here, covering different formalisms and symbols, including the symbols of physics, formal logic, etc. CSS: Specificity Wars CSS: Specificity Wars Join me, and together we can rule the galaxy as father and geeks! A few weeks back in Cupertino, I saw Aaron explain how the specificity of CSS selectors is calculated in a way which I hadn't seen before. Then today I came across a knotty problem while building XHTML and CSS templates for a new project where two selectors behaved differently to how I expected and I realised that I had not completed my training. The Dark Side
Responsive Web Design The English architect Christopher Wren once quipped that his chosen field “aims for Eternity,” and there’s something appealing about that formula: Unlike the web, which often feels like aiming for next week, architecture is a discipline very much defined by its permanence. Article Continues Below A building’s foundation defines its footprint, which defines its frame, which shapes the facade. Each phase of the architectural process is more immutable, more unchanging than the last. Creative decisions quite literally shape a physical space, defining the way in which people move through its confines for decades or even centuries. Working on the web, however, is a wholly different matter.
CSS Specificity Some people are confused by CSS Specificity, especially with all of the (not-so) new CSS3 Selectors. The image below may help make sense of CSS Specificity. Download the PDF Legend: X-0-0: The number of ID selectors, represented by Sharks0-Y-0: The number of class selectors, attributes selectors, and pseudo-classes, represented by Fish 0-0-Z: The number of type selectors and pseudo-elements, represented by Plankton a la Spongebob*: The universal selector has no value +, >, ~: combinators, although they allow for more specific targeting of elements, they do not increase specificity values:not(x): The negation selector has no value, but the argument passed increases specificity
Social Media Sparked, Accelerated Egypt's Revolutionary Fire Anti-government protesters celebrate in Tahrir Square in downtown Cairo Friday. Fireworks burst, and Egypt exploded with joy and tears of relief after pro-democracy protesters brought down President Hosni Mubarak with a momentous march on his palaces and state TV. Emilio Morenatti/AP If three decades of violent repression and despotic rule were kindling for the Egyptian revolution, social media was both a spark and an accelerant for the movement. Did social media like Facebook and Twitter cause the revolution?
CSS for Accessibility W3C Note 6 November 2000 This version: (plain text, PostScript, PDF, gzip tar file of HTML, zip archive of HTML) Social networks credited with role in toppling Egypt's Mubarak As Egypt's embattled President Hosni Mubarak gave up his presidency Friday, analysts and some of the Egyptian protestors said he'd still be in charge if not for the power of social networking. After 18 days of tumultuous protests and stubborn refusals to leave a position he's held for 30 years, Mubarakgave up power today, handing over authority to the nation's military leaders. During a time of unrest that saw Mubarak's regime disconnect Egypt from the Internet for several days, social networking sites like Facebook and Twitter served as critical tools for the people seeking to topple the long-time ruler. President Barack Obama this afternoon noted the role of technology in the uprising, praising Egyptians who used "their creativity, talent and technology to call for a government that represented their hopes and not their fears." "Because of that, Mubarak and his regime felt they had no other choice than to step down."