Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 3rd, 2008, 04:05 AM
Martin
Guest
 
Posts: n/a
Default Surely a FAQ - FF and MSIE

We are trying to create a stylesheet that works both for FF and MSIE. I've
been googling a bit yesterday and found some hints (like using #margin-left
or _margin-left for MSIE) but it seems these are outdated, as they also
affect FF.

This must be a FAQ (anyone with the address to it?) but how do I write
margin-top: -40px;
margin-left: 170px;
so FF actually uses both directions while MSIE ignores the margin-left
instruction? As above

margin-top: -40px;
margin-left: 170px;
#margin-left: 0px;
_margin-left: 0px;

Does affect FF.



--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
  #2  
Old October 3rd, 2008, 04:25 AM
C A Upsdell
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE

Martin wrote:
Quote:
We are trying to create a stylesheet that works both for FF and MSIE. I've
been googling a bit yesterday and found some hints (like using #margin-left
or _margin-left for MSIE) but it seems these are outdated, as they also
affect FF.
>
This must be a FAQ (anyone with the address to it?) but how do I write
margin-top: -40px;
margin-left: 170px;
so FF actually uses both directions while MSIE ignores the margin-left
instruction? As above
>
margin-top: -40px;
margin-left: 170px;
#margin-left: 0px;
_margin-left: 0px;
>
Does affect FF.
Google for "Conditional Comments".

  #3  
Old October 3rd, 2008, 05:05 AM
Martin
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE

C A Upsdell wrote:
Quote:
Google for "Conditional Comments"
OK, so if I use those IE will ignore other statements on the page? It's not
entirely clear from the few pages I browsed just now that in

<!?[if IE 6]>
<link href=?../ie6.css? rel=?stylesheet? ???. />
<![endif]?>
<link href=?../ff.css? rel=?stylesheet? ???. />

IE will ignore the ff.css. I suppose so, but can anyone confirm?

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
  #4  
Old October 3rd, 2008, 05:55 AM
dorayme
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE

In article <48e598d6$0$27223$b9f67a60@news.newsdemon.com>,
Martin <shieldfire@gmail.comwrote:
Quote:
C A Upsdell wrote:
>
Quote:
Google for "Conditional Comments"
>
OK, so if I use those IE will ignore other statements on the page? It's not
entirely clear from the few pages I browsed just now that in
>
<!?[if IE 6]>
<link href=?../ie6.css? rel=?stylesheet? ???. />
<![endif]?>
<link href=?../ff.css? rel=?stylesheet? ???. />
>
IE will ignore the ff.css. I suppose so, but can anyone confirm?
IE will not ignore your other stylesheet, the idea is to overide
instructions for IE6's eyes only. Thus if you make sure that the link to
the IE6 sheet is below the one for all browsers, any instructions that
are different in the lower one than the higher one will take precedence.
But this is not always just a simple matter, it depends on the IE
instruction being genuinely an override.

Here is a very simple example and if you stick to such things you will
be ok:

forAll.css has ul.pics {margin-left: 14px;}

forIE6Only.css has ul.pics {margin-left: 8px;}

IE6 will get 8px for this margin.

And, of course, the other browsers do not see the 8px instruction.

--
dorayme
  #5  
Old October 3rd, 2008, 06:25 AM
Martin
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE

dorayme wrote:
Quote:
In article <48e598d6$0$27223$b9f67a60@news.newsdemon.com>,
Martin <shieldfire@gmail.comwrote:
>
Quote:
>C A Upsdell wrote:
>>
Quote:
Google for "Conditional Comments"
>>
>OK, so if I use those IE will ignore other statements on the page? It's
>not entirely clear from the few pages I browsed just now that in
>>
><!?[if IE 6]>
><link href=?../ie6.css? rel=?stylesheet? ???. />
><![endif]?>
><link href=?../ff.css? rel=?stylesheet? ???. />
>>
>IE will ignore the ff.css. I suppose so, but can anyone confirm?
>
IE will not ignore your other stylesheet, the idea is to overide
instructions for IE6's eyes only. Thus if you make sure that the link to
the IE6 sheet is below the one for all browsers, any instructions that
are different in the lower one than the higher one will take precedence.
But this is not always just a simple matter, it depends on the IE
instruction being genuinely an override.
>
Here is a very simple example and if you stick to such things you will
be ok:
>
forAll.css has ul.pics {margin-left: 14px;}
>
forIE6Only.css has ul.pics {margin-left: 8px;}
>
IE6 will get 8px for this margin.
>
And, of course, the other browsers do not see the 8px instruction.
>
Ah, "of course" ... too early in the morning for me.
Thanks.

Martin S

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
  #6  
Old October 3rd, 2008, 03:05 PM
Bergamot
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE


Martin wrote:
Quote:
We are trying to create a stylesheet that works both for FF and MSIE. I've
been googling a bit yesterday and found some hints (like using #margin-left
or _margin-left for MSIE) but it seems these are outdated, as they also
affect FF.
Rather than give a pat answer about how to make separate stylesheets, I
think it better to ask why you think you need to do this in the first
place. Granted, there are IE bugs that do come into play, especially in
IE6, but there is always more than one way to work around such problems.
Quote:
This must be a FAQ (anyone with the address to it?) but how do I write
margin-top: -40px;
margin-left: 170px;
so FF actually uses both directions while MSIE ignores the margin-left
instruction?
Without knowing the context, my first reaction is you may be trying to
fix the wrong problem. Post a URL and you may find there is a better way.

--
Berg
  #7  
Old October 3rd, 2008, 04:05 PM
Martin
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE

Bergamot wrote:
Quote:
Without knowing the context, my first reaction is you may be trying to
fix the wrong problem. Post a URL and you may find there is a better way.
>
OK,
www.stockholmschack.nu

The menu is all over the place...

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
  #8  
Old October 3rd, 2008, 08:55 PM
Bergamot
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE


Martin wrote:
Quote:
Bergamot wrote:
>
Quote:
>Without knowing the context, my first reaction is you may be trying to
>fix the wrong problem. Post a URL and you may find there is a better way.
>>
OK,
www.stockholmschack.nu
>
The menu is all over the place...
I must have caught the page while you were doing some kind of update.
Styles were applied, now they're not - at all. The default.css link
syntax isn't correct. Add rel="stylesheet" and type="text/css" to it.

As for your problem, assuming you mean the horizontal #menu across the
top of the page, you have absolutely positioned it, but not set any
position values (top, bottom, left or right), so you've left it to the
browser's imagination to decide where its default position should be.
It's no wonder results aren't consistent. Consequently, your offsetting
margin values aren't consistent, either.

If you want it at the bottom of #header, use bottom instead of a top
offset. That way it will keep a fixed baseline as it adapts to various
text sizes, and not expand down into the content area when the text size
is increased.

BTW, you should also fix some of those 284 HTML validation errors you've
got there, as well as the 2 CSS errors.

And do *something* about the text in the left column jumping all over
the place on :hover. It's pretty bad.

--
Berg
  #9  
Old October 3rd, 2008, 09:35 PM
Martin
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE

Bergamot wrote:
Quote:
>
Martin wrote:
Quote:
>Bergamot wrote:
>>
Quote:
>>Without knowing the context, my first reaction is you may be trying to
>>fix the wrong problem. Post a URL and you may find there is a better
>>way.
>>>
>OK,
>www.stockholmschack.nu
>>
>The menu is all over the place...
>
I must have caught the page while you were doing some kind of update.
Styles were applied, now they're not - at all. The default.css link
syntax isn't correct. Add rel="stylesheet" and type="text/css" to it.
It's not me doing the coding I'm just a friend trying to help him out. I
believe he's an asp-coder, that just nicked a menu javascript thing that is
MS specific regarding the alignment of the menu.

It works with MSIE not with FF. The Conditional Comments method works nicely
on my laptop, but not when he uploads the stuff to his server - it is all
very frustrating. Don't really know what's happening here.

Thanks for you time though.... appreciated!

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
  #10  
Old October 3rd, 2008, 09:55 PM
Bergamot
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE


Martin wrote:
Quote:
Bergamot wrote:
>
Quote:
>Martin wrote:
Quote:
>>www.stockholmschack.nu
>>>
>>The menu is all over the place...
>>
>The default.css link
>syntax isn't correct. Add rel="stylesheet" and type="text/css" to it.
>
It's not me doing the coding I'm just a friend trying to help him out. I
believe he's an asp-coder, that just nicked a menu javascript thing that is
MS specific regarding the alignment of the menu.
I already said what was wrong with the menu positioning. It's *not* an
IE specific problem. The #menu rules are assuming a certain default
position, which is a false assumption, and hoping that certain margin
offsets will fix it. Wrong again. Dump the margins altogether.
#menu {
position: absolute;
left: 170px;
bottom: 0;
}

Adjust the width value as needed.

And the <linkto the default stylesheet still needs correcting, because
it isn't loading at all now.

--
Berg
  #11  
Old October 4th, 2008, 04:45 AM
Martin
Guest
 
Posts: n/a
Default Re: Surely a FAQ - FF and MSIE

Bergamot wrote:
Quote:
I already said what was wrong with the menu positioning. It's not an
IE specific problem.
OK, OK,
I *assumed* it was IE specific as it displayed correctly in IE and
incorrectly in FF. Apparently he has badly foobared the site at the moment.

Martin S

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles