Solved

CSS possible in layers in dreamweaver MX?

Posted on 2007-03-27
9
206 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now