help - Adding (drawn) layer to existing style sheet

help - Adding (drawn) layer to existing style sheet

Post by DZ-01 » Mon, 27 Feb 2006 02:04:59


I, being relatively new to dreamweaver, am attempting to lay out a website with
CSS. I made the first page using layers and local CSS, and then exported the
CSS data to an exterior file which I then used to creat the rest of the pages
on the site.

Now I'm in a bit of a jam... I know how to edit an existing style element,
and even how to add a new style which I can then apply to something on a
page...

What I don't know: How do I add a new layer to that exterior style sheet?
Preferably by drawing the layer, as that will make layout easy.

Thanks a ton!

Chris
 
 
 

help - Adding (drawn) layer to existing style sheet

Post by DZ-01 » Mon, 27 Feb 2006 02:24:54

I, being relatively new to dreamweaver, am attempting to lay out a website with
CSS. Now I'm in a bit of a jam... How do I add a new layer to that exterior
style sheet? Preferably by drawing the layer, as that will make layout easy,
but any suggestion will help me at this point!

Thanks a ton!

 
 
 

help - Adding (drawn) layer to existing style sheet

Post by Murray *TM » Mon, 27 Feb 2006 02:26:46

> lay out a website with CSS

Good.


Bad. That's not using CSS to build a page. That's using CSS to get
yourself into deep water.


Yes - and you will pay a heavy price too. Go here and follow the
directions -

http://www.yqcomputer.com/

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.yqcomputer.com/ - Template Triage!
http://www.yqcomputer.com/ , Tutorials & Resources
http://www.yqcomputer.com/ - DW FAQs, Tutorials & Resources
http://www.yqcomputer.com/ (MM) Technotes
==================
 
 
 

help - Adding (drawn) layer to existing style sheet

Post by DZ-01 » Mon, 27 Feb 2006 02:43:23

fair enough... layers are a bad idea for bodies of text. Are they still a bad
idea for pictures and menu bars? (that's what I'm using them for... though,
yes, my footer will be text, it will be a single short string of text... I can
hopefully build a layer loose enough to get me through ok...) The answer may
be yes - I'm not begging the question.

I just want to know how to add a new element to a css sheet so it will appear
on every page. If that way doesn't use layers... well... I guess I'll just
have to survive somehow. ;-)

Thanks!
 
 
 

help - Adding (drawn) layer to existing style sheet

Post by Murray *TM » Mon, 27 Feb 2006 02:52:02

> Are they still a bad

Yes, in this sense. You fill your page with oodles of extra (and
unnecessary) code when you rely on absolute positioning when you could have
just used static elements with margins and floats.


When you draw a layer on the page, the styles get written into the head of
the page. Copy them, and paste them into your external stylesheet. You
would copy the selector and the rule only, e.g.,

#layer230 { position:absolute;... }

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.yqcomputer.com/ - Template Triage!
http://www.yqcomputer.com/ , Tutorials & Resources
http://www.yqcomputer.com/ - DW FAQs, Tutorials & Resources
http://www.yqcomputer.com/ (MM) Technotes
==================
 
 
 

help - Adding (drawn) layer to existing style sheet

Post by Murray *TM » Mon, 27 Feb 2006 02:52:36

Oh, yeah - then you would delete the style rule from the current page's
head.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.yqcomputer.com/ - Template Triage!
http://www.yqcomputer.com/ , Tutorials & Resources
http://www.yqcomputer.com/ - DW FAQs, Tutorials & Resources
http://www.yqcomputer.com/ (MM) Technotes
==================
 
 
 

help - Adding (drawn) layer to existing style sheet

Post by DZ-01 » Mon, 27 Feb 2006 03:14:23

You mentioned "static elements with margins and floats" I'm not sure what you
are talking about here - but if there is something that is a better way of
doing what I'm doing, I'd love to learn!

Is there a tutorial out there you can point me to...? Or perhaps just
introduce me to the overarching title of what you are talking about - what I
can google to find out more.
 
 
 

help - Adding (drawn) layer to existing style sheet

Post by Murray *TM » Mon, 27 Feb 2006 03:35:43

Google "normal flow" (start with the maxdesign link close to the bottom of
the page) and "float" and "float meyer". That will lead you through the
looking glass!

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.yqcomputer.com/ - Template Triage!
http://www.yqcomputer.com/ , Tutorials & Resources
http://www.yqcomputer.com/ - DW FAQs, Tutorials & Resources
http://www.yqcomputer.com/ (MM) Technotes
==================
 
 
 

help - Adding (drawn) layer to existing style sheet

Post by Tim » Mon, 27 Feb 2006 04:55:21


When are you going to write a nice tutorial on floats, Murray?

:)

I have that little tutorial on positioning which references your example
page:

http://www.yqcomputer.com/

... but it would sure be nice to link to a good, easy-to-read tut on floats.

Hmmm?

tim