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

Does VSPACE not work in IE ?? Check out this example... 1

Status
Not open for further replies.

Jakobud

Technical User
Mar 9, 2001
51
US
Look at this very simple test page:


I have vspace=0, but when viewing this page with Internet Explorer, the images still have some sort of margin between them...

Anyone know why this is?
 
change your code to:

<img src=&quot;red.jpg&quot; width=64 height=64><br>
<img src=&quot;blue.jpg&quot; width=64 height=64><br>
<img src=&quot;green.jpg&quot; width=64 height=64><br>

no vspace needed ... just put your break tags on the same line as your image ...
the extra spaces you put in are the spaces you were seeing.

 
just to add to jackyl reply. which is absolutely correct.
even if you have a space on the same line like this
<img src=&quot;red.jpg&quot; width=64 height=64> <br>
the browser will still read that space and place it on the screen. this works on the same basis as when you write text to the screen for spaces between wording. Also this will effect the way many other elements will work like selects etc.. A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top