| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS - Preview Print mode ???
I’m using CSS for my site. When I view my webpage (long text) in the Print Preview mode, the last line (text) shows only ½ and the other ½ is in the 2nd page. Does any one know why? Thanks.
P {FONT-SIZE: 80%; font-family: Arial, Verdana, MS Sans Serif; MARGIN: 0em auto 0em; line-height:normal; letter-spacing:normal } |
|
#2
|
||||
|
||||
|
First, a few questions:
a) Why are you using UPPERCASE for your selectors and properties? Take note that CSS is fully case-sensitive. Code:
P { COLOR: RED; }
Code:
p { color: Red; }
Only one of those works in XHTML. b) What media settings do you have setup? Unless you specify a stylesheet for printing browsers will ignore it. |
|
#3
|
|||
|
|||
|
"Take note that CSS is fully case-sensitive. " REALLY! I've never heard it. However, I'll change it to small letter.
b) What media settings do you have setup??? I'm not sure what you meant? |
|
#4
|
||||
|
||||
|
Do you have anything like this in your pages/CSS files?
Code:
<link rel="stylesheet" type="text/css" href="style.css" media="screen, projection, tv" />
<link rel="stylesheet" type="text/css" href="printstyle.css" media="print" />
@media print {
}
@media screen {
}
|
|
#5
|
||||
|
||||
|
Quote:
All standards-based scripting is case-sensitive now. There's no capital letters in XHTML tags or attributes now so it's a good habit to just use all lowecase letters from now on. Just an FYI ![]()
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > CSS - Preview Print mode ??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|