Results 1 to 2 of 2

Thread: expert weigh in on tables and floats needed.

  1. #1
    Join Date
    Jul 2007
    Posts
    6

    expert weigh in on tables and floats needed.

    I have read or heard in passing that there is alot to be gained from using floats instead of tables, and I think that everyone has heard that nested table structures will slow the loading of a page. Which brings me to my first question:
    -If I'm not concerned with dial up users is nested tables really a concern? And what other if any advantages are there to trying to replace table strucures with with floats? It seems to me that it would restrict things a bit to me, but then I've never implemented a float yet.
    -Second question, I have seen a floating float that actually scrolls down with the page. I don't mean a floating backgroung, but a float in the foreground. The example I am refering to only worked in IE (sorry, no link). Is this an attribute of the float tag? or is this a javascript snippet?

    Anyone have a quality link on this?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    The downloading of tables won't be noticeably longer for most webpages, they would have to be very long and downloaded on dial-up for any difference to be seen.

    Floats for elements like divs, images and other elements gives much greater flexibility, it means elements can be put in very different positions instead of just having one cell on top of another or having lots of stacked or nested tables, so it creates neater, shorter code but it can be difficult to get them to do what you want. There is also a much greater variety of margins, padding, borders, etc. for each or any side of an element which is easier to control with CSS than with old table coding.

    If something stays where it is on the screen while you scroll, so that the other content moves past it, then it probably has position: fixed which IE6 and older browsers don't support. If it moves down the page while you are not scrolling or doing anything, then it could be a flash image.

    Use an online tutorial like:-
    http://www.w3schools.com/ (very detailed)
    or
    http://www.wickham43.supanet.com/tut...roduction.html (an introduction).
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •