• Resolved AndroidTheater

    (@androidtheater)


    I’m trying to change the position of the post title and the postmeta (positioned right below the title) so that it is in the middle of my video box that is in the posts. I want to make it so that no matter how big the title is, it still stays in the middle and if it takes part of the title to a new line that’s fine. So where would I go to code this and what would I enter? Thanks for any help!

    Here is a link to one of my posts:
    http://videorapture.com/VideoGallery/interesting/bowling-ball-juggler-hits-kid/

    im thinking it has something to do with this block of code in the css but I havnt had any luck…

    .posttitle { margin: 0 0 0.6em 0; width: 100%; color: #000000; font-size: 1.5em; font-weight: bold; overflow: auto; }
    .posttitle a { float: left; padding: 0; }
    .posttitle a:link, .posttitle a:visited { color: #546371;	}
    .posttitle a:hover, .posttitle a:active { color: #000033; }

    and in single.php i found this code but also no luck with any of the stuff I tried…

    <center><h1 class="posttitle"><?php the_title() ?></h1></center>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The problem is that the video box is larger than div holding the post content.

    The div with the id of “contentsingle” has a fixed width of 520px, and your post title, meta, and video box are inside it.

    But, the video you embedded is 640px wide, so it spills out the side of #contentsingle. This is why the title and meta look off center. They ARE centered, but the width of the box they are centered in is smaller than the video box.

    Change the width of #contentsingle to 715px (around line 100 of style.css). This will increase the #contentsingle box to the full width of the white area, centering the title, meta, and video box.

    Thread Starter AndroidTheater

    (@androidtheater)

    Wow I can’t thank you enough! You fixed it! You don’t know how long I’ve waited for a wordpress genius to help me! 😀 Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How To Change Post Title Position?’ is closed to new replies.