|
Next: div positioning and margins
|
| Author |
Message |
External

Since: Jul 26, 2007 Posts: 12
|
(Msg. 1) Posted: Fri Jul 20, 2007 9:24 am
Post subject: How to make different value per browser? Archived from groups: comp>infosystems>www>authoring>stylesheets (more info?)
|
|
|
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 |
|
| Back to top |
|
 |  |
External

Since: Jun 01, 2007 Posts: 134
|
(Msg. 2) Posted: Fri Jul 20, 2007 9:24 am
Post subject: Re: How to make different value per browser? Archived from groups: per prev. post (more info?)
|
|
|
On 20 Jul, 10:24, "Bob" <b....TakeThisOut@nospam.com> wrote:
> 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. |
|
| Back to top |
|
 |  |
External

Since: Sep 27, 2006 Posts: 727
|
(Msg. 3) Posted: Fri Jul 20, 2007 9:24 am
Post subject: Re: How to make different value per browser? Archived from groups: per prev. post (more info?)
|
|
|
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 |
|
| Back to top |
|
 |  |
External

Since: Jun 01, 2007 Posts: 134
|
(Msg. 4) Posted: Fri Jul 20, 2007 9:34 am
Post subject: Re: How to make different value per browser? Archived from groups: per prev. post (more info?)
|
|
|
On 20 Jul, 15:19, Andreas Prilop <Prilop2....TakeThisOut@trashmail.net> wrote:
> 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. |
|
| Back to top |
|
 |  |
External

Since: Jul 26, 2007 Posts: 12
|
(Msg. 5) Posted: Fri Jul 20, 2007 3:43 pm
Post subject: Re: How to make different value per browser? Archived from groups: per prev. post (more info?)
|
|
|
"Bergamot"
wrote
> Post a URL. Do not post code.
>
> --
> Berg
The CROSSBROWSER <div> that I want to do is like the <duv> that appair into
this page
http://www.dpopup.com/
Best regards
(at all) |
|
| Back to top |
|
 |  |
External

Since: Feb 02, 2005 Posts: 2526
|
(Msg. 6) Posted: Fri Jul 20, 2007 3:43 pm
Post subject: Re: How to make different value per browser? Archived from groups: per prev. post (more info?)
|
|
|
Bob wrote:
> "Bergamot"
>
> wrote
>
>> Post a URL. Do not post code.
>>
>> --
>> Berg
>
>
>
> The CROSSBROWSER <div> that I want to do is like the <duv> that 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 |
|
| Back to top |
|
 |  |
External

Since: Sep 27, 2006 Posts: 727
|
(Msg. 7) Posted: Fri Jul 20, 2007 4:19 pm
Post subject: Re: How to make different value per browser? Archived from groups: per prev. post (more info?)
|
|
|
Bob wrote:
>
> The CROSSBROWSER <div> that I want to do is like the <duv> that 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 |
|
| Back to top |
|
 |  |
External

Since: Jul 04, 2007 Posts: 23
|
(Msg. 8) Posted: Fri Jul 20, 2007 4:19 pm
Post subject: Re: How to make different value per browser? Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |