/    Sign up×
Community /Pin to ProfileBookmark

Using Margin-Left Style

Hey all, I am working on a system for documentation administration for my company. One of the things I need it to do is indent an entire paragraph. I knew it would be extremely simple with a <div style=”margin-left:20px;”>asd</div>. The problem I have is that it automatically puts a break after the </div>

[CODE]
It leaves it like this.
Because this line is indented with the <DIV> tag it will automatically
insert a BR after the </DIV> tag.

And now the text contiues.
[/CODE]

[CODE]
I want something that does this:
I would like the entire sentance or paragraph to institute a Page Margin
of 20 pixels or so without having a break before of after the class. I
tried SPAN, but that only margins the FIRST line.
And no break afterwards.
[/CODE]

Any ideas? Let me know if it needs more explaining…

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jan 19.2006 — Apply the style to the paragraph, <p>, or define to us WHY this text needs to be treated this way from a semantic point of view. Use top and bottom margins to remove the extra line spacing if that's what you mean by "break."
×

Success!

Help @candelbc 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 5.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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