Computing.Net > Forums > Web Development > IMG tag help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

IMG tag help

Reply to Message Icon

Name: TheMonkeY
Date: February 28, 2005 at 22:05:41 Pacific
OS: Windows XP pro
CPU/Ram: Athlon XP 1800+ / 256mb D
Comment:

Hi,

I understand that inside the tag I can have hspace and vspace - which split the distance equally on the two sides or over the top and bottom.

Is there a way I can make it so that I only leave space on the right or only on the left? I want the image to be against the left with no space, but I wish to leave space toward the right.

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: February 28, 2005 at 22:45:27 Pacific
Reply:

Yes, you can do it using style properties. If you are not already familiar with style properties or CSS I highly recommend you look into it. It will make your whole life easier.

Anyway to accomplish what you want just use the margin style property within the image tag.

[img src="image.jpg" align="left" style="margin-right:20px;"]

Michael J


0

Response Number 2
Name: Khalid
Date: February 28, 2005 at 22:49:48 Pacific
Reply:

You can use the style-atrribute for the image-tag for this:


0

Response Number 3
Name: fambi
Date: March 2, 2005 at 00:31:30 Pacific
Reply:

I agree with Michael.

CSS has simplified my life a great deal and increased the pace of my web development.

If you're interested in SMS, visit my wife's site .


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: IMG tag help

Hide img if src invalid www.computing.net/answers/webdevel/hide-img-if-src-invalid/3422.html

HELP! Things get outta postion! www.computing.net/answers/webdevel/help-things-get-outta-postion/1641.html

Rotating Picutres ??? www.computing.net/answers/webdevel/rotating-picutres-/2987.html