473,387 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How can I give page border to html page while printing?

Actually I have border in html page. while printing, the content is coming in two pages and bottom-border for first page and top-border for second page does not occur.so how can I give page border for each page while printing.I have used @media print and wrote css inside that. Is there any other solution such that I should get border on all sides for each page when printing the page ?
Aug 27 '14 #1
1 4897
Exequiel
288 256MB
i think you need to put your entire display in a div and make border to that div. example
Expand|Select|Wrap|Line Numbers
  1. <style>
  2. .main_print{border:1px solid #000; padding: 5px;}
  3. </style>
  4. <div class="main_print">
  5. <!-- data to print -->
  6. </div>
  7.  
Aug 28 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: uto | last post by:
i'd like to attach some aspx page in HTML template HTML template consist of Header,Content and Footer. i just wanna show Html page appear consist of Header, aspx page and Footer is it...
3
by: Steve | last post by:
My question is both .net and javascript and I thought it would be best posted here. I have a pop up html page (it just has to be html) with a textbox and a button next to it. When the user...
8
by: Fish44 | last post by:
Ive got a PHP script, which if it ends correctly, i want load another PHP file or an HTML page automatically, ie without user intervention. The new page shoud replace the current page on the...
0
by: fltcpt | last post by:
Alot of people have asked how to create a link in HTML so that clicking it opens webfolder, and I guess it is using the anchorclick/folder property. I want to do the reverse, clicking on a...
0
by: halex | last post by:
Hello, I need to save to file HTML page from my complex ASPX page (it has MasterPage, MainContainer, UserControls, CSS, JS files...). So, I need to override Render method to to this but I did not...
5
by: bohemian50 | last post by:
i want to convert an aspx page into html page so that i can use the converter to convert it into the tiff format .If you have any suitable code please help me with this in C#
2
by: ramyasalva | last post by:
Is there any method for converting telerik rad control in aspx page to html format plz give ur response regarding to the above issue
1
by: bhaveshkrana | last post by:
Dear Sir, It is possible to convert .aspx page into .html page at the time on page render from server to client, if yes then how describe in detail with example?
2
by: Shinis | last post by:
How to include an aspx file into an html page?????give me a solution pls... Thanks in advance
2
by: Sheena777 | last post by:
Is there any way of displaying an asp page with out deploying it or running it off a port. I am trying to display the page like you would display an html page. Is there any way to treat the asp page...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.