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

Same Code, different results

Status
Not open for further replies.

bvallet

Programmer
Apr 10, 2001
52
0
0
US
This isn't earth-shattering by any means. More of a curiosity. I have to pages with the following code:
Code:
<DIV STYLE=&quot;font: italic bold 16pt Lucida Bright&quot;>
<IMG SRC=&quot;/icons/Wheel.gif&quot; STYLE=&quot;width: 51px; height: 45px;&quot;>
Additional Interests - Mortgagee
</DIV>
<TABLE BORDER=1>
and:
Code:
<DIV STYLE=&quot;font: italic bold 16pt Lucida Bright&quot;>
<IMG SRC=&quot;/icons/Wheel.gif&quot; STYLE=&quot;width: 51px; height: 45px;&quot;>
Underground Storage Tanks
</DIV>
<TABLE BORDER=1>

The curious thing is that the second page (Underground Tanks) displays with an additional line break between the DIV and the TABLE and the first doesn't. Both TABLES's have the same dimensions, both pages share the same external stylesheet and JavaScript file and are both opened in windows with identical dimensions.

Does anyone have any idea why? Like I said, I'm just curious, my world won't end if I can't figure it out, but I would like to know where the line break is coming from

Thanks.
 
hi bvallet,

You don't tell the browser you use, but I know that sometimes an &quot;enter&quot; in your coding can occur this. So maybe you code the first part with an &quot;enter&quot; and the second without.

Try this:

Additional Interests - Mortgagee</DIV><TABLE BORDER=1>

and:

Underground Storage Tanks</DIV><TABLE BORDER=1>

Hope this solved the problem,
Erik
<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top