Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
CSS Print StyleSheet Not Working on Webforms
Hold On
7y
244
1
Reply
Can someone help me how to use correctly the css for media print? I'm very novice when it comes to html and css, hence, all the styles that I use is inline. I tried to follow what I found on google on how to use the media print but no luck. Below is a snippet of my css media print where it doesn't work.
<
style
>
@media print {
.imageLogo {
margin-top: 5px;
}
.fontfamily {
font-family: 'Phetsarath OT';
text-align: center;
font-weight: bold;
}
.regularfont {
text-align: center;
font-weight: bold;
}
.sched {
text-align: center;
font-weight: bolder;
font-family: 'Phetsarath OT','Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
font-size: 35px;
}
.leftSide {
width: 200px;
}
.next-to-left {
width: 300px;
}
.grid {
margin-left: 200px;
}
.gridview td {
width: 300px;
text-align: center;
}
}
</
style
>
Thanks in advance for any help.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
How do I convert this Json result Object to array
Send parameter in HTML