Please queue up to tell me what a novice numpty I am.....
I've made an asp site and haven't done any text formatting - how can I set the default font for each page; can I use css?
Please queue up to tell me what a novice numpty I am.....
I've made an asp site and haven't done any text formatting - how can I set the default font for each page; can I use css?
body {
font-family: Arial, Helvetica, sans-serif;
}
"All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks
cheers mate
<goes and wears dunce hat in the corner>
if you use the shorthand notation you can set size, style and family in 1 go e.g.
body {
font: normal 11px Arial, Helvetica, sans-serif;}
The normal applies to the style e.g. it could have been italic instead.
Alternatively you can do them individually e.g.
body {
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
font-style: normal
font-size: 11px}
The weight could be bold instead, etc. Both work, it's just the first one is less for the user to download
I prefer to use external style sheets unless the style is specific to that page. It makes it much much easier in the long run.
Stupidity isn't necessarily your fault Angus!
check out http://www.w3schools.com for more info. That's where i learnt everything about HTML and CSS
There are currently 1 users browsing this thread. (0 members and 1 guests)