• Resolved pmkelly

    (@pmkelly)


    Hi everyone. I am using arclite 2.02 (also tried 2.03) and am unable to figure out how to properly center material on a page that does not have a sidebar. Essentially, as long as I am editing a page that contains a sidebar, the centered content is located where I would expect it to be:

    http://www.pmkelly.com/sample-with-sidebar/

    If I select the page template “Page without sidebar” though, then the text is centered with respect to itself, but the bounding box is against the left hand side of my web page.

    http://www.pmkelly.com/sample-without-sidebar/

    My goal is to have the entire thing centered. That is, I would like the “centered content” on the page shifted to the right so it is centered with respect to the page header and footer. I assume the issue has to do with the width of the primary bounding box for the main display area… but I can’t figure out how to force it to be the width of the entire page.

    I am not a css expert, but I understand the basics and can tinker with it a bit. I am actually using a few commands in the Arclite “User CSS Code” section.

    .block-content{width:960px;max-width:960px;}
    #pagetitle{font-size:60%;}
    #header{height:150px;}
    #nav-wrap1{top:130px;}

    Any thoughts, hints, or comments would be greatly appreciated.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to either add an extra class to <div class="col1"> or change that class to a new one that is similar to .coll with the exception of the float:left;

    Thread Starter pmkelly

    (@pmkelly)

    That definitely helped, and I think it led me to a solution! I had to edit the file page-nosidebar.php to make it all work. Immediately after the call to get_header ( ), I added the following code:

    echo "<style type=\"text/css\" media=\"screen\">" ;
    echo "#page .col1 {float:none;}" ;
    echo "</style>" ;

    As far as I can tell, this successfully modifies the col1 class when using the “Page without sidebar” template, and doesn’t affect any of the others.

    Thank you!!!

    Thread Starter pmkelly

    (@pmkelly)

    And just for reference, since the problem is resolved, I have deleted the sample pages referenced above. Other pages on my site now make use of the template correctly.

    Dude, I just found your code and I just registered on this site to thank you!!!, more than a week looking for a solution and I just needed to copy/paste your code and voila! 😀

    ty ty ty

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Arclite Page Width/Centering Issues (No-Sidebar Template)’ is closed to new replies.