code not working

janplank

Well-Known Member
Joined
Feb 23, 2010
Messages
482
Reaction score
205
Location
JHB
I am in the process of learning a bit of webdesign. I have a pdf document I am working through. It started mentioning css and gave some examples. But when I copy and paste that into my program and test it, it is not working.

Any ideas what I am doing wrong. I use HTML Kit. I was thinking the program cannot decode the instructions, or that is save it wrong?

Thanks.
 
You're going to need to post some samples of what you're trying to do, otherwise it's just guess work...
 
<html>
<head>
<title>Moving Styles To the Top</title>
<style type=”text/css”>
.manuf { color:blue; font-weight: bold; font-style: italic }
</style>
</head><body>
While a variety of companies manufacture digital
cameras, notably including
<span class=”manuf”>Kodak</span>,
<span class=”manuf”>Olympus</span> and
<span class=”manuf”>Sony</span>,
there are only two companies that offer true
digital single lens reflex (SLR) cameras:
<span class=”manuf”>Nikon</span> and
<span class=”manuf”>Canon</span>.
</body>
</html>


If I run this in my browser, it just comes out black...
 
Try replacing your inverted commas from ” to "

It is working now. Can't believe something like that caught me. I've read it somewhere.

Thanks for the quick help....
 
This normally happens when you copy from some websites. Now you know what to look out for when you encounter this problem in the future.
 
Top
Sign up to the MyBroadband newsletter
X