background preloader

CSS

Facebook Twitter

Using Weather Data to Change Your Website's Appearance through PHP and CSS. This article is co-authored by David Walsh ofThe David Walsh Blog:: PHP, CSS, MooTools, and Everything Else UPDATE: This post was updated on April 30th, 2008 to account for a minor change in how Yahoo! Was serving up data UPDATED DOWNLOAD Inspiration for this idea came from a comment by Andreas. Using a little magic and trickery (read: PHP and CSS), we can change the appearance of a website automatically based on the weather outside, in real time! In the example site we have created, the header graphic will change to one of four different styles based on Sunny, Rain, Snow, and Cloudy.

Step 1: Designing your weather graphics Our example site changes header graphics as as well as an icon in the sidebar to describe the weather. Step 2: Retrieving the weather information Yahoo! The 5-digit number is your Zip Code and the "f" stands for "Fahrenheit" (change to "c" for "Celsius"). Step 3: Turning the weather information into an CSS class Have fun! Share On. 999967 #666666 #CCCCCC #CCCC9A. CSSWARP - CSS Text to Path Generator.

The Shapes of CSS. Learn Development at Frontend Masters CSS is capable of making all sorts of shapes. Squares and rectangles are easy, as they are the natural shapes of the web. Add a width and height and you have the exact size rectangle you need. Add border-radius and you can round that shape, and enough of it you can turn those rectangles into circles and ovals. We also get the ::before and ::after pseudo elements in CSS, which give us the potential of two more shapes we can add to the original element. Square Rectangle Circle Oval Triangle Up Triangle Down Triangle Left Triangle Right Triangle Top Left Triangle Top Right Triangle Bottom Left Triangle Bottom Right Curved Tail Arrow via Ando Razafimandimby Trapezoid Parallelogram Star (6-points) Star (5-points) via Kit MacAllister Pentagon Hexagon Octagon Heart via Nicolas Gallagher Infinity via Nicolas Gallagher Diamond Square via Joseph Silber Diamond Shield via Joseph Silber Diamond Narrow via Joseph Silber Cut Diamond via Alexander Futekov Egg Pac-Man Talk Bubble TV Screen Lock.

The CSS Overflow Property. Every single element on a page is a rectangular box. The sizing, positioning, and behavior of these boxes can all be controlled via CSS. By behavior, I mean how the box handles it when the content inside and around it changes. For example, if you don't set the height of a box, the height of that box will grow as large as it needs to be to accommodate the content. But what happens when you do set a specific height or width on a box, and the content inside cannot fit? That is where the CSS overflow property comes in, allowing you to specify how you would like that handled. There are four values for the overflow property: visible (default), hidden, scroll, and auto. Let's take a look at each and then discuss some common uses and quirks. Visible If you don't set the overflow property at all, the default is visible. The important thing to remember here is that even though the content is visible outside of the box, that content does not affect the flow of the page.

Hidden Scroll Auto IE Trick Demo. ProCSSor - Advanced CSS Prettifier. EZ-CSS: An easy to use, lightweight, CSS framework. Some of the Top Minds in the World of CSS and why you should be following their Work. 14th December, 2009 Tom Kenny Articles When I started learning CSS, I did some research to find out who were the best people at the time sharing their knowledge online.

I found that this was the best way of learning CSS by myself. Of course, I wasn’t learning CSS by myself, I recruited the best teachers available. Still to this day I follow the top CSS’ers in the business to keep up with what’s hot and now with the rise of Twitter, you can easily keep up to date with the best people in the world of CSS. Chris Coyier Chris Coyier lives and breathes CSS over at his site, CSS-Tricks where you can find so many great tips and tricks that will help you with almost any CSS problems you’ll come across. Also make sure to check out his tutorial screencasts for some detailed insights into CSS and jQuery as well as any related topics.

Follow Chris on Twitter Top Articles Inayaili de Leon Yaili regularly writes for Smashing Magazine and her own blog, Web Designer Notebook mainly on the subject of CSS3. 50 New CSS Techniques For Your Next Web Design. The 30 CSS Selectors you Must Memorize. 20 Useful CSS Tips For Beginners. In the old days, we depend a lot of on developers and programmers to help update the website, even when it’s just a minor one.

Thanks to the CSS and it’s flexibility, styles can be extract independently away from the codes. Now, with some basic understanding of CSS, even a novice can easily change the style of a website. Whether you are interested in picking up CSS to create your own website, or merely to tweak your blog’s look and feel a little – it’s always good to start with the fundamentals to gain a stronger foundation.

Let’s take a look at some CSS Tips we thought might be useful for beginners. Full list after jump. Understanding Media TypesThere are few media types when you declare CSS with <link>. print, projection and screen are few of the commonly used types.