PC Review


Reply
Thread Tools Rate Thread

CSS 2 with FP2003

 
 
Sitara Lal
Guest
Posts: n/a
 
      31st Jul 2004
Hi,

I have just upgraded to FP2003 and am lost in trying to apply CSS2 classes
to portions of text in my pages,

To explain the problem ...

For a CSS1 class [e.g. .h1 { font-family: Verdana; font-size: 24pt;
color: #000080; font-weight: bold }], I would simply select the text block
and choose .h1 from the Style window of the formatting toolbar.

However, what do I do for a CSS2 class, such as the one below?
#leftcontent {
position: absolute;
left:10px;
top:50px;
width:200px;
background:#fff;
border:1px solid #000;
}
How do I apply that class to a block of text on my page?

I am sure there is a simple answer to this which just escapes me, but I will
be grateful for any help!

SL


 
Reply With Quote
 
 
 
 
Jon Spivey
Guest
Posts: n/a
 
      31st Jul 2004
Hi,

The CSS you have isn't a class it's an ID. You'd wrap a div around your
text and then ID the div, so you'd end up with
<div id="letcontent">...stuff....</div>

Jon
Microsoft MVP - FP

"Sitara Lal" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have just upgraded to FP2003 and am lost in trying to apply CSS2 classes
> to portions of text in my pages,
>
> To explain the problem ...
>
> For a CSS1 class [e.g. .h1 { font-family: Verdana; font-size: 24pt;
> color: #000080; font-weight: bold }], I would simply select the text block
> and choose .h1 from the Style window of the formatting toolbar.
>
> However, what do I do for a CSS2 class, such as the one below?
> #leftcontent {
> position: absolute;
> left:10px;
> top:50px;
> width:200px;
> background:#fff;
> border:1px solid #000;
> }
> How do I apply that class to a block of text on my page?
>
> I am sure there is a simple answer to this which just escapes me, but I

will
> be grateful for any help!
>
> SL
>
>



 
Reply With Quote
 
Sitara Lal
Guest
Posts: n/a
 
      31st Jul 2004
Thanks Jon for the very prompt response.

How do I "wrap a div around" my text? Do I manually insert the div tags in
code view, or is there some other automatic / mechanical way to accomplish
that in FP2003?

Thanks again.

SL


> The CSS you have isn't a class it's an ID. You'd wrap a div around your
> text and then ID the div, so you'd end up with
> <div id="letcontent">...stuff....</div>
>
> Jon
> Microsoft MVP - FP



 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      31st Jul 2004
Hi,
you can do it in code view if you like. Or you can do it in design view like
this
1/ select your text in the tag list click the relevant tag, probably <p>,
click choose Wrap Tag and type DIV into the dialog
2/ right click the toolbar and check Style - this will bring up the Style
toolbar (a dropdown of the classes and ID you have defined)
3/ click on the div tag you just added and in the ID dropdown choose the id
you want to apply.

Jon

"Sitara Lal" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Jon for the very prompt response.
>
> How do I "wrap a div around" my text? Do I manually insert the div tags in
> code view, or is there some other automatic / mechanical way to accomplish
> that in FP2003?
>
> Thanks again.
>
> SL
>
>
> > The CSS you have isn't a class it's an ID. You'd wrap a div around your
> > text and then ID the div, so you'd end up with
> > <div id="letcontent">...stuff....</div>
> >
> > Jon
> > Microsoft MVP - FP

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP & FP2003 Teriel9 Microsoft Frontpage 4 24th Oct 2006 03:01 PM
Upgrade from fp2003 trial vers to fp2003 full version =?Utf-8?B?YmVuY29icmFqb25z?= Microsoft Frontpage 1 18th Dec 2005 09:33 AM
New FP2003 ? =?Utf-8?B?UGhpbA==?= Microsoft Frontpage 4 28th May 2004 12:07 PM
FP2003 and ASP.NET Dennis Blondell Microsoft Frontpage 0 25th Oct 2003 10:33 PM
FP2003 - Any changes from FP2003 beta to FP2003 final? KM Microsoft Frontpage 1 30th Sep 2003 04:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 AM.