Are there advantages to this CSS Design?

Discussion in 'CSS' started by ericindc, Jan 12, 2008.

  1. #1
    I looked online for quick samples of a layout I am trying to accomplish. Quite simple: a header, 200px left frame, right frame 100%. But what I found in my search are two quite different bits of CSS.

    http://layouts.ironmyers.com/100_percent_Layouts/layout/?id=2 (Design 1)
    http://www.maxdesign.com.au/presentation/two-columns/final.htm (Design 2)

    Now, there is quite a bit of difference between the code for each. Granted, the first one has CSS for a variety of layouts. But what I also notice is twofold. First, the first one has what looks to be a few hacks and additional precautionary steps taken that the second one does not. Second, the first one causes all sorts of warnings to pop-up in the console when the page is loaded.

    Is there any benefit to using one over the other? Most of what I've read in books and online tutorials is similar to the code in Design 2, but Design 1 had to have been done for a reason, right?
     
    ericindc, Jan 12, 2008 IP