Quote:
|
Originally Posted by scott2500uk
So by looking at it, it uses way more code to achieve, therefor using more bandwidth
|
Combined, everything might be a bit larger, but it actually
won't use more bandwidth. Using the tables, all of the markup is in the html file. Let's say that using the tables layout, your html file is 30kb. Every page request costs 30kb to transfer. Now suppose you convert everything to a "css friendly" layout and you end up with a 25kb html file and a 6kb external stylesheet. So your new layout is costing you more bandwidth, right? Well...not really.
When the page is first hit by someone, yes, there
will be a total transfer of 31kb -
but, the stylesheet gets
cached. So, if a visitor goes to another page that uses the same stylesheet, they don't need to get that information again because they already have it. SO, even though you've increased the total size of the page and its style information, you've actually made it more efficient because less information is downloaded from the webserver per page request.
Quote:
|
Originally Posted by scott2500uk
and it was no easier than the html tables method.
|
Heh, nobody ever said it was easy. Heck, that's why people still argue for using tables - because they
work.
Quote:
|
Originally Posted by scott2500uk
Can some one please point me into the right direction to where im going wrong and can show me how to do a simple thing like above.
|
What you have above should work. Using all absolutely positioned elements might not be the best idea though...you might want to try using floats. Or absolutely positioned elements inside of a relatively positioned element.