Jump to content
Stef's Coding Community

How to centre content??

Recommended Posts

hi everyone :)


I cant seem to center my content on my wordpress site????? Can anyone help please?


heres the page




Template Name: About



<?php get_header(); ?>


<!-- SPLASH -->


<div id="splash">


<div id="splash_left">

<h2><?php the_title(); ?></h2>

</div><!-- End OF SPLASH_LEFT -->



<div id="splash_right">

<p><?php echo get_post_meta($post->ID, 'splash_right',true); ?></p>

</div><!-- End OF SPLASH_RIGHT -->


</div><!-- End OF SPLASH -->



<div id="content_area">

<div id="inner_content_left">

<!-- get the page content -->

<?php if(have_posts()) : while(have_posts()) : the_post(); ?>

<?php the_content(); ?>

<?php endwhile; ?>

<?php else: ?>

<p>There are no posts to display. Try using the search.</p>

<?php endif; ?>

</div><!-- End OF INNER_CONTENT_LEFT -->




</div><!-- End OF CONTACT_BOX -->



</div><!-- End OF CONTENT_AREA -->



</div><!-- END OF CENTER_COLUMN -->


<?php get_footer(); ?>

Link to post
Share on other sites

I dont know if this is a much too simple answer, and i know people dont tend to use html for things they can use CSS for, but...


<center> </center> centers any text or media to my understanding :)



Just if that link can't help you, i guess thats an alternative ;D

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...