Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7704503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:41:42+00:00 2026-05-31T23:41:42+00:00

In laying out a page with absolute positioning, I realized that it rendered differently

  • 0

In laying out a page with absolute positioning, I realized that it rendered differently from browser to browser. I’ve been looking online about css selectors to see if there was some way to change the positioning based on which browser the user was using, but I haven’t been able to find anything very helpful. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:41:43+00:00Added an answer on May 31, 2026 at 11:41 pm

    That looks like a bad strategy to me… I wouldn’t want to switch from absolute to, say, relative or some other kind of positioning based on the kind of browser. They all should implement positioning fairly similar. You’d probably need to add some extra styles to make a particular element behave properly on certain browser, but changing the global positioning method based on browser is not a good idea, IMO.

    UPDATE:

    On CSS alone, there isn’t any standard mechanism to detect a browser. You can use tricks like the one below to detect a particular version of IE, for example:

    <!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="iespecific.css" />
    <![endif]-->
    

    or something like:

    <!--[if gte IE 6]>
    <link rel="stylesheet" type="text/css" href="iespecific.css" />
    <![endif]-->
    

    For a more complete list of options see here.

    Another alternative is to use jQuery (if it’s an option for you) and adjust the element’s style using javascript depending on the browser. Something like:

    if ( $.browser.msie ) {
        $("#div ul li").css( "display","inline" );
     } else {
        $("#div ul li").css( "display","inline-table" );
     }
    

    More examples here.

    A word of caution: none of the above methods is infallible. One, for example, can make Firefox identify itself as Internet Explorer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was developing a web page, where I was laying out a board for
I have a question about laying out some swing components. Say, I have a
I have been debating using css with div's and laying out elements, and really
I've been working on laying out the data structure for an application I'm working
I have a plain table view that is laying out properly except that the
So updateDisplayList is for laying out, positioning and sizing a component's children. It seems
I have been laying out a GUI uing ASP.NET and find I am confused
I've been playing with laying out some simple shapes inside groups in Flex and
One part of web development (from a front-end perspective) is laying out forms. There
When laying out a page, what are the alternatives to <table> ? I've read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.