Skip to content

Category Archives: css

Form tag & Extra Vertical Space Problem

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

  • Share/Bookmark

textbox image alignment problem

Problem: [code] text_field(:member, :dob,:size=>"20", :maxlength => "50",:tabindex=>"22") img_tag [/code] Fix: [code] text_field(:member, :dob,:size=>"20", :maxlength => "50",:tabindex=>"22") img_tag {:style="position:absolute"} [/code]

  • Share/Bookmark

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 [...]

  • Share/Bookmark