Browsing CSS tricks's Archives »»

Most of the webmasters who ever got to build a site’s form, know that sometimes the testing area is not easy to set up properly. Not only it works different in various browsers but also might not work in practice.
Thankfully, our friends at howto.fm covered this subject and can help you with this issue. Their detailed and informative article on testing the length of the text-field-area, will answer all your questions.

In fact, it’s a great website that gathers many useful articles under one roof and it’s highly recommended to check it out, because as their domain name suggests — it’s all about the “how to’s” and we don’t always know it all, right?

DIVs vs. Tables: What will you choose for your webpage?
Tables have always prompted eye-gouging hissy fits amongst different web designers and accessibility advocates of every stripe. Both the side saddle with myth and have debated in larger part from the conventional ideology.

Why Table layouts were preferred?
Most of us know that prior to the arrival of style sheets, layout tables worked fine with everyone. Experts felt that Data tables were hard and most users preferred layout tables, as they were simple. Most people preferred tables for two reasons over DIVs. Firstly, they were around for a longer period with the web designers. Secondly, they offer a faster method for creating page layouts that are grid-based.

Simple layouts have been amongst the few reasons that have made some users have gripes against DIVs. Again, DIVs have sketchy supports for numerous browsers too. Experts used to feel that it will always be a difficult task of replacing tabular layouts with DIVs. Tabular layouts have mostly similar layouts in numerous ancient browsers (graphical).

Advantages of DIVs
However recently, some of the web designers have felt that DIVs have numerous advantages over tabular layouts. They have found out that DIVs are:

- Having page size much smaller than tables and are quicker in loading on most browsers
- The flexibility of future with further development is there with DIVs
- The source file is much easier for reading
- DIVs are friendlier in terms of different search engines

Reason for which you should shift from layout tables
Layout tables were formulated for providing structures to a data, meaning all the data had a particular variable and they were systematically stored. This was the intended use of the tables. Wide deployed subsets are included in HTML 3.2. Its standard says that tables could be utilized for tabular markup or for layouts.

However, languages in draft indicate that semantic or structural uses are preferred. This matter has even been settled with the continuously growing DIVs support. Experts feel that separating the structural data reduces the cost of maintaining them for the webmasters. Mixing the information leads to increase in ownership cost and less portability in between media and applications. With the use of tables, semantic meaning of the web page is lost. Text-only or speech browsers do not enjoy such layouts. DIVs switching allows the formation of a simple and accessible decipher web page.

How can DIVs give better performance?
Some web designers feel that DIVs can never be a replacement for such table-based layouts. Still, they feel that if browsers can work their act properly, the former can create simple layouts with little hassle. It provides you with an easy and simple environment for changing layouts. There is no requirement for modifying each page in DIVs, which is the case with tables. Again supplementing the data with extra sections are also considered simpler than their counterpart.
Read More from "Divs Vs. Tables"

Adding a rollover button to a webpage with Dreamweaver is a really simple task… if you have the button images ready to go.

If you don’t have the images yet, here’s what you need to do: Open a graphic design program like Fireworks or Photoshop and create a rectangle with a solid fill (for this example, blue) and then put some white text on it that says ‘Home’.

Next you want to trim the canvas and export this image as something like ‘home1.gif’ or ‘home1.jpg’ file. Export the image to the folder where your web pages are so that you can use it for your webpage. Next, simply change the color of the text on the button to yellow, and export that version as ‘home2.gif’

Once you have these 2 images, creating a rollover button in Dreamweaver is cake because Dreamweaver does it all for you.

Simply place the cursor where you want the button on your webpage and choose ‘Insert’ > ‘Image Objects’ > ‘Rollover Image’ from the Dreamweaver dropdown menu.
Read More from "Rollover Buttons and Pop-up Menus in Dreamweaver"

Published under CSS tricks, Webmasterssend this post

Is it possible? I mean that only there are only 15 properties you have never used before in your CSS? The guys from SEOmoz.com think that yes.
Read More from "15 CSS properties you probably never use"

Published under CSS trickssend this post

Looking for an easy way to design a professionally looking, sleek and clean CSS navigation menu? Then CSS Tab Designer is a must to have installed. It’s a very easy to use software which comes with a wide variety of pre-installed menu styles, including graphical buttons.

th_csstab2-1.png

vertical-tabs.png

multi-tabs.png

You will find tons of web 2.0 styles, all you need to do it configure the links. The software is free but you have an option of upgrading, if you like. In my opinion, this is probably one of the the best design freewares… and, this was not a sponsored review :D

Web 2.0 is still allover the place, and everyone wants to have a design with rounded corners. There are two options - 1. Making a heavy PSD template that will take quite a while to load and slice, or - 2. Making a light and modern, CSS-based layout.

Rounded corners in CSS 3 is possible for boxes and is not even any hard to achieve. The 24ways site wrote an excellent tutorial for making rounded corners n layouts - easily and effortlessly, all you need to do is understand and download their code. In some way, with CSS life is easier.

Published under Web 2.0, CSS trickssend this post

Despite the growing popularity, not many of you are aware how useful Clean CSS site is. It’s is based on csstidy v.1.1, which explains the quality.

15.jpg

What does it do? You input the code, either by copy and paste or upload from your computer, and select the desired options. Please note, this is not a validator which points out errors in your CSS code, this is an optimizer that helps you to turn an “old fashioned”, unoptimized CSS style sheet into a higher standard file, which will be smaller, easier to work with and faster to load. I tried to optimize one of my files, which I thought are of a high standard already and they got 24% optimized. Nice tool!

Published under CSS trickssend this post

Did you know how CSS (Cascading style sheet) evolved? It’s really not just the good old .css file anymore that determines the size of the font, colours and text position. Today, compared to XHTML, - CSS allows you to create and squeeze much more out of your design. Want to see some examples? Here are 3 code snipts that will show you how CSS was taken to a whole new level.

10 Free CSS Graph Resources - If you want to be able to display the fly graphs, here are 10 CSS Generators or Techniques that may help you in generating CSS graphs .

88.jpg

CSS Cheat Sheet - All the CSS properties at a glance.

48.jpg

CSS-Based Form Template - Flexible, semantically correct, and even accessible form template. Allows you to build  a much more appealing to the eye contact form.