This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > May 2005 > CSS - inheriting attribute





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSS - inheriting attribute
Barry Brindisi

2005-05-31, 7:23 pm

I was just looking over the CSS portion of my codes and notice quite a
number of repetitiveness. No problem, I am already looking to move
these to the mainstyle.css document.

My question is this. The stuff that is repetitive are the CSS
controlling the graphics. The items that are not always the same and I'd
like some leeway on, is the stuff controlling the text - margins,
paddings, and font size.

Can I have something like this in the mainstyle.css:

#rightmiddle {
background: url(images/RMidBoxa.gif) repeat-y;
width: 358px;
padding: 0px;
min-height: 300px;

And the following in the HTML page:

#rightmiddle dl{
font-size: 13px;
padding: 2px 5px 3px 25px;
margin-left: 5px;
#rightmiddle p {
margin-bottom: 0;
font-size: 11px;
padding-left: 20px;
margin-top: 4px;
margin-left: 10px;
#rightmiddle h5 {
margin-bottom: 0;
font-size: 12px;

As you can see, I am using a variety of settings to redefine each HTML
tag. My suspicion is, I should be able to. Are there any problems with
this type approach.

Inheriting attribute is something I'm still seeking to learn. :) I only
have MX and not 2004.
Murray *TMM*

2005-05-31, 7:23 pm

Should work OK - just make sure your syntax is correct (what you show below
is not).

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

"Barry Brindisi" <nbbrindisi@comcast.net> wrote in message
news:d7idcc$2ri$1@forums.macromedia.com...
>I was just looking over the CSS portion of my codes and notice quite a
>number of repetitiveness. No problem, I am already looking to move these
>to the mainstyle.css document.
>
> My question is this. The stuff that is repetitive are the CSS controlling
> the graphics. The items that are not always the same and I'd like some
> leeway on, is the stuff controlling the text - margins, paddings, and font
> size.
>
> Can I have something like this in the mainstyle.css:
>
> #rightmiddle {
> background: url(images/RMidBoxa.gif) repeat-y;
> width: 358px;
> padding: 0px;
> min-height: 300px;
>
> And the following in the HTML page:
>
> #rightmiddle dl{
> font-size: 13px;
> padding: 2px 5px 3px 25px;
> margin-left: 5px;
> #rightmiddle p {
> margin-bottom: 0;
> font-size: 11px;
> padding-left: 20px;
> margin-top: 4px;
> margin-left: 10px;
> #rightmiddle h5 {
> margin-bottom: 0;
> font-size: 12px;
>
> As you can see, I am using a variety of settings to redefine each HTML
> tag. My suspicion is, I should be able to. Are there any problems with
> this type approach.
>
> Inheriting attribute is something I'm still seeking to learn. :) I only
> have MX and not 2004.



Barry Brindisi

2005-05-31, 7:23 pm

What is wrong with the syntax? I simply copied & pasted the codes from
the two files.

Murray *TMM* wrote:
> Should work OK - just make sure your syntax is correct (what you show below
> is not).
>

Murray *TMM*

2005-05-31, 7:23 pm

There are missing braces at the end of each rule.

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

"Barry Brindisi" <nbbrindisi@comcast.net> wrote in message
news:d7ie31$2ri$2@forums.macromedia.com...[color=darkred]
> What is wrong with the syntax? I simply copied & pasted the codes from the
> two files.
>
> Murray *TMM* wrote:


Barry Brindisi

2005-05-31, 7:23 pm

Are you referring to the missing closing bace "}"? I saw it.

Barry Brindisi wrote:[color=darkred]
> What is wrong with the syntax? I simply copied & pasted the codes from
> the two files.
>
> Murray *TMM* wrote:
>
Barry Brindisi

2005-05-31, 7:23 pm

Got to love this! :-) It seems we wrote and posted at the same time. You
beat me to the punch. :)

Barry Brindisi wrote:[color=darkred]
> Are you referring to the missing closing bace "}"? I saw it.
>
> Barry Brindisi wrote:
>
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews