Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member krystof's Avatar
    Join Date
    Jul 2005
    Posts
    155
    Member #
    10668
    Liked
    6 times
    Hello, folks.

    Everybody says <tables> are obsolete for page layout, and instead I should use <div> CSS.

    But, they also say not to depend totally on the reading of an external style sheet.

    So, should I put <style="float: left;"> as inline CSS, to make sure the left margin does not take up the whole screen? (Just in case somebody's browser doesn't download the external sheet.)

    Or, is {float: left;} in fact not very reliable at all? Should I avoid it TOTALLY? Is there a better way to place the left navigation margin?

    Thank you for your opinions, anyone.

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    I use float: right; in my external css files and this works fine in FF and IE.

    Alternatively, instead of using the float keyword, you can position your divs absolute, but the float provides a more liquid design.

  4. #3
    Senior Member krystof's Avatar
    Join Date
    Jul 2005
    Posts
    155
    Member #
    10668
    Liked
    6 times
    Thank you for the opinion, bfsog.

    After some experimenting, I find that especially for the right margin, float:right actually appears more stable than absolute positioning. When the window size is adjusted, in IE6 an absolute margin on the right can actually jump around for a moment. (Unless the entire page is rigidly coded as "absolute," which I don't like.)

    I also like the way the text area can get wider when it is longer than the navigation bars. I think I will go with "floats."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:15 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com