background preloader

CSS Help

Facebook Twitter

Typeplate » A typographic starter kit encouraging great type on the Web. How to vertically and horizontally center text in an unordered list or div. Congratulations if you've managed to find this tutorial!

How to vertically and horizontally center text in an unordered list or div

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. No matter how much text you have you won't have to apply any special classes to specific lists or divs (the code is the same for each). 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?

Responsive

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.

Accessible star rating widget with pure CSS

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. By adapting Ryan Seddon’s technique for custom radio buttons with CSS, we can turn a series of radio buttons into stars that change colors (for the purposes of this demo they’re just unicode characters that change colors, but in your case they may as well be images) and use the sibling combinator to color the previous stars. 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). So, here it is:

SASS / OOCSS

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.

How To Create Depth And Nice 3D Ribbons Only Using CSS3

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.

There is also the possibility of using 3D softwares, like Blender, to create some 3D objects and images that we can use in our designs. DesignM.ag Blogof.FrancescoMugnai.com Yoast.com From-The-Couch.com Wait, wait, wait. Sure? We Want to Make 3D Elements Without Images background: rgba(196,89,30,0.65); Experiments with cascading style sheets. CSS3 gradients - Adobe - The Expressive Web - Beta.