Solved

CSS possible in layers in dreamweaver MX?

Posted on 2007-03-27
9
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…

734 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