Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CSS possible in layers in dreamweaver MX?

Posted on 2007-03-27
9
Medium Priority
?
215 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
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

 

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 200 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

Hire Technology Freelancers with Gigs

Work with 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.

Question has a verified solution.

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

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 …
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

730 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