IE vs Firefox

I have the following in a CSS file:
..SideLink {
border-bottom: 1px solid #333333;
margin: -2px 0 0px 0;
padding: 3px 2px 3px 2px;
}

The selector is invoked by <p with class="SideLink">

On Firefox, there is a solid, 1px border at the bottom of each menu item
(this is called for each menu item). On Internet Explorer (7) there is no
line.

I don't have a clue as to why?

Any suggestions?
Shelly [ Mo, 19 November 2007 17:53 ] [ ID #1874584 ]

Re: IE vs Firefox

Shelly wrote:

> I have the following in a CSS file:
> .SideLink {
> border-bottom: 1px solid #333333;
> margin: -2px 0 0px 0;
> padding: 3px 2px 3px 2px;
> }
>
> The selector is invoked by <p with class="SideLink">

But without the word 'with', right?

> On Firefox, there is a solid, 1px border at the bottom of each menu item
> (this is called for each menu item). On Internet Explorer (7) there is no
> line.
>
> I don't have a clue as to why?
>
> Any suggestions?

Yup - run the page through the validator, install the Firebug
extension to see if there are any overlapping other elements, or...
give a url :-)

Or, looking into my crystal ball, I see that each <p> is overlapping
the previous one by 2px. Might just be enough to cover the 1px border?

--
Els http://locusmeus.com/
Els [ Mo, 19 November 2007 18:05 ] [ ID #1874585 ]

Re: IE vs Firefox

Shelly wrote:
> I have the following in a CSS file:
> .SideLink {
> border-bottom: 1px solid #333333;
> margin: -2px 0 0px 0;
> padding: 3px 2px 3px 2px;
> }
>
> The selector is invoked by <p with class="SideLink">
>
> On Firefox, there is a solid, 1px border at the bottom of each menu item
> (this is called for each menu item). On Internet Explorer (7) there is no
> line.
>
> I don't have a clue as to why?

Seems that way, where's the rest of the page? It might matter, especail
if you triggered quirks mode. Now DON'T paste all the code just a URL
please!

Many times IE has trouble with negative margins and parts disappear as
page reflows...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
lws4art [ Mo, 19 November 2007 18:08 ] [ ID #1874586 ]

Re: IE vs Firefox

Jonathan N. Little wrote:
> Shelly wrote:
>> I have the following in a CSS file:
>> .SideLink {
>> border-bottom: 1px solid #333333;
>> margin: -2px 0 0px 0;
>> padding: 3px 2px 3px 2px;
>> }
>>
>> The selector is invoked by <p with class="SideLink">
>>
>> On Firefox, there is a solid, 1px border at the bottom of each menu
>> item (this is called for each menu item). On Internet Explorer (7)
>> there is no line.
>>
>> I don't have a clue as to why?
>
> Seems that way, where's the rest of the page? It might matter,
> especail if you triggered quirks mode. Now DON'T paste all the code
> just a URL please!
>
> Many times IE has trouble with negative margins and parts disappear as
> page reflows...

Thank you both very much. Changing the margin to "0" made it work properly.
It also eliminated another bug of a line showing up when I moused over.

Shelly
Shelly [ Mo, 19 November 2007 21:38 ] [ ID #1874596 ]
Miscellaneous » alt.html » IE vs Firefox

Vorheriges Thema: Flashing
Nächstes Thema: Transaktion auf Report Painter Bericht