Solved

CSS possible in layers in dreamweaver MX?

Posted on 2007-03-27
9
208 Views
Last Modified: 2010-04-25
Hello Experts,

I am working on PC, Wiindows XP, Dreamweaver MX.

My question is:

Is it possible to apply a css style to text that is inside a "layer" in dreamweaver?
If so, how would I do that?  (I know its probably a nub question, but im just starting out in web design.)
Below is a link to an example of what im working on.

Thanks Guys!
Jason


http://www.butterflydirectory.com/ER%20Acting%20&%20Drama.htm
0
Comment
Question by:JasonGrote
  • 4
  • 3
9 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 18804255
Hi Jason,

Yes.  You can either specify the text styles in the layer definition or create a class and apply it directly to the object containing the text (paragraph).

Just use the CSS panel and it should be pretty simple.
0
 

Author Comment

by:JasonGrote
ID: 18804439
Hello and thank you for the quick response.

My apologize, what I meant to ask was, how do you make a "paragraph style" in css?

(i.e.:  like in the sample in the link provided.. how would i make it so that the first line in each paragraph is all 1 point size bigger and bolded, in every listing?  

Thank you.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 18804530
You would need to do something like the below using the span tag:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.firstline {
      font-size: 13pt;
      font-style: normal;
      font-weight: bold;
}
-->
</style>
</head>

<body>
<p><span class="firstline">This is a test</span><br />
of how to bold and enlarge the first line </p>
</body>
</html>

What I did was to create a class (.firstline) in my stylesheet.  I then highlighted the first line of text in the sample and right-clicked and chose CSS Styles, then firstline.  DW applied the span tag for me.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:JasonGrote
ID: 18837848
Oh, i think i get it. So, where exactly would i put this code in the html?

Thanks
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 18838162
Look at my example above to see where things go...

Styles go in the head section, calls to styles in the body.
0
 

Author Comment

by:JasonGrote
ID: 18852900
Hello Experts.

It seems that I had phrased my question incorrectly for what I was actually trying to do

What I am actually trying to figure out is how to create an external style sheet in dreamweaver MX

Thank you
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 50 total points
ID: 18854327
Create a new document with the CSS extension: styles.css for example.

Assuming the css file is in the same directory at the web page, the following goes into the <head></head> section:

<link href="styles.css" rel="stylesheet" type="text/css" />
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question