473,386 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

internet explorer makes gabs

Hello,

I use the code
<td align="left" valign="top"><img src="pictures/5pixel-transparent.gif"
width="700" height="1" alt="" border="0">
to force the width of a table.
But now my Internet Explorer (version 6) makes a gab (big like <br>)
after this code, Firefox and Opera doesn't and work correctly.
Does anybody know why the IE makes this gabs and how can I prevent that?

Thanks
Geri
Aug 31 '05 #1
7 1433
Geri Becker wrote:
I use the code
<td align="left" valign="top"><img src="pictures/5pixel-transparent.gif"
width="700" height="1" alt="" border="0">
to force the width of a table.
Stop trying that. Problem solved. Besides, you solved a much bigger
problem as well, or stopped trying to create it.
But now my Internet Explorer (version 6) makes a gab (big like <br>)
You mean "gap", right?
after this code, Firefox and Opera doesn't and work correctly.
Does anybody know why the IE makes this gabs and how can I prevent that?


Yes, we know, and we could tell you, but then we would have to
hate ourselves for helping you to do the wrong thing.
Sep 1 '05 #2
<td align="left" valign="top"><img
src="pictures/5pixel-transpare*nt.gif"
width="700" height="1" alt="" border="0"></td>

Just put it all on one line of code without line breaks.

Sep 1 '05 #3
Jukka K. Korpela schrieb:
Geri Becker wrote:
I use the code
<td align="left" valign="top"><img
src="pictures/5pixel-transparent.gif" width="700" height="1" alt=""
border="0">
to force the width of a table.


Stop trying that. Problem solved. Besides, you solved a much bigger
problem as well, or stopped trying to create it.


Some old browsers of mac and others didn't follow the definite sizes of
the table so I had to use this method.
But now my Internet Explorer (version 6) makes a gab (big like <br>)


You mean "gap", right?


Yeah right! My english isn't that good as formerly ;-)
after this code, Firefox and Opera doesn't and work correctly.
Does anybody know why the IE makes this gabs and how can I prevent that?

Yes, we know, and we could tell you, but then we would have to
hate ourselves for helping you to do the wrong thing.


So what would be the right thing?

Geri
Sep 2 '05 #4
dw************@gmail.com schrieb:
<td align="left" valign="top"><img
src="pictures/5pixel-transpare*nt.gif"
width="700" height="1" alt="" border="0"></td>

Just put it all on one line of code without line breaks.


Thanks, this "all on one line" method works - strange ie!

Geri
Sep 2 '05 #5
Geri Becker <gu****@gmx.net> wrote:
I use the code
<td align="left" valign="top"><img
src="pictures/5pixel-transparent.gif" width="700" height="1" alt=""
border="0">
to force the width of a table.

Jukka K. Korpela wrote: Stop trying that. Problem solved. Besides, you solved a much bigger
problem as well, or stopped trying to create it.

Geri Becker <gu****@gmx.net> wrote: Some old browsers of mac and others didn't follow the definite sizes of
the table so I had to use this method.
Jukka's point is that you should stop trying to force the width of a table,
not that you should stop using this particular technique for it.

BTW, your current technique still won't always force a width of 700px.
So what would be the right thing?


See http://www.htmlhelp.com/faq/html/des...ml#screen-size and
http://www.xs4all.nl/~sbpoley/webmat...lexdesign.html

See also http://webtips.dantobias.com/force.html
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/

"There is nothing so useless as doing efficiently
that which should not be done at all." - Peter F. Drucker
Sep 2 '05 #6
Darin McGrew schrieb:
Jukka's point is that you should stop trying to force the width of a table,
not that you should stop using this particular technique for it.
ah ok.
BTW, your current technique still won't always force a width of 700px.
why?
See http://www.htmlhelp.com/faq/html/des...ml#screen-size and
http://www.xs4all.nl/~sbpoley/webmat...lexdesign.html

See also http://webtips.dantobias.com/force.html


I've to check that ...

Thanks
Geri
Sep 2 '05 #7
I wrote:
BTW, your current technique still won't always force a width of 700px.

Geri Becker <gu****@gmx.net> wrote: why?


Off the top of my head:

- the browser might support a "Fit to Window" feature

- the browser might resize images that don't fit the current window

- the user style sheet might include something like

img[height="1"] , img[width="1"] { display: none !important }

- the browser might not load images

- the browser might not honor tables

- the browser might not use pixels at all

But mostly, because "force" doesn't work on the WWW:
http://webtips.dantobias.com/force.html
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/

"There is nothing so useless as doing efficiently
that which should not be done at all." - Peter F. Drucker
Sep 2 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Scott A. Keen | last post by:
Hi, I'm getting tasked with writing an ASP application deployed throughout the company's intranet where all the workstations will be running Internet Explorer 6.0. It's a retail business, and...
6
by: Veerle | last post by:
Hi, Somewhere in my html page, I have the following code: <div id="main-body"> <h2>Header text</h2> <p>Some other text ...</p> ..... <h2>Another header text</h2> <p>Some more other text...
11
by: dhplank | last post by:
Hello everyone, I've developed a calendar program in javascript, and up until now I've done most of my testing using Mozilla and Firefox. Everything works fine, but when I try to use Internet...
0
by: Steve Podradchik | last post by:
Hi, We have a commercial app that downloads data from various Web pages (not via a Web Service, per se) and parses the data from the response. The code below works fine most of the time but, in...
3
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review...
11
by: Doug van Vianen | last post by:
Hi, I often like to include some JavaScript coding in my web pages to make them more interesting. Unfortunately, even when this coding is as simple as a check to see what the display width is in...
7
by: imad.sabonji | last post by:
HI I am using Visual Studio.Net 2003 and using C# I would like to know how is it possible to change the Internet explorer window title? ie. i want to get rid of "Microsot Internet Explorer"...
28
by: Neo Geshel | last post by:
NOTE: PAST EXPERIENCE HAS SHOWN ME THAT MANY ON USENET FAIL TO READ ARTICLES PROPERLY PRIOR TO ANSWERING. I AM LOOKING FOR VERY SPECIFIC INFORMATION, THEREFORE PLEASE READ AND UNDERSTAND...
9
by: -Lost | last post by:
http://blogs.msdn.com/ie/archive/2007/12/19/internet-explorer-8-and- acid2-a-milestone.aspx Oh my! A somewhat standards compliant Internet Explorer? What about JavaScript? Not that it proves...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.