Welcome to WebmasterWorld Guest from 54.158.214.111

Forum Moderators: incrediBILL

Message Too Old, No Replies

Painting by Numbers

Layers and Colours - NN vs IE

     
12:17 pm on Jun 26, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2001
posts:690
votes: 0


I am trying to avoid using tables inside of layers and can get them looking fine in IE but Netscape reacts differently (suprise).

All I want is a layer 200px wide and 16px high with a blue background. Basically they should just look like solid bars. Netscape is unstable though and not only are they wider but also sometimes only color the background as far the text goes. Grrrrr.

So, any ideas or am i going to have to put transparent gifs in to stretch them etc? As I said I dont want to have tables inside the layers.

12:22 pm on June 26, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 10, 2001
posts:793
votes: 0


I'm not entirely sure what's not happening for you but is this what you're looking for?

<div id="Layer1" style="position:absolute; left:200px; top:194px; width:200px; height:16px; z-index:1; background-color: #0000FF; layer-background-color: #0000FF; border: 1px none #000000">

<font color="#FF0000">TEST TEXT</font>

</div>

Is it NN4 or 6 (or both) that is giving you the problems?

12:49 pm on June 26, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2001
posts:690
votes: 0


Yeah something like that..

I just realised that in order for the background colour to match the dimensions of the layer size and height you have to give it a border otherwise NN won't display it properly.

You don't even need the border to be visible.

As for the width thing that is just Monday combined with my stupidity - i had redifined the DIV tag to have a line hight of 14px.. DOH!

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members