navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

css in dynamic web template

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> css in dynamic web template
Page: [1]
 
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

(in reply to nashville1012)
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

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> css in dynamic web template
Page: [1]
Jump to: 1





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