/    Sign up×
Community /Pin to ProfileBookmark

How to make padding to image within p and div tag?

How to make padding to image within p and div tag? What is correct way actually? Notice that image should be within p and is also within DIV element.

Code is like:
CSS:

[code=html]
.author img {
margin: 0 15px 0 34px;
}
[/code]

[code=html]
<div id=”content”>
<p><img class=”author1″ alt=”myimage” src=”images/myimage.jpg” align=”right” border=”0″ width=”222″ height=”392″ >
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
</p>
</div>
[/code]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@toplisekauthorJan 21.2009 — I have managed and added img tag within DIV element.
×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...