• cjones2989

    (@cjones2989)


    I have a site I am working on at http://jkmobiledjs.com/WP

    I have little experience with code but I’ve managed to work my way around changing some things.

    I’m trying to align the text of my header. As of now, it is pushed to the left (of the tape). I tried playing around on text-align center commands but have yet to get anything to work.

    Here is the code I believe needs to be altered somehow:

    <!– Header –>
    <div id=”header”>

    <!– Title –>
    <div id=”header-info”>
    <h1>JK Mobile DJs</h1>
    </div>
    <!– /Title –>

    Thanks in advance for any help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • animeshtripathi

    (@animeshtripathi)

    Did you try using the center HTML tag?

    animeshtripathi

    (@animeshtripathi)

    Try this:

    #header #header-info h1 {
    padding-left: 100px;
    }

    Thread Starter cjones2989

    (@cjones2989)

    Don’t believe so, I used text-align but my true confusion is where exactly to input it within the code.

    animeshtripathi

    (@animeshtripathi)

    Try that ^

    Thread Starter cjones2989

    (@cjones2989)

    Sorry for being a noob but I entered that code inside the Header and Title portion and it just shows as text on the page. How does that text lay in the code I supplied? Again, thanks for helping me on this.

    Thread Starter cjones2989

    (@cjones2989)

    Nevermind, I found what you meant in the CSS Stylesheet. Thanks friend! Works great!

    animeshtripathi

    (@animeshtripathi)

    You’re using the Old Tape theme on WordPress.

    In your Dashboard, under Appearance, go to Editor. It should open style.css by default. In this file, search for “header-info h1”, and under this line: font: normal 40px Arial; , and this line:
    padding-left: 100px;

    that should do it.

    P.S. how old are you?

    Thread Starter cjones2989

    (@cjones2989)

    I was looking in the Header.php and not style.css. That was my mistake. I’m 29 and not good with code and I’m learning on the fly. Why?

    animeshtripathi

    (@animeshtripathi)

    Naw, just like that. I’m 15. 😛

    Thread Starter cjones2989

    (@cjones2989)

    Oh well, wouldn’t be the first time I’ve been schooled by someone younger than me. Call of Duty especially. Haha

    animeshtripathi

    (@animeshtripathi)

    haha 😛

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Trying to Center the Text in Header!’ is closed to new replies.