INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Center header text

Center header text

(OP)
Hi, I'm using the MTS Journey theme and in header.php is the following programming....ps I'm a newbie to Wordpress/PHP

<div id="containerl">
  <div id="header"><h1><a name="topp"  title="topp"  id="topp"></a><a href="<?php echo get_settings('home'); ?>/" title="<?php _e('Go to','mtsjourney'); ?> <?php bloginfo('name'); ?> <?php _e('Homepage','mtsjourney'); ?>"><?php bloginfo('name'); ?></a></h1></div>
<div id="wrapper">
<div id="content">

It displays the name of the blog, which is my case is 13 characters and it appears to be centered. I was mucking around as I want to place the blog description there. I got that to work but is several works and it's not centered. I put things back to how they were, made the blog name longer and found that it's also not centered. I've tried putting in 'text-align: center' in several places but it won't centre.

How can this be done?

Cheers

RE: Center header text

(OP)
I found in style.css was the following programming....

div#containerl {
    max-width: 1200px;
    width: 97%;
    margin: 0 auto;
    text-align: center;
    border: 3px double #688f9e;
    color: #151515;
    background-color: #fff;

and although 'text-align; center;' was there it just wasn't working for some reason. I deleted and re-entered it then save it and it's centered.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close