Changing CSS to center the sitename

About the template and stylesheet - and changing the menu
Post Reply
roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Changing CSS to center the sitename

Post by roze » Thu Oct 12, 2017 7:45 pm

The template says:

Code: Select all

<h1><?php echo sitename()?></h1>
The CSS says:

Code: Select all

h1{width:auto;foat:right;clear:right;color:#0080c0;font-size:24px;line-height:1.2em;text-align:right;font-weight:100;padding:0.5em;margin:0;letter-spacing:1px;}
How do I have to change the CSS to center the sitename?

http://www.dommelschlavenkoor.nl
Rob Zeijen,

Valkenswaard (NL)

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Changing CSS to center the sitename

Post by lck » Thu Oct 12, 2017 8:45 pm

Code: Select all

#header h1 {
    width: auto;
    foat: right; /* misspelling foat, change it to float: none; */
    clear: right;
    color: #0080c0;
    font-size: 24px;
    line-height: 1.2em;
    text-align: right; /* change it to text-align: center;  */
    font-weight: 100;
    padding: 0.5em;
    margin: 0;
    letter-spacing: 1px;
}
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Changing CSS to center the sitename

Post by roze » Thu Oct 12, 2017 8:59 pm

Thanks!
Rob Zeijen,

Valkenswaard (NL)

Post Reply