Welcome to WebmasterWorld Guest from 54.196.175.173

Forum Moderators: incrediBILL

Message Too Old, No Replies

Painting by Numbers

Layers and Colours - NN vs IE

     

knighty

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

WebmasterWorld Senior Member 10+ Year Member



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.

joshie76

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

WebmasterWorld Senior Member 10+ Year Member



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?

knighty

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

WebmasterWorld Senior Member 10+ Year Member



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!

 

Featured Threads

Hot Threads This Week

Hot Threads This Month