made to be ruled (morelen) wrote in component_help,
made to be ruled
morelen
component_help

  • Music:
I was able to get a custom component under my title bar and set it to the width I wanted (thanks kunzite1)...but it's aligned to the left. How can I center it?



if ($p.view=="recent") {

        # print the component header, and start it off like a normal entry component with no usericons or journal names

        """<div style="width: $k1Swidth;">""";

        print_system_box_top();

        print_content_top();

        # print the content of the custom component - eg. my welcome note. You can put whatever html you want here as long

        # as it's properly tagged and encompassed by the """ and """;

       """something will go here...eventually""";

        # close off the component and place a spacer.

        print_content_bottom();

        print_system_box_bottom();"""</div>""";

}


It's probably ridiculously simple, but I just plain don't know how to do it :(
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 7 comments