|
| |
|
|
nashville1012
Posts: 108 Joined: 1/29/2006 Status: offline
|
css in dynamic web template - 5/20/2007 22:51:47
I want to put a line of CSS in the header of my dynamic webtemplate in order to control the text in the "open" part of my dwt. I tried to put in <body{font-size: 12pt; font: georgia, verdana, helvetica} </body> But it didn't affect my template or the pages that use it. What did I do wrong? thanks.
|
|
|
|
Tailslide
Posts: 5948 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: css in dynamic web template - 5/21/2007 2:55:02
If you're going to add it into the tag itself (which isn't a great idea to be honest) then you'd do this: <body style="font-size: 12pt; font: georgia, verdana, helvetica;">
Your web page content goes here
</body> Is there a reason why you can't just put the rule in the normal stylesheet? Putting format rules into tags sort of defeats the purpose of CSS. Also - don't use PT for font-sizing - it's a print thing (no I don't know why on earth it's an option!) Use % - try around 76% on the body element.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
d a v e
Posts: 4041 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: css in dynamic web template - 5/21/2007 9:22:21
"Also - don't use PT for font-sizing - it's a print thing (no I don't know why on earth it's an option!)" well for your print style sheet of course ;)
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|