Applying Stylesheets to HtmlPlaceholder control
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Applying Stylesheets to HtmlPlaceholder control

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Dilip Kumar
Guest





Posted: Sat Jan 08, 2005 9:25 am    Post subject: Applying Stylesheets to HtmlPlaceholder control Reply with quote

For one of my HTMLPlaceholderDefinitions, I have
selected "TextMarkupAndHtmlStyles" as the Formatting
option. For the corresponding HtmlPlaceholder control in
the template file, I have specified a css
class, "StdContent", as the CssClass property. That is, I
want to standardize the font-name, font-size and font-
color for the content. While creating a new page, if I
type the content manually in that control, it respects my
css class. But, if I copy something from another html page
(from another website) and paste it in the control, it
ignores my css class. It retains the font, font-color and
font-size of the original html page. How can I fix that?

Thanks a lot!

Dilip
Back to top
Stefan [MSFT]
Guest





Posted: Sat Jan 08, 2005 3:49 pm    Post subject: Re: Applying Stylesheets to HtmlPlaceholder control Reply with quote

Hi Dilip,

you need to change the format to a different type.
"TextMarkupAndHtmlStyles" means that styles copied from a document will be
used rather than the fonts you set outside.
Use "TextMarkup" instead.

Cheers,
Stefan.

"Dilip Kumar" <anonymous@discussions.microsoft.com> wrote in message
news:09c201c4f531$a5a43020$a501280a@phx.gbl...
Quote:
For one of my HTMLPlaceholderDefinitions, I have
selected "TextMarkupAndHtmlStyles" as the Formatting
option. For the corresponding HtmlPlaceholder control in
the template file, I have specified a css
class, "StdContent", as the CssClass property. That is, I
want to standardize the font-name, font-size and font-
color for the content. While creating a new page, if I
type the content manually in that control, it respects my
css class. But, if I copy something from another html page
(from another website) and paste it in the control, it
ignores my css class. It retains the font, font-color and
font-size of the original html page. How can I fix that?

Thanks a lot!

Dilip
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB