background preloader

CSS

Facebook Twitter

Subdirectories URL Internally Redirect to Query String. CSS Galleries. Easy Percentage Grid System with HTML5. Web grid systems help front end coders to layout a document faster. In this article I am presenting a percentage based grid system that is included in the Easy framework’s CSS. The main characteristics of this grid system is that all the columns have percentage based width so they adapt to the container element.

It means that with using this system you will not have to define a width of each column by hand, you can simply throw it inside any container and the column widths and column gutters will be automatically set. This system supports up to 6 equal width columns, so you can choose anywhere from 2 to 6 columns in the set. Naming the columns and column containers Grid system often compromise the semantics. Can be used for creating 2 equal columns. If you want to create more than 2 column set you need to add a class name colsX to the container where X represents the number of columns in the set. Demos Take a look at the demos to see how it all looks like. Edit: Column Padding. 70 Expert Ideas For Better CSS Coding. Advertisement CSS isn’t always easy to deal with. Depending on your skills and your experience, CSS coding can sometimes become a nightmare, particularly if you aren’t sure which selectors are actually being applied to document elements.

An easy way to minimize the complexity of the code is as useful as not-so-well-known CSS attributes and properties you can use to create a semantically correct markup. We’ve taken a close look at some of the most useful CSS tricks, tips, ideas, methods, techniques and coding solutions and listed them below. We also included some basic techniques you can probably use in every project you are developing, but which are hard to find once you need them.

And what has come out of it is an overview of over 70 expert CSS ideas which can improve your efficiency of CSS coding. You might be willing to check out the list of references and related articles in the end of this post. Update (29/05/2007): Brazilian-Portuguese translation of the article2 is also available. Easy Paginate - styled demo. Click on the links below to navigate through items Template 01 Pretty cool template Template 02 Pretty cool template Template 03 Pretty cool template Template 04 Pretty cool template Template 05 Pretty cool template Template 06 Pretty cool template Template 07 Pretty cool template Template 08 Pretty cool template Template 09 Pretty cool template Template 10 Pretty cool template Previous1234Next. Liquid Image. Look at the main page of this web site, you will find a photo of me.

This image seems pretty normal at first glance, but it has one special feature: if you resize your browser window you can see the photograph’s dimensions adapts to the new column width. Let me explain how this has been done. We call “liquid” a web site design that adapts itself to the browser window’s size. The image is liquid because its size changes too when the containing column size changes. This is how we do it. Stylesheet At first it looks rather simple. The id allows us to specify a stylesheet rule telling the image use 100% of the current block width: As for the image height, it is set to auto.

(Note: the height attribute is by default set to auto. Image Quality Now we need to be sure the picture has a sufficient resolution so that it looks good in any reasonable cases. This image makes 250 pixels width. On the Mac as on Windows, the result shows nocks on the edges at regular interval on the image. Conclusion. CSS Guides: Changing Link Colors with CSS, SSI-Developer.net. Introduction This guide shows how to specify link colours with CSS whether you want the same colours for all links or different colours for certain links. Also includes how to change the colour "onmouseover" (hover colour). Tested in Specifying the default colour If you want to specify the default colours which will be used in a web page you should use the following code.

These colours will be applied to all links in the document. This code specifies that all links should be black (#000000), active links should be blue (#0000ff), links which have been visited should be green (#008000) and the hover colour, when you mouseover the link, should be red (#ff0000). The text decoration has been specified as "underline" which disappears on mouseover. Note: If you specify the "color" you should also specify the "background-color". Specifying different colours for different links Assuming we have two links "Blue Bold Link" and "Red Italic Link" we assign each a suitable class link this:

Tableless forms. Date: 02/09/2005 Tableless forms using CSS Author: CSS Drive This CSS example transforms a conventional form so it's tableless. A form that doesn't use tables for its layout is much more lightweight and semantically correct. The CSS: The HTML: <label for="user">Name</label> <input type="text" name="user" value="" /><br /> <label for="emailaddress">Email Address:</label> <input type="text" name="emailaddress" value="" /><br /> <label for="comments">Comments:</label> <textarea name="comments"></textarea><br /> <label for="terms">Agree to Terms?

By floating the "label" tag to the left, the text description of each form field appears to the left, resulting in a "two column" look for the form. Comments (108) It's concise, it's informative and it's exactly what I wanted to know. Ps. There's a large gap (approx 600px) between the Name and Email field above in Firefox but not Win IE Hi Andy: I don't see that problem in Firefox (1.0)... It would be nice to figure out a way around this. my errors: 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. Html - Limit text to the width of sibling image / auto width in CSS. Pines Form.