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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images not wrapping in Netscape

Status
Not open for further replies.

dill

Technical User
Jul 30, 2001
7
US
This may be a confusing concept because most search results address wrapping text around an image. I'm trying to get a series of images, placed one after the other in a table cell (width="100%") to wrap. It works as desired in IE (5.0 PC/Mac) but not on NS 4.7x (PC/Mac). The desired effect is to allow nine image objects to layout in one line if the browser window is opened wide enough, and to re-layout into more rows when the window is narrowed. In NS, the row of images does not wrap when the window is narrowed.

There is no "nowrap" attribute in this cell, although there is one in another cell. Would this affect the whole table, and would it affect images?

If it matters, each image has an image swap behavior to change another main image, as well as a target_blank link to another page.

Is this merely another browser incompatibility issue? Any workarounds?

Thanks

dill
 
If I am correctly understanding, you open Netscape and the page is fine, you then resize the window and that's when things get screwy. If this is the case here is a bit of Javascript to put between the <head> tags that causes Netscape to refresh the browser (therefore reparsing the HTML) when it is resized. Let us know if this is the fix.
Code:
<script language=&quot;JavaScript&quot;>

<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName==&quot;Netscape&quot;)&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);

// -->

</script>
DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
DeZiner,

Thanks for the reply. The Netscape window resize problem is a logical consideration, but that's not the problem. The page opens incorrectly in Netscape (images all in a row, not wrapping when the window is small to begin with).

I did insert the reload code anyway but it didn't change the way Netscape opens or reloads the page.

I did discover another attribute to the images that are placed one after the other in this cell: vspace=&quot;10&quot; hspace=&quot;20&quot;. I removed these values but I got the same result.

Any other thoughts?

dill
 
Please post the url DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
Hi mate,

I`ve just checked out the above links in NS6 and IE6.

In NS6 the images wrap but in IE6 they don`t.

I can`t try the earlier versions mentioned but to me it looks like the problem mentioned is the oposite way round!!

Wullie

 
Wullie is correct. I just checked NS and IE 6 on a Wintel and the opposite is true. And I was incorrect about the wrap working on IE 5/PC; it only worked on IE 5/Mac. Incidentally, NS6.1/Mac works, too.

I've given up on this for now. I just dropped the images into a table.

Thanks,

dill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top