HTML - Altering Print Page Setup In Html/jsp
Hello all
I was wondering is there a way in HTML/JSP to modify the original Print Page Setup, originally defined by the user? What I mean is that no matter what settings the user has on his Page Setup, I always want the page margins to be the following, when a user opens up my HTML and tries to print the page: Right = .75in, Left = .75in, Top = .4in, Bottom = .4in What I am using is the following CSS in my HTML: <STYLE TYPE="text/css" MEDIA="print"> <!-- BODY { margin-left: .75in margin-right: .75in margin-top: .4in margin-bottom: .4in } --> </STYLE> But it doesnt seem to work. If the orginal page margins defined by the user are more than what I am setting through my CSS, it doesnt seem to work. i.e. If the user has all his margins setup to .75in, my CSS doesnt seem to alter the same. I would be glad if someone could help. Thanks Similar TutorialsI'm pulling a practical joke on a buddy of mine, which saving the source code of a web page, altering it, and then pulling it up on my computer to show him (as if it it were a regular page on the web). I've done the altering, but now I need the pictures, background and buttons to show up as they are on the web page. How can I change the source code to show the pictures/buttons/background as they appear on the page itsself? Thanks! Hi Guys. My website contains a lot of text, and its continually printed by clients as it includes pricing etc. At the moment my pricing page is 4 pages of paper, however I wish to be a touch kinder to mother nature and be a bit more eco-friendly so I have created a document with all the pricing on one page which I have saved as a PDF file. I would like to add a link on my website to "Printer Friendly Version" which would link to the PDF and would bring up a print dialog box. What coding would I need to do this? I think it may very well be Java but I'm not the brightest when it comes to this Any help appreciated! I hope this all made sense! Hi, Quite some time ago I was faced with putting a website together for the first time for a local community group (my wife nominated me!). Rather than tell you all what it contains and how it looks, it is probably easier for me to give you the link which is the Friends of Clifton Park based in South Yorkshire, UK. This website consists of eight html pages. The first is the index, second is the welcome page and the rest are linked pages via links on the left. On every of the "linked" pages, only the main body changes, with the exception of each link showing in Caps and link disabled. The problem I'm having is that every single one of the linked html pages are the same, except the displayed text. 90% is the page set-up. So my question is: Is it possible to "import" the required text information when a link is clicked on straight into the main body of ONE html page? btw, you'll notice that the page height isn't fixed, it expands depending on amount of information in it. I have tried IFRAME but don't really seem to be getting anywhere as I can't seem to make the height auto-adjust. A specified height value has to be entered for each "page". This is no good as more information will be needed to be put on. So basically what I am trying to do is: Keep the index.html Change the welcome.html to display the main page (graphics/images, etc) Import text into main body into the welcome.html page when a link is clicked on. Thus reducing the need of duplicate html pages and just having text files containing the main body text. The main reason for wanting to do this is a) stop all the duplication of page set-up in each html file, and b) make it easier for the guy that wants to add information where needed, straight into notepad (txt file) and upload it to the website. I hope all the above makes sense and if anyone requires further information, I will only be to happy to provide it! Thank you. Hi, I am trying to set up a pictures page on a web site. My first idea was to set up two iframes so that the user could scroll sideways on the top through the pictures and each picture would link to itself in a bigger size targeted to another iframe... like this. I put a few of the pictures in here just to show you what I was thinking... the page really isn't working well, I just threw it together to show you the structure I'm talking about. This would work, but I'd also like the description to change, so I was thinking of using Javascript (I don't actually know javascript yet, so I'm guessing at this) so each picture would change TWO iframes, one as the picture and the other would be the description. The problem with that would be that I would have to make a new html page for each description... I guess I could do that, but would there be anything easier? All the solutions I have thought of like using a getElementByID javascript to change the picture and text wouldn't work because of the iframe. If there is another solution, I don't even need an iframe. I was just checking to see if anyone had any suggestions on this, either a simpler solution to the iframe idea or a completely different idea. It really doesn't matter, I just want a good looking, easy to use pictures page. Hi, how can I print the page ? <a>Print the page</a> should I use javascript ? which is the correct command (cross-platform) ? thanks I need a fool-proof method of making a page break for printing purposes. Nice clean break. I tried using the CSS method, but its doenst work in all browswerrs and is very finicky. Any suggestions? Hello all, I am looking to see if there is a simple way to provide a print button for static Text and/or images within a simple table. The content will not change, so I want to see if I can provide a programmed print button for the content within each table. The application is a FAQ page of a website. Currently, the page is long and printing a particular FAQ item is not possible. Expecting the viewers to be web-savvy enough to know how to print selected text is out of the question, as well as providing them this tip in writing. There needs to be a print button. I found this: http://download.oracle.com/javase/tu...rinttable.html but since I am not familiar with coding much beyond basic html I am not sure if this applies or how to implement the code examples in a webpage. I use Dreamweaver MX '04 to edit page html. Any help would be greatly appreciated. Thank you in advance. Can someone please tell me why this page does NOT print properly? http://www.unreal-deals.com/ebooks11...-printable.php I've tried everything I can possibly think of, removed all word html tags, cleaned up the source formatting, and still it doesn't work. Print preview on IE7 shows only 7 pages, and when I print it only prints 1 page then 60+ blank pages. Whats going on? Thanks Goodday, I have a verry enoying problem on my company's website: www.tholeholland.nl When you press the print button it takes like 5 min. before it starts printing. Also the file is about 180 mb big.. ?? AND the tekst on the end of the page is left out.. Please help me.. I'have really tryed everything. Thanks! Greetings, Daniel I need to know what the common practice is to open a printable page in a new window after a link is clicked. Something that you can print from the page or from the browser. Normally I would just open in a blank target but the window doesn't open up tight to the printable media. Any help would be great. Thanks! Hello all!! First time to this forum, but it was highly recommended. I was wondering if anyone had a simple code for capturing the current pane of a web page you are on, then send it as a print job to your default printer. Backround: We have an internal web portal for sales of the company and contains both text and graphs. The graphs are shown on screen but will not print normally. The software company (Dimensional Insight aka Diver) knows of the issue, but until it is fixed I thought the above could be a work around to the challenge. Please let me know if I need to explain further. Right now the code for button I am using is listed below.. very clean and simple, just hoping I can add a screen capture to it. //Start Code <HEAD> <script> function printWindow(){ bV = parseInt(navigator.appVersion) if (bV >= 4) window.print() } </script> </HEAD> <BODY> <a href="javascript:printWindow()">Print This Page</a> </BODY> //End Code Hi, Background: I have a small page that need to be embeded into a bounch of other html pages. Help needed: 1. Please provide the html chunk that I can use to embed the small page in to other html pages. 2. Is there a way of not using iframe? Can I use <Object> or <embed>? How? --------------------------- mba colleges in london hospitality management diploma Hi Guys, Strange problem. I have a simple webform where users can fill in text and check/uncheck some checkboxes. When this is printed to pdf or paper (or print preview) in IE (7 or 8) the checkboxes are printed unchanged. E.g. user sets a check, this is printed unchecked ... or with a pre-checked box with the user unchecked, is printed checked. Same goes for the radio. Only when I remove the DocType completely, IE prints it correctly. But I need to use XHTML-strict. This is a simple example which fails in IE: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="nl" xml:lang="nl-NL"> <body> <input type='checkbox' name='y'/><br/> <input type='radio' name='x'/><br/> </body> </html> Doesn't work with any doctype I tested (loose or html4). Anyone a idea how to solve this? Many thanks, Michael Hello all, Can anyone tell me how I can change the block colour of the background to a more opaque effect? Many thanks Phil HI everyone, I am in process of creating a sample page. I need to pass values from one HTML page and i should get those values in other page. For example i have used two sample pages like, sample.html l<html> <head> <title> My first page </title> </head> <body> <a href="sample1.html" id="1001">Welcome to html </a> </body> </html> sample1.html <html> <head> <title> My second page </title> </head> <body> <a href="sample1.html">Sample HTML page values came here</a></body> </html> I have used those two sample pages and i need to get the value of id="1001" in sample 1.html page could anyone help me to solve this problem. Thanks in advance Regards, Martin hello, I have two form submit email from emailmeform. I want to put these at one submit email form, but my visitors still can choose which they want to submit, ie as models or as voters. But I dont know how to linked these email submit form with their choose feature. Would you help me? Below is my code. HTML Code: <form method="post" action="http(.)//www,xxxxxx,com/fid.php?formid=533870" enctype="multipart/form-data" accept-charset="UTF-8"> (this first link to send email) "http://www(.)//www,xxxxxx,com /fid.php?formid=532682" enctype="multipart/form-data" accept-charset="UTF-8"> (this second linkt to send email) <table bgcolor="#b5d5ea" border="0" cellpadding="2" cellspacing="0"> <tbody> <tr valign="top"> <td nowrap="nowrap"><font color="#000000" face="Verdana" size="2"><b>As : </b></font></td> </tr> <tr> <td> <select name="src"> <option value="http(.)//www.xxxxxx.com/fid.php?formid=533870" enctype="multipart/form-data" accept-charset="UTF-8">Model</option> <option value="http://www(.)[url]www.xxxxxx.com[/url] /fid.php?formid=532682" enctype="multipart/form-data" accept-charset="UTF-8" selected="selected">Voters</option> </select> </td> </tr> <tr valign="top"> <td nowrap="nowrap"><font color="#000000" face="Verdana" size="2"><b>Name : </b></font></td> </tr> <tr> <td><input name="FieldData0" size="15" type="text"> </td> </tr> <tr valign="top"> <td nowrap="nowrap"><font color="#000000" face="Verdana" size="2"><b>Email : </b></font></td> </tr> <tr> <td><input name="FieldData1" size="20" type="text"> </td> </tr> <tr> <td align="right"><input name="hida2" value="" maxlength="100" size="3" style="display: none;" type="text"><input class="btn" value="Subscribe" name="Submit" type="submit"></td> </tr> <tr> <td colspan="2" align="center"><br> </td> </tr> </tbody> </table> <br> </form> Thank you very much for your advance. Edwin Hi I'm trying to setup a chat on my site where you will ave to sign up in order to chat. However I already have a forums setup on that site that uses a MySQL Databases. My question is can I use the same database for the chat that i use for the forums? and if yes will i be able to login to the chat and the forums with the same usernam/password Thank you FSY My server switch me from Windows platform to Linux. now when I pull down one of my pages I have lost all my spacing formats. Is there anything I can do to stop this? Is Linux causing this? It looks like this now: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><TITLE>No Magic Neon Street Magic LED DOT Approval Page</TITLE><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><META NAME="Keywords" content="DOT, DOT approval, led clusters, genesis, spyder, can-am spyder "><META NAME="Description" CONTENT="Street Magic Leds. Motorcycle Lighting Innovators, Not Imitators LED lights"><META NAME="Author" CONTENT="streetmagicleds@nycap.rr.com"><META NAME="ROBOTS" CONTENT="index,follow"></head><BODY BGCOLOR="#000000" TEXT="#000000" LINK="orange" VLINK="yellow" ALINK="#FF0000"><!--Take first section and duplicate on each page-change links--><div align=center><IMG SRC="logo sm-nmn 8-07.jpg" WIDTH=855 BORDER=0><p><table border=0 width=900 height=20 bordercolor="black" cellspacing=o cellpadding=0 bgcolor="black" > <tr><td><div align=center><A href="http://www.nomagicneon.com"><font color=#ffff99>Home</A> *<A href="http://www.nomagicneon.com/contact.html"><font color=#ffff99>Contact Info.</A Use to look like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>No Magic Neon Street Magic LED DOT Approval Page</TITLE> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META NAME="Keywords" content="DOT, DOT approval, led clusters, genesis, spyder, can-am spyder "> <META NAME="Description" CONTENT="Street Magic Leds. Motorcycle Lighting Innovators, Not Imitators LED lights"> <META NAME="Author" CONTENT="streetmagicleds@nycap.rr.com"> <META NAME="ROBOTS" CONTENT="index,follow"> </head> <BODY BGCOLOR="#000000" TEXT="#000000" LINK="orange" VLINK="yellow" ALINK="#FF0000"> Thanks in advance if you have any ideas The website I am trying to build is as follows: Website Logo (a jpg file) Left bar (4 jpgs) | The content (some text) | Right bar(2 jpgs) Footer(some text) This is what I have coded so far: HTML Code: <body bgcolor="#3598FE"> <!-- start header --> <div id="header"> <div id="logo" align=center> <img src="images/The_LastPic_Logo_Final_Nov_3.jpg" width="463" height="193" /> </div> </div> <!-- end header --> <!-- start page --> <div id="page"> <!-- start leftbar --> <div id="leftbar" class="sidebar"> <table> <tr><td><a href="http://www.google.com"><img src="images/baseball_home.jpg" width="230" height="64" style="border-style: none" /></a></td></tr> <tr><td><a href="http://www.google.com"><img src="images/volley_uploadVideo.jpg" width="230" height="64" style="border-style: none" /></a></td></tr> <tr><td><a href="http://www.google.com"><img src="images/puck_aboutTLP.jpg" width="230" height="64" style="border-style: none" /></a></td></tr> <tr><td><a href="http://www.google.com"><img src="images/football_officialRules.jpg" width="230" height="64" style="border-style: none" /></a></td></tr> <tr><td><a href="http://www.google.com"><img src="images/basketball_ReleaseFroms.jpg" width="230" height="64" style="border-style: none" /></a></td></tr> </table> </div> <!-- end leftbar --> <!-- start content --> <div id="content"> <h1 class="title">Hello</h1> </div> <!-- end content --> </div> <!-- end page --> </body> Where I have <h1 class="title">Hello</h1> It is showing up below the table I created, how can I make it print to the right of the table? hello guys, can someone guide me on how to setup/create search in my website for content and pages not using any database, all i want is to search simple content in my limited number of pages ? is that possible using html ? if yes then please guide me how to accomplish it...thanks |