/    Sign up×
Community /Pin to ProfileBookmark

Need help redefining the <p> tag – how do I stop it from starting one line below?

The <p> tag – how do I stop it from starting one line below?

Whenever I use the <p> tage, it always puts the text one line below.
How do I stop it from doing this?

How do I have it so thatthe text start on exactly the same vertical position as it would od otherwise without the <p> tag!

*Not* using the <p> is not an option I have to use it (tooo long to explain why!).

Thanks.

OM

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@OM2authorApr 12.2008 — i've had a bit of success.

i've done the following:

p

{

position: relative;

top: -20px;

}

just wanted to check: is that ok to do...?

thanks.
Copy linkTweet thisAlerts:
@FangApr 12.2008 — Not good, use:p {display:inline;}
Copy linkTweet thisAlerts:
@CentauriApr 12.2008 — A paragraph has a default top and bottom margin to space between paragraphs. Rather than relatively shifting it, just remove the top margin :[CODE]p {
margin: 0 0 1em;
}[/CODE]
Copy linkTweet thisAlerts:
@WebJoelApr 12.2008 — ....How do I have it so thatthe text start on exactly the same vertical position as it would od otherwise without the <p> tag!...[/quote] Not sure what you're asking here, but [I]not[/I] using the "p" tag only removes the default margin & padding & line-height. Could you show some code and explain (no matter how long it takes as this is the only way we can figure out what you're after)..
Copy linkTweet thisAlerts:
@ray326Apr 12.2008 — Do you not use paragraphs in your own writing?
Copy linkTweet thisAlerts:
@OM2authorApr 15.2008 — guys, thanks for the replies.

this is my situation: i'm using fckeditor to create text and saving it.

it uses <p>.

not a problem as such: just a problem for the first line.

i'll try what u gys have given above and will le tu know if i have any joy
×

Success!

Help @OM2 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.6,
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,
)...