![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
Google for "Conditional Comments" |
#4
| |||
| |||
|
|
C A Upsdell wrote: 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? |
#5
| |||
| |||
|
|
In article <48e598d6$0$27223$b9f67a60 (AT) news (DOT) newsdemon.com>, Martin <shieldfire (AT) gmail (DOT) com> wrote: C A Upsdell wrote: 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. |
#6
| |||
| |||
|
|
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? |
#7
| |||
| |||
|
|
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, |
#8
| |||
| |||
|
|
Bergamot wrote: 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... |
#9
| |||
| |||
|
|
Martin wrote: Bergamot wrote: 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. |
#10
| |||
| |||
|
|
Bergamot wrote: Martin wrote: 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |