Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to maintain layer width in Netscape

Status
Not open for further replies.

budha1

Programmer
Nov 6, 2002
19
0
0
US
Hi,
I am just beginning to transfer to layers after using tables for years. (Our clients use older versions of Netscape.) I am able to get my layers appear in the correct place in Netscape, but am unable to get them to maintain their width. I am using div tags (not layer tags) and define my width as follows: <div id=&quot;layer&quot; style=&quot;left: 133px; top: 326px width: 600px height: 6px&quot;>
I then have centered text in the middle of this layer.

When I look at my page in Netscape, the layer hugs the centered text, and does not maintain its 600 pixel width. I have tried using percentages instead of pixels, but get the same results.

My css code is currently in an external style sheet. Here is the code from one of my layers:
#content1 {
border: #ffffff;
clip: rect( );
height: 100px;
left: 0px;
position: relative;
top: 100px;
width: 600px;
z-index: 4
}

In the actual web page, I use a div tag:
<div id=&quot;content1&quot;>
<div align=&quot;center&quot;>
<h2><strong>Kick-Off Meeting</strong> </h2>
</div>

I only defined the margins above and below H2

Any suggestions?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top