Netscape image as spacer

Posted on 2004-09-22
Last Modified: 2010-04-09
I am trying to clean up some code and make a website look the same in both netscape and IE, the problem is the person who wrote the code used tons of little images as spacers... these images dont show up in netscape? is there anyway force images that are the same color of the bg to show up so I can keep the spacing they create in IE?
Question by:bliesveld
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 36

Expert Comment

ID: 12129642
Hi bliesveld,

Looks like a bad case of fudged layout. We won't know why the images don't show unless we see the source code. We'll also prefer to know which versio of NN or IE.

If worst comes to worst, we might recommend you redesign the layout, but it all depends on the source =)


Author Comment

ID: 12129698
here is an example...

      <div align="right" class="style11 style1">
                   <span class="style14">general</span>
                   <span class="style15"> categories <?php echo $subcat ?><img src="<?php echo WEB_ROOT.'includes/blue_bg.jpg'?>" width="12" height="1"></span>

Author Comment

ID: 12129701
<img src="<?php echo WEB_ROOT.'includes/blue_bg.jpg'?>" width="12" height="1">

beign the image....
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

LVL 36

Accepted Solution

Zyloch earned 50 total points
ID: 12129709
Not sure why you need the spacer when you can just set explicit widths for your <div>, for instance you have it class="style11 style1", it wouldn't be too much trouble to set a style="width:40px;" or whatever.

Anyhow, I'm assuming WEB_ROOT is defined in your PHP and that this displays fine in IE? Then what version of NN are you using? The code looks prety ok.

Author Comment

ID: 12129773
ya I was hoping there might be a way to save the img's to make them show, but I am just going to move the site more to CSS...
LVL 36

Expert Comment

ID: 12129825
Feel free to post here if you need help.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question