Forums

2 Questions: centering blog and using the_excerpt on a page (4 posts)

  1. mituka
    Member
    Posted 1 year ago #

    Ok, I have 2 questions that are hopefully easy to answer.

    1. How do you center the blog?

    By this I mean so the main table (header-content-footer) is centered on the website. I've tried a variety of suggestions, from editing the CSS, to nesting that content within a container-type table and positioning that.

    Thus far, the results have been one of 2 ways:
    --The site will look centered on a 1024x768 screen resolution, but will appear off-center (positioned to the right or left) on a wider screen.

    --Or the site will look centered on the wider screen, but appear off-center (to the right or left) on a 1024x768 resolution.

    How can this be fixed so it appears centered, no matter what the resolution/screen size?

    One thing I must point out is the table must retain a max width of 910px.

    Now, for the next question...

    2. How do you use the_excerpt on a page?

    Right now, the blog is setup so the index page contains static content (intro text, some pictures, etc.) and the blog is on a separate page. From what I've read in the docs (or kb?), you can usually use excerpts by changing "the_content" to "the_excerpt", but Pages don't seem to come with that option.

    So, how would you set it up so the blog posts (now located on a Page) will show up automatically on that Page as excerpts, rather than full-length posts?

    Much thanks for any help.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    1. By using CSS.

    2. See this Codex page.

  3. mituka
    Member
    Posted 1 year ago #

    "1. By using CSS."

    As I stated in the original post:

    I've tried a variety of suggestions, from editing the CSS, to nesting that content within a container-type table and positioning that.

    --In other words, I've already tried editing the CSS in multiple ways (according to other posts on here and possibly also the kb/docs/codex), none of which worked.
    And these were the results (also from the original post):

    --The site will look centered on a 1024x768 screen resolution, but will appear off-center (positioned to the right or left) on a wider screen.

    --Or the site will look centered on the wider screen, but appear off-center (to the right or left) on a 1024x768 resolution.

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    "1. By using CSS."

    working with the information you have given in your question, there is not much else to advice, without guessing and posting a lot of links to otherwise easily available information on centering 'something'.

    a link to your site might help to get your more detailed replies.

Topic Closed

This topic has been closed to new replies.

About this Topic