Kevin Hunt (rheostat) wrote in component_help,
Kevin Hunt
rheostat
component_help

Layout realignment

Okay, I'm totally new to using the S2/CSS system and I've tried looking for a clear tute on this (most of the ones I've looked at provide code and stuff without giving basics of how to implement it), if there is one linked here somewhere please direct me.

What I want to do is take down the width of my components to around 70% and have it centered on the page.


I do this by creating a layer of type 'layout' right?
Then using code to the effect of:

function Page::print_custom_head() {
"""
style type="text/css">

table {
width:80%;
float:center;
}
table table {
width: 80%;
float:center;
}
hr {
width:80%;
float:center;
}

/style>
""";
}

Is this type of code correct?
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments