This blog site is not meant to be any information that is distributed to the general public. It is to serve as shared documentation between the DNSTC developers; however, if you find something useful and would like to use it, go right ahead.

Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Saturday, February 18, 2012

Code needed to make CSS/text buttons work correctly in Firefox

cssWe are supposed to develop websites to work in all browsers.  There is an issues with the IE CSS settings and the text buttons we use not showing up correctly in Firefox.  In the past, I did not care and just told people, is it what it is; however, this does not work for Smart Phones.

Therefore, the following needs to be added to the CSS block of the navigation buttons in order for them to be displayed correctly.

display: inline-block;


This will fix the display for smart cells phones as well as Firefox display.

Monday, February 14, 2011

Inserting Page Breaks when Printing Reports

Sometimes we have to create reports that are HTML based. Of course HTML is not conducive to formatted pages when being printed. You can, however, format the output using a combination of CSS code and DIV tags. This will then insert page breaks when the report is sent to the printer. Please be advised, that these page breaks will not be visible on the screen, but will be visible is you do a print preview.


In the CSS of the document or attached CSS add the following:

div.pagebreak {
page-break-after: always;
}

In the body of the document where you want to place the page break at the following:


<div class="pagebreak"> </div>

This will create a page break when the pages are printed.


For more information about CSS page breaks.


http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=909145&SiteID=1