/    Sign up×
Community /Pin to ProfileBookmark

how to vertical center (or middle)

How can I get a vertical center of the scroller?

This is my code:

[code=php]
<div style=”background-image: url(‘imgs/video.jpg’); width: 740px; height:228px;”>
<p style=”text-align: justify; direction: rtl; width: 720px; height: 180px; font-size: 12px; color: #ffffff; overflow: auto; padding: 8px; background: transparent none;”>
Hello World
</p>
</div>
[/code]

Thanks!

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWAug 10.2004 — You've lost me. Describe again what you want...
Copy linkTweet thisAlerts:
@weeeauthorAug 10.2004 — The small code I showed before contain an image (DIV) and on the image there's some text with a scroller (P). I want the text and the scroller to positioning in the middle of the DIV and not at the top of it as it is right now.

Thanks!
Copy linkTweet thisAlerts:
@DaveSWAug 10.2004 — how about this:
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div style="background: #b9e2ff; width: 740px; height:228px;"&gt;
&lt;div style="padding-top: 25px;"&gt;&lt;p style="text-align: justify; direction: rtl; width: 720px; height: 180px; font-size: 12px; color: #ffffff; overflow: auto; padding: 8px; background: transparent none;"&gt;hello&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
×

Success!

Help @weee 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.8,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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