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 7 of 7
  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    2
    Member #
    15285
    I'm trying to figure out how to do absolute positioning that works on all browsers (IE6, IE7, Firefox). I found some things about * hacks but none were really thoroughly explained. Is there anywhere I can get a code segment for positioning of a, for example, table... where it would correctly display in all these browsers?

    For example...

    .table {
    background-image: url(stuff.gif);
    width: 100px;
    height: 100%;
    position: absolute;
    top: 20px;
    left: center; /* centered?? */
    }

    How would I be able to do that and for it to work in those 3 browsers?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    This one is sort of interesting ....

    I think in this case, it would be easiest for us to see an actual
    example page you're working on ... because there will be other
    factors involved.

    I'm guessing you'll be nesting the table in another <div> which has
    text-align:center;

    If you can give us a working sample page (the URL) that would be best.


  4. #3
    Junior Member
    Join Date
    May 2007
    Posts
    2
    Member #
    15285
    check attachment
    don't have webspace at the moment

    img is supposed to be centered/aligned with big white table that is serving as the backdrop for all the content

    also... this doesnt work at all in firefox for some reason???
    this is IE6
    Attached Images Attached Images

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    So you've used the word "table", but that must not be
    what you really mean. Your content area would be a <div> section,
    not <table> ...

    That's why I asked to see your online site. Make .txt files out of
    your site and attach them on here. You won't be using <table> at all.
    In fact, you won't need to use any tables unless you have tabular
    data to display.


  6. #5
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    To center, why don't you use this?
    Code:
    margin: 0 auto;
    choosy developers choose gif!
    website | paintings | blog

  7. #6
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    This is just a hunch, but I think he has come across
    some information about writing CSS with hacks, and
    will need to be brought back over from the "dark-side".

    If he provides the whole thing, we can see just how
    serious his condition is ... I hope he can be saved.


  8. #7
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Hahaha! That was awesome mlseim :-)


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 03:00 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com