css in dynamic web template (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


nashville1012 -> 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 -> 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.




d a v e -> 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 ;)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875