background preloader

Experiments with cascading style sheets

Experiments with cascading style sheets

How To Create Depth And Nice 3D Ribbons Only Using CSS3 In this last period on PV.M Garage we have described many trends of the modern Web Design and many techniques for creating stunning and impressive web sites. In one of our tutorials we learned how to realize a nice 3D ribbon and how to play with the drop shadow in Photoshop to simulate depth in a web design layout. This is a widespread trends in recent web design: creating a 3D perception in a website and simulating a “world” in three dimensions are two great ways for the designers to play with their skills. Thanks to useful graphic softwares (2D) we can easily create 3D elements, like ribbons and shadows, but we can also reproduce 3D scene using perspective, focus, color shading and opacity. DesignM.ag Blogof.FrancescoMugnai.com Yoast.com From-The-Couch.com Wait, wait, wait. Sure? We Want to Make 3D Elements Without Images There are some properties of the CSS3 languages that can help us to accomplish this mission. background: rgba(196,89,30,0.65); How To Make a CSS Based 3D Layout <!

5 Exciting Things to Look Forward to in HTML 5 - ReadWriteWeb HTML 5 is the upcoming major revision of the HyperText Markup Language (HTML), the main method of marking up content for sharing on the World Wide Web. HTML's development stopped at HTML 4.01 in 1999, and since then web content has evolved so much that current HTML specifications are inadequate for today's requirements. HTML 5 aims to improve HTML's interoperability and address the growing demand for more diverse and complex web content. It also addresses HTML 4's lacking features for web applications. In this post, we'll look at 5 exciting new features in HTML 5. This is a guest post by Jacob Gube, a web developer/designer and author of Six Revisions, a blog on web development and design. A bit of history The conceptual thinking for HTML 5 began in late 2003. Development is underway, and HTML 5 is anticipated to reach W3C Candidate Recommendation status in 2012, though many modern browsers already have partial support for HTML 5 specifications. Exciting new features 1. 2. 3. 4. 5. In Sum

css Zen Garden: The Beauty in CSS Design Near a tree » 2008 » Settembre Per concludere i miei racconti dall’Africa, vorrei sintetizzare (per quanto mi è possibile: quindi solo quattro o cinque pagine) quanto in pochi giorni ho appreso dei negri, osservandoli, parlando con loro e parlando con chi vive là da tempo. Naturalmente è possibile che si tratti di impressioni sbagliate, ma prima di metterle giù mi sono premurato di chiedere e trovare conferme. I negri condividono volentieri la miseria. Anche se muore di fame, il negro trova normale condividere con un altro negro il pezzo di cibo che ha in mano, anche se è uno che non ha mai incontrato. I negri, pur essendo molto più amichevoli e simpatici dei bianchi, non hanno la minima idea di cosa sia la buona educazione. I negri sono estremamente puliti. I negri sono generalmente pigri. I negri, proprio perché sono pigri, sono anche furbi. I negri sono onesti, molto di più di quel che crediamo noi. I negri sono semplici e ingenui. I negri adorano la musica, e sono degli ottimi ballerini.

Vertical Centering in CSS Yuhu's Definitive Solution with Unknown Height Though there is a CSS property vertical-align, it doesn't work like attribute valign in HTML tables. CSS property vertical-align doesn't seem to be able to solely solve this problem: Definition of the problem there is an area (e.g. No general solution was known until September 2004. Display an example of the vertical centering in your browser. The idea The keystone of the solution for Internet Explorer 6, 7 or quirk mode is this: the internal object is absolutely positioned in half of the area height. Solution for standard browsers like Mozilla, Opera, Safari etc. Then both syntax are merged. Compatibility The code below works in Internet Explorer 5.0, 5.5, 6.0, 7, 8, 9 and 10 beta, in Gecko browsers (Mozilla, Firefox, Netscape 7), in Opera 7, 8 and up, every Chrome, Konqueror 3.3.1. The valid example doesn't work in IE 7 standard mode (update 2012: about 3 % of clients). Understandable code: Legend for colors: The result looks: Color legend: About

Accessible star rating widget with pure CSS For ages, we couldn’t utilize the sibling combinators (~ and +) to ease the pain of creating star rating widgets, because of this stupid Webkit bug. Nowadays, not only it’s fixed, but the fix has already propagated to Chrome and Safari 5.1. So, we can at least use the sibling combinator to make coloring the stars easier. But can we use no JavaScript for a rating widget and make it just with CSS? Actually, we can. Of course, you’d still need JS to attach an event handler if you want the votes to be registered through AJAX, but that’s not part of the rating widget per se (it could still work as part of a regular form). What’s best is that it’s fully keyboard accessible (focus and then use keyboard arrows) and screen reader accessible (although VoiceOver will also pronounce the generated stars, but that won’t happen if you use images instead of unicode stars). So, here it is:

No more Transitional DOCTYPEs, please For a long time now my answer to people who ask me if they should use HTML or XHTML has been that it doesn’t really matter as long as you use a Strict DOCTYPE and not a Transitional one. If you’re not sure why, my article Transitional vs. Strict Markup for last year’s 24 ways is a good start. It’s good to see that I am not the only one who thinks that the phasing out of Transitional DOCTYPEs is long overdue (they are called Transitional for a reason, you know). Jack Pickard talks about this in his Accessites.org article It’s Time To Kill Off Transitional DOCTYPES (you can post comments on Jack’s personal website in the identically named It’s time to kill off Transitional DOCTYPEs). In the article Jack mentions the comment at the top of the HTML 4.01 Transitional Document Type Definition that basically tells you not to use it: This is the HTML 4.01 Transitional DTD, which includes presentation attributes and elements that W3C expects to phase out as support for style sheets matures.

/* Position Is Everything */ — Modern browser bugs explained in detail! The Sun The Sun is now in the quietest phase of its 11-year activity cycle, the solar minimum - in fact, it has been unusually quiet this year - with over 200 days so far with no observed sunspots. The solar wind has also dropped to its lowest levels in 50 years. Scientists are unsure of the significance of this unusual calm, but are continually monitoring our closest star with an array of telescopes and satellites. A sweeping prominence, a huge cloud of relatively cool dense plasma is seen suspended in the Sun's hot, thin corona. Styling single selection menu control option groups (optgroup elements) with CSS This demo page is related to the article Styling form controls with CSS, revisited. For more info on the purpose of this page, please read the article. Each single selection menu control consists of this HTML: <select> <option selected>Option 1</option> <option>Option 2</option> <optgroup label="Option group 1"> <option>Sub option 1</option> <option>Sub option 2</option> <option>Sub option 3</option> </optgroup> <option>Option 3</option> </select> The following CSS rules are used to style the optgroup elements: In your current browser, with your current settings, the optgroup elements look like this (open each menu to see the styling of its optgroup element): Note that the first option element of each select element is selected. Here are screenshots from several browsers on different operating systems:

How to vertically and horizontally center text in an unordered list or div Congratulations if you've managed to find this tutorial! I've been trying to increase awareness and publicity to this tutorial by going to other tutorials and leaving comments but I'm finding the authors take a competitive edge and do not approve my link to this page. If you find this helpful then please promote it by using the social links further down the page. This should hopefully increase my chances to be found in Google. The following example shows you how to vertically and horizontally center text in both an unordered list and a div without resorting to JavaScript or css line heights. If you simply wish for it to work in a div, remove the list items around it (the code will still work). UPDATE, the code has been altered slightly as of 29/9/2011 to make it easier to work with. Alternatively, you can download the zip here. Like It? Need help with this article? Have you got a suggestion, compliment or need additional help with this article?

Related:  htmlCSSCSSCSScssWebGENERALISTES