WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] centering main content (6 posts)

  1. twistbeats
    Member
    Posted 4 years ago #

    i'm using Arras theme. Really like the featured post layout.

    except i'm trying to extend the width of the main area and it floats the main content and sidebar to the right.

    the header and footer are fine with my auto margins. there doesn't seem to be a div for the content between the header and footer so im stumped as far as my CSS goes. any help?

    url: anarcho-capitalist.org

    thanks

  2. Robbie JW
    Member
    Posted 4 years ago #

    Try changing:

    .main-aside {
         float:right;
         position:relative;
         width:300px;
    }

    to:

    .main-aside {
    	float:right;
    	position:relative;
    	width:200px;
    }

    and changing:

    #content {
    	margin: 0;
    	overflow:hidden;
    	width:660px;
    }

    to:

    #content {
    	margin:0;
    	overflow:hidden;
    	width:760px;
    }

    and lastly:

    #container {
    	float:left;
    	width:660px;
    }

    to:

    #container {
    	float:left;
    	width:760px;
    }

    Is this what you meant?

  3. twistbeats
    Member
    Posted 4 years ago #

    fraid not. there are no divs like this in the style sheet. the template is a mess of stylesheets. here is the code from the main one:
    [huge chunk of code moderated - please use a pastebin or link to file]

  4. twistbeats
    Member
    Posted 4 years ago #

  5. twistbeats
    Member
    Posted 4 years ago #

    bump

  6. twistbeats
    Member
    Posted 4 years ago #

    ah. fixed. messy style sheets.

    content was displaying off centre, to the right of the header and navbar. i put a
    in the header.php file just after the menu items in the navbar. it aint a great fix but at least i know where the problem is. i'll figure something out later.

Topic Closed

This topic has been closed to new replies.

About this Topic