Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can a <div> occupy its entire width in NN 4.7 (or for that matter 4.x) ?

0 views
Skip to first unread message

Manish

unread,
Jul 7, 2001, 1:41:32 AM7/7/01
to
I am trying to put a navigation bar at the bottom of the page having
specific width.(99%) The code is inline.
The bar is swon properly in IE and NN 6, but in NN 4.7 it shows only that
portion of the bar which has a text on it. ( roughly 50% of middle portion)
as a result instead of 99% the bar occupies only 50% space in the middle.
How can I make it occupy the entire width?
I have also tried putting width value inpixels but no luck !!!
I did put a border around it and then it did show its complete width but the
resulting effect was pathetic.
can anyone help???
Also, is there any doc. available on CSS in Netscape versions??
Help will be greatly appreciated!!!

The code (w/o border)

div.navbar {color:#666666; background-color:#eeeeee;
layer-background-color:#eeeeee; font-size:10pt; font-family: 'Verdana';
font-weight:normal; width:99%; height:12px;}

With border

div.navbar {color:#666666; background-color:#eeeeee;
layer-background-color:#eeeeee; border-width:1; border-style:solid;
border-color:#eeeeee; font-size:10pt; font-family:'Verdana';
font-weight:normal; width:99%; height:12px;}


- Manish
http://technofundo.com/

Steve Fulton

unread,
Jul 7, 2001, 10:53:53 AM7/7/01
to
NS4.x rendering of all block objects (not just divs) is crippled in this way;
they only take up as much width as there is content. It's not a problem with the
CSS, it's how the browser lays out the element before it applies styles.

For NS4.x CSS documentation, you can try the Client-Side JavaScript Reference[1]
for the Style object and Dynamic HTML in Netscape Communicator for usage and
examples.

---
[1] http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm
[2] http://developer.netscape.com/docs/manuals/communicator/dynhtml/index.htm

--
Courage is resistance to fear, mastery of fear--not absence of fear.
-Mark Twain

=-=-=
Steve
-=-=-

"Manish" <m...@gmx.co.uk> wrote in message
news:O4HrJbqBBHA.2024@tkmsftngp05...

Manish

unread,
Jul 10, 2001, 1:45:37 PM7/10/01
to
Thanx Steve,

Found a workaround though,
One can simply put border:none; and works in NN 4.7.
Hope it helps others...

- Manish
http://technofundo.com/

"Steve Fulton" <cerbe...@hotmail.com> wrote in message
news:OGD$jTvBBHA.1864@tkmsftngp05...

0 new messages