logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Dreamweaver General
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 10-15-2015, 04:04 PM   #1
K.Simmonds
 
Join Date: Apr 2006
Location: Yorkshire
Posts: 206
Default Change text colour in just one line.

I've just started using Dreamweaver CC and I can't figure out how to change the clour of just one line of text. When I change it in page properties for example, it changes the whole paragraph, not just the hi-lited line I want to change. Any ideas?
__________________
Keith Simmonds
K.Simmonds is offline   Reply With Quote
Old 10-15-2015, 04:52 PM   #2
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

are you selecting a line? are you selecting the first line or part of a paragraph? just wrap it in a span and apply a class to the span

... some text <span class="highlighted"> this is the bit you want a different colour </span> and the text goes back to the original colour from here

then in your css write something like
.highlighted {
color:#ff0000;
}
d a v e is offline   Reply With Quote
Old 10-16-2015, 07:19 AM   #3
K.Simmonds
 
Join Date: Apr 2006
Location: Yorkshire
Posts: 206
Default

Thanks for replying. This is the code for the paragraph I'm talking about. It is the line that starts with "Special offer" and ends with "booking system" that I want to make a different colour from the first part (ie: you can check availability).



<p><font size="+2"><B>You can check availability (including any special offers) and book directly,<br>
by using the search box below. <em> We are NOT on any comparison sites !</em></B></font><em><br>
<br>
</em>Special offer: From 16th November right through to 23rd December. Stay 2 nights and receive a &pound;10 per night reduction. Stay 3 or more nights and receive a &pound;20 per night reduction. The reductions are automatic if you use our online booking system (below).<br>
__________________
Keith Simmonds
K.Simmonds is offline   Reply With Quote
Old 10-16-2015, 06:08 PM   #4
Tiger
 
Join Date: Sep 2015
Posts: 15
Default

<a href="sitemap.php" style="color:#070707">Booking System<

Works for me
Tiger is offline   Reply With Quote
Old 10-16-2015, 06:49 PM   #5
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

tiger, that turns it into a link.
K.simmonds - put <span>s around the part and make a class like i said in the previous post - are you familiar with using basic css?
i'm a bit troubled with your "<font size="+2">"
d a v e is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 01:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com