Reviewing an alternative solution using CSS


show more Reviewing an alternative solution using CSS provides you with in-depth training on Developer. Taught by Bill Weinman as part of the XHTML and HTML Essential Training show less
please wait ...

Reviewing an alternative solution using CSS

In this movie, I'll show you an alternate approach to assembling our image using CSS instead of tables. Many people try to avoid using tables for layout, preferring instead to use CSS. Without getting into which approach is better, they both work just fine. I'll show you here how you can do this same layout using CSS. So here you see the same exercise we had that we did tables. This is a CSS version. You can see that it looks exactly the same as the version that's done with tables.

So let's take a look at the code that makes this happen. So this is our CSS version, and here is the tables version. The tables version you're already familiar with if you did the exercise with the tables version in this chapter. And you'll notice that here's the table borders, cell spacing, cell padding, all set to 0, and your table cells-- all very easy to understand. And then here is the CSS version, and here is the style sheet. This is the CSS inside of this block here, and it...

Reviewing an alternative solution using CSS
Video duration: 4m 21s 4h 44m Beginner

Viewers:

Reviewing an alternative solution using CSS provides you with in-depth training on Developer. Taught by Bill Weinman as part of the XHTML and HTML Essential Training

Subjects:
Developer Web
Software:
HTML XHTML
Author:
please wait ...