Quantcast
Channel: Snipplr - michellebracken
Browsing latest articles
Browse All 40 View Live

(CSS) Visibility or Display?

On the surface both the CSS visibility and display properties seem to do the same thing, hide or show an element on the page. Beneath the surface they work differently.

View Article



(CSS) Cross-Browser Transparency

Not all browsers currently support the CSS3 opacity property. However we can still make transparency work across browsers. From the bottom up: opacity is the CSS standard and will work in current...

View Article

(CSS) Target IE7 (and below) and IE6 (specifically) without Conditional Comments

We all know how difficult IE can sometimes be when it comes to CSS. However instead of cursing IE under your breath or out loud you can easily write IE specific code that other browsers will ignore....

View Article

(CSS) nth-child

The nth-childCSS pseudo-selectors allow you to target the 3rd or 7th or nth element in a list. Another use would be to style odd and even rows in a table differently. The alternative is to add a class...

View Article

(CSS) Basic 2-column CSS layout (fixed width, centered, header and footer,...

This is a pretty common website layout and it’s rather easy to code. The specific widths are arbitrary, but it is necessary to include a width. The keys are centering the wrapper as described above...

View Article


(CSS) Basic 3-column CSS layout (fixed width, centered, header and footer,...

Expanding on the above 2-column layout is this common 3-column layout. Again the widths are arbitrary, but necessary. You can float the secondary div to the right if you prefer.

View Article

(CSS) CSS Triangles and Other Shapes

CSS borders come together at an angle at any corner. This isn’t obvious when setting a border that’s the same color on all sides or if your border-width is only a few px. Making the width much...

View Article

(CSS) Prevent a Line Break

Sometimes the text in a link or heading will break where you don’t want it to. A simple way to prevent this is:

View Article


(CSS) Class vs. Id

View Article


(CSS) Replace Text with an Image

Better typography through more font choices is here, but there are still limitations to using it in practice. Sometimes the easiest solution is to use an image. However you also want the original text...

View Article

(CSS) Style the Element that has Focus in a Form

A nice usability tip is to let people filling out a form know which input currently has focus. You can do this easily using the :focus pseudo-selector This way your users will know exactly which field...

View Article

(CSS) Understanding !important

!important is a way to override CSS specificity. In general it’s not the best solution since the more you use it, the more you end up needing to use it again. It can make your CSS unmaintainable in...

View Article

(CSS) Create a CSS Frame for Images

Many images look nice a frame. You typically frame pictures before hanging them on a wall so why not add a frame to images on your website. The trick is to wrap your images in a div and add a simple...

View Article


(CSS) Letterpress Type Through CSS

The basic idea is to make use of the CSS3 property for text-shadow to create the letterpress effect. The trick is to use a shadow color that’s lighter than the text color and offset it a little and...

View Article

(CSS) Creating Circles With Border-Radius

The CSS2 border-radius property can be used to create circles in all browsers that support the property. The trick is to set the height and width of the element so they’re the same and set the...

View Article


(CSS) CSS Tooltips

You can create a lightweight CSS cross browser tooltip easily with a few lines of code. You can add more styles to suit your design. The key is the span is set to display: none until you hover over...

View Article

(CSS) Creating a Fixed Header

Instead of letting your entire page scroll you might want to hold the header with your logo and navigation fixed in place and only let the content below scroll. You want to make sure to keep the...

View Article


(CSS) Sticky Footer

View Article

(HTML) How to add your own social icons as scrolling buttons to your...

How to add these as scrolling buttons to your WordPress Site: Upload each individual image to your ftp or to a free image hosting server and copy the url of each image location. Add the following code...

View Article

(CSS) How to Change image on rollover(MouseOver) in CSS

HTML first and then css

View Article
Browsing latest articles
Browse All 40 View Live




Latest Images