...

View Full Version : [Wordpress] Center Page Titles?



Samz3n
11-23-2011, 11:36 PM
Hello there :D ..

I am setting up a website for my client, but i got some troubles with a few things.

Here is the website:
http://www.lindenskov.net/

Here is the CSS:
http://lindenskov.net/wp-content/themes/SimplePress/style.css

First of all, i would like to center all my page titles.

Second, i want my logo to be placed a bit higher.

the last thing i got some trouble with is the wallpaper.
How do i make it properly?

Sammy12
11-23-2011, 11:37 PM
lol I hate javascript, blocking inspect element :rolleyes:

1. To center your headers, add this anywhere in your CSS:


#content_full h2 {
text-align: center;
}


2. To lower the header, reduce 73px

style.css, line 29:


#logo { border: none; margin: 73px auto 0px 300px; clear: both; }


3. ?


the last thing i got some trouble with is the wallpaper.
How do i make it properly?

Samz3n
11-23-2011, 11:56 PM
1. To center your headers, add this anywhere in your CSS:


#content_full h2 {
text-align: center;
}



I tried to add the following code.. I also tried to change h2 to h1
Doesn't seem to work ..

Is there a special part in the CSS, where the code should go?



2. To lower the header, reduce 73px

style.css, line 29:


#logo { border: none; margin: 73px auto 0px 300px; clear: both; }



I tried to reduce 73px .. even the others, but the logo stays on the same place .. :-/

3. I want to have a wallpaper, or something like a left and right sidebar to place some pattern wallpaper.. It is a bit boring with all that black color :)
But it needs to fit the most "standard" screen resolutions

You can see my change in the CSS file from #1

Thank you so much for your help.. I really appreciate it :)

Sammy12
11-24-2011, 12:11 AM
let's start out by deleting these two bunches of javascript (the one highlighted and the one below it), they are preventing other people from viewing your script which is just annoying. anyone looking at the code will know how to bypass that, so is there a reason to have it?

http://i1114.photobucket.com/albums/k535/auroralight1/Untitled2-6.png

Samz3n
11-24-2011, 12:29 AM
let's start out by deleting these two bunches of javascript (the one highlighted and the one below it), they are preventing other people from viewing your script which is just annoying. anyone looking at the code will know how to bypass that, so is there a reason to have it?

http://i1114.photobucket.com/albums/k535/auroralight1/Untitled2-6.png

Well .. I couldn't find those lines of code anywhere ..
But suddenly everything was fixed :s .. weird cause i updated both of my browsers a lot!

Thanks a lot!

I got another request.. if it isn't too much to ask for? :)
I want to move all the content text a little to the right.

also .. the layout (logo, menu etc) is moving a little depending on which page you're on

Sammy12
11-24-2011, 12:38 AM
in order to move the text a little to the right, add this code somewhere in your css :thumbsup:



#posts_post_full {
padding-left: 20px;
}


for the logo, let's try make it centered:

style.css line 29
#logo { border: none; margin: 30px 10px auto 300px; clear: both; }

let's change this to:



#logo {
border: none;
margin: 30px auto 0 auto;
display: block;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum