Category Archives: css

Form tag & Extra Vertical Space Problem

Fix:
form style=”margin-top: 0px;margin-bottom: 0px;”

textbox image alignment problem

Problem:
text_field(:member, :dob,:size=>”20″, :maxlength => “50″,:tabindex=>”22″) img_tag
Fix:
text_field(:member, :dob,:size=>”20″, :maxlength => “50″,:tabindex=>”22″) img_tag {:style=”position:absolute”}

HTML Page Breaks

@media print
{
.pagestart
{
page-break-before: always;
}
}

This is on page 1.
This is on page 2.
Or you can pick a tag where you want the page to break. In this example I used the H3 tag
In the header add this line
H3 { PAGE-BREAK-BEFORE: always }
Wherever the
is in the body of your page it will produce a page break.