Page is a not externally linkable
lucy24 - 3:47 pm on Jul 30, 2012 (gmt 0)
Can you tell me how I would determine the address of an outside (I think that this is the same as external) stylesheet?
It will normally be somewhere in the header. For example-- using a page I happened to have open in the background:
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
:: cough-cough-cough ::
Those are relative links with leading ../ meaning "go back one level" so you take the page URL
http://www.example.org/docs/current/rewrite/rewritemap.html
and cut off the last two pieces of the URL before attaching the CSS URL. (If they were absolute links-- the kind beginning in / slash-- you would attach the URL directly to the domain name.) This gives you
http://www.example.org/docs/current/style/css/manual.css
which turns out to be a good example, considering I just grabbed the first one I found*, because it starts right in with
html {
font-size: 14px;
}
body {
background-color: #fff;
color: #036;
padding: 0 1em 0 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
}
But, again, ask yourself whether it's necessary to declare a font size at all. Does your page layout require a particular size? Are your wishes more important than the user's preferences? (Answer, if you are a normal web designer: Yes, of course.)
I once came across a terrifically useful www page that tells you how common a given font is in each platform, and what kinds of fallbacks to use. There will always be a generic family at the end, normally "serif" or "sans-serif", possibly "monospace". (There are also "cursive" and "fantasy" but those are rare and should never be used except in short decorative passages.) If you have visited the CSS info area, you have probably met font-family [w3.org] since it lives right next door to "font-size".
:: detour to wrangle with bookmarks ::
[codestyle.org...]
(Moderators, if you know of a better site that does the same thing, feel free to substitute.)
* OK, second. I looked at this page first but couldn't figure out where they hide the CSS. Possibly it eloped with the "charset" declaration ;)