homepage Welcome to WebmasterWorld Guest from 54.166.148.189
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Painting by Numbers
Layers and Colours - NN vs IE
knighty




msg:595900
 12:17 pm on Jun 26, 2001 (gmt 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.

 

joshie76




msg:595901
 12:22 pm on Jun 26, 2001 (gmt 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?

knighty




msg:595902
 12:49 pm on Jun 26, 2001 (gmt 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!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved