3 replies [Last post]
xray
Offline
newbie
Last seen: 14 years 22 weeks ago
Timezone: GMT-6
Joined: 2006-12-21
Posts: 2
Points: 0

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 Sad

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!

Triumph (not verified)
Anonymous's picture
Guru

http://www.htmldog.com/guides

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 36 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

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.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

xray
Offline
newbie
Last seen: 14 years 22 weeks ago
Timezone: GMT-6
Joined: 2006-12-21
Posts: 2
Points: 0

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