css

TwitterFacebook
Get flash to fully experience Pearltrees
selectors

liquid

print

Sadly enough, there is no markup for image captions in HTML, unless you count the figcaption element in HTML5 proposals . What comes closest to semantically associating some text content with some image is putting them into a table so that the image is in one cell and the text is either in another cell or in a caption element. Then there’s the “semantically empty” approach, which is better than semantically wrong (such as suggestions to use definition list markup). This approach generates by default (i.e. if you don’t use style sheets or additional attributes to affect the rendering) a presentation that is illustrated on the right. The image and the caption text are in two cells of a one-column table.

Image captions on Web pages - HTML and CSS techniques

http://www.cs.tut.fi/~jkorpela/www/captions.html
http://www.thesitewizard.com/css/center-div-block.shtml This article discusses how to centre (or "center" in US English ) a DIV block, whether it contains text, graphics, or a mixture of both, using standards-compliant Cascading Style Sheets (CSS). The technique is useful not just for creating pleasing designs, but also for times when you want to create a fixed width single column layout with the main content placed in the centre of the page, and not flushed to one side. If you don't even have a website yet, and have arrived at this article looking for tips on designing one, please start with my article on How to Start/Create Your Own Website instead. However, the rule centres the text inside the box, rather than the block itself. While there are times when you may want to do this, our intention here is to centre the entire block but leave the internal contents formatted as it was before. As such, the above code is not what we want.

How to Centre a DIV Block Using CSS (thesitewizard.com)

Tutorials: CSS Link Styles

A Style, in CSS jargon, is called a Rule . A rule has several component parts. Let's take the first default link style depicted above and inspect its parts: http://www.projectseven.com/tutorials/css/pseudoclasses/
http://meyerweb.com/

meyerweb.com

Assuming you don’t want to spend the hours and lines of code necessary to push ahead with span and a whole lot of dynamic CSS rewriting, the obvious solution is to invent a new element and drop that into place. If you’re doing kerning, then a kern element makes a lot of sense, right? Right. And you can certainly do that in browsers today, as well as years back.
Although CSS is generally considered a simple and straightforward language, sometimes it requires creativity, skill and a bit of experimentation. The good news is that designers and developers worldwide often face similar problems and choose to share their insights and workarounds with the wider community. This is where we come in. We are always looking to collect such articles for our posts so that we can deliver the most useful and relevant content to our readers. In this post, we present an overview of useful CSS/jQuery coding tips, tricks and techniques for visual effects, layouts and web form design to help you find solutions to the problems you are dealing with or will have to deal with in future. 5 http://coding.smashingmagazine.com/2010/02/18/50-css-and-javascript-techniques-for-layouts-forms-and-visual-effects/

50 Useful Coding Techniques (CSS Layouts, Visual Effects and Forms) - Smashing Magazine

Equal Height Columns with Cross-Browser CSS and No Hacks

http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks For those who want some action immediately check out my demo pages: 2 column , 3 column , 4 column and 5 column . Also see my Perfect multi-column CSS liquid layouts - these use the same equal height column CSS principles as discussed below. In the example above we have three columns each with a different amount of content. You will notice that the problem is the column background colours stretch only as far down as the height of the content they contain. This is the problem we are trying to solve. How can we make all columns the same height?
Applying border & opacity to images onMouseover in CSS In this tutorial, I'll show you how to use CSS alone to reproduce two popular image effects that have traditionally been done using scripting. The advantage of looking to CSS instead is obvious- much more lightweight and easier to implement. The two effects in question are:

Applying border & opacity to images onMouseover in CSS

http://www.javascriptkit.com/dhtmltutors/cssimage.shtml
http://www.w3schools.com/css/css_examples.asp W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content.

CSS Examples

CSS-Tricks

Apr 9 2012 The :target pseudo selector in CSS is both pretty cool and pretty limited in what it can do. In this article we discuss some things it can be helpful with, it’s limitations, and some work arounds. http://css-tricks.com/
http://psd.tutsplus.com/tutorials/interface-tutorials/photoshop-web-design-sleek/

Create a Sleek, High-End Web Design from Scratch - Psdtuts+

In this tutorial, we’ll put together a high-end Web design using a crisp, thin font, gorgeous background images, and clever use of space and layout. You can easily use the technique to create your own unique designs. Then when you’re finished reading this tutorial, you can cross over to our sister site NETTUTS and follow along as we build the design into clean and simple HTML.
Once a user agent has parsed a document and constructed a document tree , it must assign, for every element in the tree, a value to every property that applies to the target media type . The final value of a property is the result of a four-step calculation: the value is determined through specification (the "specified value"), then resolved into a value that is used for inheritance (the "computed value"), then converted into an absolute value if necessary (the "used value"), and finally transformed according to the limitations of the local environment (the "actual value"). Otherwise, if the property is inherited and the element is not the root of the document tree , use the computed value of the parent element. Otherwise use the property's initial value . The initial value of each property is indicated in the property's definition.

Assigning property values, Cascading, and Inheritance

Link Specificity

A: While it's always possible that you have a stupid browser-- that's not really for me to say-- it is more often the case that the styles have simply been written in the wrong order. To ensure that you see your various link styles, you're best off putting your styles in the order "link-visited-hover-active", or "LVHA" for short. If you're concerned about focus styles, they may go at the end-- but wait until you've read this explanation before you decide. The core of the situation is this: every selector has a specificity. If two selectors apply to the same element, the one with higher specificity wins. Thus:
The Internet is still in its infancy as a medium but, slowly — very slowly — designers are coming to terms with it. Well, a small contingency of designers anyway. The sad fact is that the vast majority of Websites you’ll come across, especially small-medium sized business sites, would be better off being made into a print brochure.

What is Liquid Design? [Design Practice]

Seriously, always use a reset of some sort . Whether you are using the Eric Meyer Reset , the YUI Reset , or your own custom reset, just use something. The Eric Meyer and YUI Resets are awesome, but to me, they just go too far. I feel like you end up resetting everything, and then redefining a lot of properties on the elements.

5 Ways to Instantly Write Better CSS - NETTUTS

24 ways: Intricate Fluid Layouts in Three Easy Steps

The Year of the Script may have drawn attention away from CSS but building fluid, multi-column, cross-browser CSS layouts can still be as unpleasant as a lump of coal. Read on for a worry-free approach in three quick steps. Ems are a superior unit of measure for our case because they represent the current font size and grow as the user increases their font size setting.