dremweaver cs

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Dreamweaver Training and help » Dremweaver CS3

Dremweaver CS3

resolvedResolved · Medium Priority · Version CS3

Dremweaver CS3

How can I add a new style in a new page?

Thank you very much

Stefania

RE: Dremweaver CS3

Hi Stefania,

'Style' is a little broad in terms of a web page. I'm assuming you mean a CSS style? If so, you can add some CSS code at the top of your document, or use the Dreamweaver CSS panel to create a new style (click the + icon at the bottom of the panel).

For classes, you can specify like this:
.myclass {
color: red;
font-weight: bold;
border: 1px solid green;
}

And then apply them like this (HTML):
<p class="myclass">This is my paragraph with new style.</p>

For ID's, you can specify like this:
#myclass {
color: red;
font-weight: bold;
border: 1px solid green;
}

And then apply them like this (HTML):
<p id="myclass">This is my paragraph with new style.</p>

Using the Dreamweaver wizard to add a class is similar. Just choose 'in this document only' when asked where you want to store the style (you can also store it in a global CSS file, and link all your pages to it). Then go through each category on the left hand side of the style dialogue box, and adjust the style settings.

Applying the style is as easy as selecting the paragraph or other element, and then using the Properties panel to apply the newly created style using the Style drop-down box.

If this answer resolves your query, please mark the question as 'resolved' (see below). Otherwise, please post a follow-up response to this post, and I will assist you further.

Regards, Rich

Fri 20 Mar 2009: Automatically marked as resolved.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Dreamweaver tip:

Creating line breaks

If you want to create a line break hold down Shift+Enter.

View all Dreamweaver hints and tips


Server loaded in 0.1 secs.