Help with css

Raymond

Seasoned Veteran
Joined
Nov 6, 2008
Messages
3,092
Reaction score
10
FP$
800
Hey I was wondering if anyone could give me a little help on this.

So basically I want my text to be able to be center in all browsers.

Code:
.content h1{

}

Please fill in what I would need to do so, Also I'd like to adjust it to go up and down ect..
 
Code:
.content h1
{
text-align: center;
}

It's standard across all major browsers so it should work fine for you.
 
@JustinM that would be great, but how can i make it go up & down?
 
Raymond said:
@JustinM that would be great, but how can i make it go up & down?
Do you mean follow you as you scroll? If so then

Code:
position: fixed;
z-index: 9999;

Should do that for you.
 
If you mean centered in the middle, then this would be it, if you want it to scroll with the user use the above method

Code:
.content h1 {
    text-align: center;
    vertical-align: middle;
}
 
Back
Top Bottom