<H1>

K

Keith

If <H1> is:
H1{ font-family: arial; color:blue; text-align:justify }

How do I center just one line such as:

<H1>
This line is to be centered not left justified as happens
<br>
The remainder etc, etc will be justified as I want it
</H1>
 
T

Toby A Inkster

Keith said:
<H1>
This line is to be centered not left justified as happens
<br>
The remainder etc, etc will be justified as I want it
</H1>

<style type="text/css" media="screen,projection">
h1 { font-family: Helvetica, Arial, sans-serif; color:blue; }
h1 span { display: block; }
h1 span.c1 { text-align: center; }
h1 span.c2 { text-align: left; }
</style>
<h1><span class="c1">This line is to be centered not left justified as
happens</span> <span class="c2">The remainder etc, etc will be justified
as I want it</span></h1>

But why?
 
L

Leif K-Brooks

Keith said:
If <H1> is:
H1{ font-family: arial; color:blue; text-align:justify }

How do I center just one line such as:

<H1>
This line is to be centered not left justified as happens
<br>
The remainder etc, etc will be justified as I want it
</H1>

Put each line in a <div> element and style them seperatley.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,220
Latest member
AugustinaJ

Latest Threads

Top