dreamweaver+courses - formating dreamweaver
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver+courses - Formating in Dreamweaver

dreamweaver+courses - Formating in Dreamweaver

resolvedResolved · Low Priority · Version Standard

replyReplyWed 23 Jan 2008, 14:52Delegate Petra said...

Formating in Dreamweaver

Hello,

a couple of questions about formating fonts and colours in Dreamweaver:

How do I change the font colour just in one of the cell of the table, not in the whole table?

Can I set a border just for a part of the table or once the border is set it is always for the whole table

For upcoming training course dates see: Pricing & availability

replyReplyThu 24 Jan 2008, 14:04Trainer Rich said...

RE: formating in Dreamweaver

Hi Petra,

You need to use CSS!

This was covered in your Dreamweaver 8 Introduction course, but CSS is a big topic, and it can definitely take a while to get the hang of it.

The things you are trying to do would require some more intermediate CSS techniques, so let me see if i can help you here. If you get stuck, reply back to this post and I'll help further :)

1) To change the font colour in just one of the cell tables, you can apply a style to just one cell, like this. (code view)
<td style="color: red;">Your cell data</td>

Or you could create a class, which is better, cause then you can re-use the style throughout your page or site.

CSS code:
.celldiff {
color: red;
}

HTML code:
<td class="celldiff">Your cell data</td>

In Dreamweaver, select cell and apply "celldiff" style. (celldiff can be called something else if you want, you make up the name during CSS definition).

Note you can apply colours in the same way in a body of text, just by using the span tag, like this:
<p>This part of the text <span class="celldiff">is a different colour</span> and this is normal.</p>

2) You can change a border for just one cell. You use the same CSS method, and use parameters:
border-left
border-top
border-right
and border-bottom
or just border.

So to get the effect you want of just highlighting one row, with no line between cells, you could create 3 styles. All with top/bottom borders; The first with border on left, second with neither left or right borders, and the third with border on the right, like this:

.highlightleft {
border: 1px 0 1px 1px;
}

.highlightmid {
border: 1px 0;
}

.highlightright {
border: 1px 1px 1px 0;
}

Then your HTML code would be:
<tr>
<td class="highlightleft"></td>
<td class="highlightmid"></td>
<td class="highlightright"></td>
</tr>

3) Different link colours for different areas of your page definitely require CSS. I recommend using class selectors for this. I will give the basics here, and once you understand the theory, you should be able to experiment to get the effect you're after.

If I wanted an area of my site to have white text on a green area, I can do this:
CSS code:
#greenarea {
color: white;
background-color: green;
}

HTML code:
<div id="greenarea">
My green area here
</div>

Now if i want to have the links within this area as orange, I need to also specify the anchor tag (a) selector classes within my green area definition, like this:
CSS code:
#greenarea a:visited, #greenarea a:hover, #greenarea a:link, #greenarea a:active {
color: orange;
text-decoration: underline;
}

I don't need to apply the style or id in my texts, the CSS knows that any links within a #greenarea div tag will be orange.

HTML code:
<div id="greenarea">
This is normal text.
<a href="products.html">This will be an orange link</a>
This is normal text again (white, according to CSS definition).
</div>

Hope this helps.

Regards, Rich

 

 

Dreamweaver tip:

JumpMenu in new window

When inserting a jumpmenu to a page, the only option available for 'open in' is usually 'main window'. There would be other options available if the page was a frameset.

To change the jumpmenu to open in a new window, change the target parameter of the selectbox in your code to 'window.open()'.

eg.
<select name="menu1" onChange="MM_jumpMenu('window.open()',this,0)">


source:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16166&sliceId=1

View all Dreamweaver hints and tips

forum postHow to see multiple resources assignments for different project plans

» Forum post: Project


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training