Changing CSS to center the sitename

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

Changing CSS to center the sitename

Postby 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: 919
Joined: Wed Mar 23, 2011 11:43 am
Location: Germany
Contact:

Re: Changing CSS to center the sitename

Postby 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 ;)       ► CMSimple_XH Templates & OnePage-Templates ◄

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

Re: Changing CSS to center the sitename

Postby roze » Thu Oct 12, 2017 8:59 pm

Thanks!
Rob Zeijen,

Valkenswaard (NL)


Return to “Changing layout”

Who is online

Users browsing this forum: No registered users and 1 guest