Jump to content

Very Basic Html Question


e_media
 Share

Recommended Posts

Hi everybody,This problem turns me crazy although it is very simple...I want to put 2 small images next to each other with NO space in between. My code simply looks like: <img border="0px" src="left.gif" /> <img border="0px" src="right.gif" />But when I view it I see a little space between them. See here I explain it :html_images.gifThe images are the small red squares ..Any tips please? Thanks

Link to comment
Share on other sites

Whitespace in HTML is truncated down to a single whitespace character. If you don't want even a single space at a point, you just remove it from the source, i.e.

<img border="0px" src="left.gif" /><img border="0px" src="right.gif" />

Edited by boen_robot
Link to comment
Share on other sites

If you really want to keep the code on two lines some people like to write it as so:

<img border="0px" src="left.gif"/><img border="0px" src="right.gif" />

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...