Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    The elusive cross-browser exact positioning

    I won't go crazy with details. Is there a way to acheive exact vertical positioning of a div between IE, Firefox, Safari and Chrome? FF and Safari are always hovering an inch above where IE is, and I'm working in a tight space.

    I set the horizontal positions just fine using auto margins. I understand vertical is harder though, but I have no idea where to start. Should I put them in tables? I've heard of in-line blocks, would those work? Is it just not gonna happen? Thanks!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Are you trying to do something like http://www.wpdfd.com/editorial/thebox/deadcentre4.html ?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's not so much exact center as it is that I have a bunch of divs that display php prints from a database... but they don't display the same vertically in all browsers. For example, what looks perfect in firefox displays an inch higher in Internet explorer. I'm trying to get these php prints to display on top of some pretty tight areas on the background, and an inch makes a big difference.

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,955
    Thanks
    9
    Thanked 726 Times in 720 Posts
    A link to your page would help, I think.

  • #5
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    A lilnk would be very helpful since I can;t be sure even what this means.

    Code:
    that display php prints from a database
    Does that means printed output
    or
    photographic prints
    or
    print statements
    for example?

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #6
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sure, feel free to take a look. I'm at www.madflex.com. You'll have to sign in to see what I'm talking about, you can use
    coachmadflex@gmail.com and password: test
    to get into the community portion of the site.

    All I meant by php prints is that I have information that is being called from a MySQL database, and it is nested inside div tags that are being displayed on the page improperly in terms of vertical alignment.

    You can see the errors when you are logged into my page. The logged in users stats are relatively clean on their page, but when you look at other users' pages, the bio and info areas are erratically out of whack sometimes. I don't know how this is possible, since all pages are using the same profile template.


  •  

    Posting Permissions

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