473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to make different value per browser?

Bob
Hi at all

I'ld like to make different values of the position and top property one per
browser.

I.e.

duv#fixed{

position:fixed !important; //firedfox

top:30%; //firefox

left:25%; //firefox

position:relative; /MSIE

top:-200px; //msie

}

How can I do to apply the top:-200; only to MSIE and the top:25% only to FF
or the left:30% only to FF?

Best regards
Jul 20 '07 #1
7 4297
On 20 Jul, 10:24, "Bob" <b...@nospam.comwrote:
I'ld like to make different values of the position and top property one per
browser.
Then stop wanting that. It's a disgusting perversion and you should be
ashamed, not talking about it in public.

If you _think_ that you need it, because otherwise "browsers show
things too differently", then you're addressing the wrong problem.

* If you do things right, they won't vary too much (for typical
requirements requested of typical browsers)

* If they do still vary, that's not a big deal. The user context
(screen size, user defaults, OS, even the browser) will all affect
things to some small extent. We have to work around this by being
"fluid" with our designs and producing pages that "work" in these
different contexts, not trying to slavishly maintain an unachievable
and fundamentally pointless narrow consistency.
If you still insist, then use IE conditional comments (JFGI). They're
the cleanest of the ugly hacks for achieving this.

Jul 20 '07 #2
Bob wrote:
>
I'ld like to make different values of the position and top property one per
browser.
top:30%; //firefox
top:-200px; //msie
It is very likely you are fixing the wrong problem by doing this. You
need to resolve the cause of the positioning difference instead.

Are you triggering quirks mode in IE, which causes it to use a broken
box model and mangle positioning? We can't know, or suggest a better
solution, without seeing the web page in question.

Post a URL. Do not post code.

--
Berg
Jul 20 '07 #3
On Fri, 20 Jul 2007, Bob wrote:
I'ld like to make different values of the position and top property
one per browser.
That's like telling some browsers to sit in the back of the bus.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Jul 20 '07 #4
Bob
"Bergamot"

wrote
Post a URL. Do not post code.

--
Berg


The CROSSBROWSER <divthat I want to do is like the <duvthat appair into
this page
http://www.dpopup.com/

Best regards

(at all)


Jul 20 '07 #5
Bob wrote:
"Bergamot"

wrote
>Post a URL. Do not post code.

--
Berg

The CROSSBROWSER <divthat I want to do is like the <duvthat appair into
this page
http://www.dpopup.com/
Are you talking about that sliding popup they use to get you to download
something? It done with JavaScript really. If you want to do it,
download their script.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jul 20 '07 #6
On 20 Jul, 15:19, Andreas Prilop <Prilop2...@trashmail.netwrote:
That's like telling some browsers to sit in the back of the bus.
....and IE's only on a short bus to start with.

Jul 20 '07 #7
Bob wrote:
>
The CROSSBROWSER <divthat I want to do is like the <duvthat appair into
this page
http://www.dpopup.com/
If you want to do what they do on that page, then do as Mr Little says
and download their script.

If you have made your own attempt at it, then post the URL for that page
and maybe we can help you with your code. If you can't do that, then we
can't help you.

--
Berg
Jul 20 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
1
by: Jenny | last post by:
Need urgent help for an unsolved problem. In our ASP web application, we creat a Back button and if user click on this button, it execute history.go(-1) to go back to the previous page. All our...
1
by: theyas | last post by:
I have a page that I get to by selecting the part number and serial number of an item in my database. The pages then generates a set of files. Some of these files have unique names (containing...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
7
by: phal | last post by:
Hi I think there are many different browsers to browse to the Internet, how can I write the javascript to identify different browser and display according to the users. Some browser disable the...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
1
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link...
48
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.