Greetings! I'm pulling my hair out trying to figure out what the heck this does.
I'm actually trying to learn some CSS with XML. I came across this bit of CSS code and can't figure out what the heck it's for and the book I'm using provides absolutely no explanation
Code snippet:
@page {
margin-left: 15px;
margin-bottom: 30px;
margin-right: 15px;
}
h1 {
font-family: Verdana, Arial, sans-serif;
font-size: larger;
background-color: yellow;
border-bottom-style: double;
color: black;
}
Does anyone have an idea what the heck the "@page" does?
Thanks!
http://www.htmldog.com/guides
Either that or check the
Either that or check the home of the specs W3C:
http://www.w3.org/TR/REC-CSS2/page.html#page-box
Answers are usually only a short google away.
This is essentially a printing function, not sure off hand how much support there is for it amongst browsers.
Wow thanks man. I tried
Wow thanks man. I tried searching this thing in every possible way I could think of but I never thought to search for "at-rules."
I tried "at sign" with all sorts of CSS keywords and hundreds of other formats including @ but I think that sign is completely unsearchable!
Thanks again!
xray