background preloader

5 Simple, But Useful CSS Properties

This post is about 5 useful CSS properties that you should be very familiar with, but will most likely rarely use. I'm not talking about the new fancy CSS3 properties. I'm referring to the old CSS2 properties such as: clip, min-height, white-space, cursor, and display that are widely supported by all browsers. So, don't miss this post because you might be surprised how useful they are. 1. CSS Clip The clip property is like a mask. Image Clip Example (demo) The following example shows you how to mask an image using clip property. Image Resize and Clip (demo) In this example, I'm going to show you how to resize and clip images. 2. The min-height property allows you to specify the minimum height of an element. Min-height hack for IE6 Note: min-height is not supported by IE6, but there is a min-height hack. 3. The white-space property specifies how white-space is handled in an element. 4. If you change the behavior of a button, you should change its cursor as well. 5. Related:  webdev

CSS3 Patterns Gallery Browser support The patterns themselves should work on Firefox 3.6+, Chrome, Safari 5.1, Opera 11.10+ and IE10+. However, implementation limitations might cause some of them to not be displayed correctly even on those browsers (for example at the time of writing, Gecko is quite buggy with radial gradients). Also, this gallery won’t work in Firefox 3.6 and IE10, even though they support gradients, due to a JavaScript limitation. Submission guidelines If you have a new pattern to submit, please send a pull request. Does it present a new technique? 50+ Fresh CSS Techniques, Tutorials and Resources - Noupe Dec 02 2009 By Paul Andrew Learning CSS and how to use it effectively can be a reasonably easy thing to do for a beginning web developer. In the hands of a seasoned professional, CSS can be stretched and pushed it to its limits where it can seem complicated and yet perfect at the same time. Being able to adapt to new ideas and different techniques, as well as seeking new solutions to old problems is part and parcel of being a web designer. In this article, we’ll bring you up to date with the latest in CSS development through a collection of fresh CSS tutorials, techniques, and resources. Menus, Buttons and Forms Create a Button with Hover and Active States using CSS SpritesSome designers neglect the click state (active: property in CSS) in web design, either because they’re unaware of it, underestimate the importance of it, or are just lazy. CSS Absolute Positioning: Create A Fancy Link BlockAbsolute positioning is a well-known CSS technique supported by all web browsers.

Getting Started With Bootstrap: Part 2 of Series - Mr. Geek This is the second part of the ‘Getting Started with Bootstrap’ series. You can find part 1 by clicking here. Today, we are going to talk about using external stylesheets with Bootstrap. External stylesheets allow you to customise the look and feel of almost every design feature of the Bootstrap toolkit without breaking the core CSS files. Using external stylesheets with Bootstrap is very simple. Setting up an external stylesheet To use a custom CSS stylesheet, link it using the link rel tag in the head section of your webpage. That’s it. Adding custom styles You can add custom styles to add new user interface elements to an already creative toolkit. Adding a new CSS class The above CSS and HTML code is placed within a custom stylesheet (custom.css) that we linked earlier. It gives something like this. Image 1 Did you notice how the Hero Unit text and box text both are purple? Using CSS IDs to get unique effects It gives something like this. Image 2 Overriding Bootstrap CSS Image 3 Live Demo Hi.

11 Classic CSS Techniques Made Simple with CSS3 We've all had to achieve some effect that required an extra handful of divs or PNGs. We shouldn't be limited to these old techniques when there's a new age coming. This new age includes the use of CSS3. I'm sure you've heard of CSS in general. Here's what the official (or at least, what I consider official) website of CSS3, css3.info, has to say about CSS3: CSS3 is the new kid in the stylesheet family. Here are the 11 techniques that I'll be showing you how to recreate with CSS3. Probably my favorite on of this list, rounded corners provide a developer with so many options. You can simulate rounded corners by using four extra divs or by using JavaScript. The classical method uses jQuery along with a JavaScript plugin called Corners. As you can see, all that you need to do is specify three CSS3 properties. View the demo. Box shadows provide you with a very powerful tool. 99% of the time when I'm desigining, I find myself using drop shadows for something. I'm using the dropShadow plugin.

Getting started with Bootstrap: Part 1 of Series - Mr. Geek Bonjour geeks. This is the first of a series titled ’Getting started with Bootstrap’. The aim of the series on the large is to help you understand the mechanics of using a web design toolkit, that is Bootstrap. Meanwhile, this particular tutorial aims to get you started with using Bootstrap so you can have the skill set of creating a basic responsive template under 1 hour. I believe this is a good time to explain what a web design toolkit is. At the core of Bootstrap lay it’s grid system. Bootstrap is built by two open source fanatics at a company called Twitter. Using this grid system, you can create a box for content by simply calling the class spanX, where X is number of grids. 12 Column Grid Setting Up Bootstrap To download Bootstrap, click here. Creating Your First Page Ok, once you have everything setup, we can finally get going. The Markup Let us look at the markup involved in creating the template you saw above. Next up is the footer markup. Live Demo :: Source Code About Ali Gajani

50+ Useful CSS Tools And Generators for Developers Jul 11 2011 CSS tools are essential for web developers because they act like a sort of magic lamp that can simplify the job at hand. Most development tools are time savers that are there to help developers create stylish, functional and optimized websites with a few shortcuts. CSS tools and generators are available in such large numbers that a developer can choose from a range of them to make their projects go smoother. CSS Colors Tools Color Scheme DesignerThis tool provides colors in the form of a color wheel that offers mono, complement, traid, tetrad, analogic and accented analogic color variations in the percentage ratio; and it also highlights the same with the suitable scheme chosen. Ultimate CSS Gradient GeneratorIt is a CSS gradient editor and generator that lets you create CSS gradients having cross-browser support. CSS Color CodesThis tool offers two options for furnishing the hexadecimal and RGB color codes. CSS Layouts Tools CSS Grids Tools CSS Menus and Buttons CSS Sprite Tools

Debian / Ubuntu Linux: Install and Configure Shoreline Firewall (Shorewall) I know how to setup a firewall under RHEL / Fedora and CentOS Linux quickly. How do I setup a host-based firewall under Debian or Ubuntu Linux server or desktop system? How do I install Shoreline firewall (Shorewall) utility to build firewall based on the Netfilter under Debian or Ubuntu Linux? Shorewall is an open source tool Linux that builds upon the iptables. It makes it easier to manage more complex configuration schemes. It provides a higher level of abstraction for describing rules using text files. How do I install shorewall? Type the following command as root user: # apt-get install shorewall shorewall-common shorewall-shell Sample outputs: Reading package lists... Shorewall Configuration Files All files are located in /etc/shorewall/ directory as follows: /etc/shorewall/shorewall.conf - Shorewall global configuration file. Configuration startup=1 Save and close the file. Step #1: Define network zones Edit /etc/shorewall/zones, enter: # vi /etc/shorewall/zones Append the following code:

CSS Grid Positioning Module Level 3 Conformance requirements are expressed with a combination of descriptive assertions and RFC 2119 terminology. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this document are to be interpreted as described in RFC 2119. However, for readability, these words do not appear in all uppercase letters in this specification. All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. Examples in this specification are introduced with the words “for example” or are set apart from the normative text with class="example", like this: Informative notes begin with the word “Note” and are set apart from the normative text with class="note", like this: Note, this is an informative note. The specification will remain Candidate Recommendation for at least six months.

Related: