Articles in the ‘Tutorials’ Category

  • CSS in Depth: Floats and Positions

    Posted: 2 days ago in Tutorials

    We’ll be discussing CSS positions and floats as well as what the differences are and when it’s best to use them. Both floats and positions deal with the relationship of elements between each other. Without these, padding and margins would be ineffectual…

    VN:F [1.8.5_1061]
    Rating: 0 (from 0 votes)
  • Meet the Pseudo Class Selectors

    Posted: 2 days ago in Tutorials

    Pseudo class selectors CSS selectors with a colon preceding them. You are probably very familiar with a few of them. Like hover. They are immensely useful in a variety of situations. Some of them are CSS3, some CSS2, it depends on each particular one. Outside of IE, they have great browser support. In IE land, even IE8, support is pretty barren. However, the IE9 preview has full support of them. The link-related ones work but not much else. Let’s take a brief look at each one of them. Don’t worry, there aren’t that many…

    VN:F [1.8.5_1061]
    Rating: 0 (from 0 votes)
  • Easier print CSS coding using Firebug and Web Developer Toolbar

    Posted: 3 days ago in Tutorials

    Print stylesheets are an aspect of front-end engineering that rarely get any love, and they’ll often be ignored until the last possible moment before launching a site. Sometimes they might even be forgotten altogether, but you should always make time to write at least a basic stylesheet that formats things neatly, and reveals any elements that only make sense on paper while hiding things like interactive controls that will be useless when printed. Here’s a useful tutorial to speed up the CSS print stylesheet process…

    VN:F [1.8.5_1061]
    Rating: +2 (from 2 votes)
  • Get to Grips with CSS Pseudo-Elements

    Posted: 4 days ago in Tutorials

    Pseudo elements include :first-line, :first-letter, :before and :after. In the CSS specification, W3C define pseudo-elements like this:

    Pseudo-elements create abstractions about the document tree beyond those specified by the document language. For instance, document languages do not offer mechanisms to access the first letter or first line of an element’s content. CSS pseudo-elements allow style sheet designers to refer to this otherwise inaccessible information. Pseudo-elements may also provide style sheet designers a way to assign style to content that does not exist in the source document…

    Mmm, now I don’t know about you but that description makes my head hurt. Let’s take a closer look at pseudo-elements and see how we can use them in our own projects.

    Read more »

    VN:F [1.8.5_1061]
    Rating: 0 (from 2 votes)
  • Understanding CSS Style Precedence

    Posted: 6 days ago in Tutorials

    Have you ever run into the situation where you’re trying to apply a css style to an element, but it won’t take? Your page it seems to be ignoring your CSS, but you can’t figure out why. Maybe you found yourself using !important or adding an inline style as a last resort. There’s a good chance the problem you encountered was one of CSS precedence.

    A better understanding of which CSS styles take precedence can lead to less frustration with css, cleaner code, and more organized css so let’s look at three things that control which css rule applies to a given html element…

    VN:F [1.8.5_1061]
    Rating: +1 (from 1 vote)
  • Understanding CSS Attribute Selectors

    Posted: 1 week ago in Tutorials

    CSS has the ability to target HTML elements based on any one of their attributes. You probably already know about classes and IDs. But did you know you can select an element based on the rel attribute as well? That is known as an attribute selector. There is a lot more to attribute selectors so let’s look closer at all the different options and try to cover some “real world” scenarios on when they might be useful…

    VN:F [1.8.5_1061]
    Rating: 0 (from 0 votes)
  • CSS In Depth: Margins, Padding & The Box Model

    Posted: 1 week ago in Tutorials

    In the first of the CSS In depth series, we’ll be talking about margins, padding and the box model. Margins and padding are some of the most widely used styles in CSS, but are often the source of frustration in cross-browser compatibility.

    In this post, we’ll explain the difference between padding and margins, how the box model effects browsers and some tips and tricks dealing with cross-browser issues…

    VN:F [1.8.5_1061]
    Rating: 0 (from 0 votes)
  • CSS3-Only Tabbed Area

    Posted: 1 week ago in Tutorials

    When you think of “tabs”, your mind might go right to JavaScript. Watch for a click on a tab, hide all the panels, show the one corresponding to tab just clicked on. All major JavaScript libraries tackle tabs in some way. But there is a way to accomplish this same idea with “pure CSS”. Just as we did with the CSS Image Switcher, let’s tackle this traditionally JavaScript project with only CSS…

    VN:F [1.8.5_1061]
    Rating: 0 (from 0 votes)
  • 5 Advanced CSS Pseudo Classes

    Posted: 1 week ago in Tutorials

    CSS3 provides powerful pseudo-classes that allow the designer to select multiple elements according to their positions in a document tree. Using these pseudo-classes can be a little confusing at first, but it becomes a lot easier over time to set up your layout. In today’s article I’m going to take a look at 5 pseudo-classes that will simplify our design process and reduces a lot of time to create a certain visual effects. You will also find demonstration below each point to demonstrate how we can use these selectors in different design scenario you face everyday in your designing process…

    VN:F [1.8.5_1061]
    Rating: 0 (from 0 votes)
  • CSS text-indent: An Excellent Trick To Style Your HTML Form

    Posted: 2 weeks ago in Tutorials

    You probably know what the text-indent property does in CSS. It’s a common CSS property allowing webmasters to indent paragraphs and hide text for image-based links. Text-indent does this great; however, it doesn’t just hide and indent text. It does more.

    People mostly use text-indent to hide text like our example above. They often use the negative value for text-indent but forget to make use of its original intent: inset indentation. Here I’ll show you how to make a beautiful text field using text-indent…

    VN:F [1.8.5_1061]
    Rating: 0 (from 0 votes)
Page 1 of 3012345»102030...Last »