This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2005 > Re: easy CSS question





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 Re: easy CSS question
Murray *TMM*

2005-03-17, 6:32 pm

And the question?

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

"Brian" <brian@agilitygraphics.com> wrote in message
news:d1cdfi$4oa$1@forums.macromedia.com...
>I have the following style for most of the text on my site.
>
> .bodyText01Bold {
> font-family: Arial, Helvetica, sans-serif;
> font-size: 12px;
> font-style: normal;
> line-height: 15.5px;
> font-weight: bold;
> font-variant: normal;
> text-transform: none;
> color: #666666;
> }
> .bodyText01 a:link {
> color: #666666;
> }
> .bodyText01 a:hover {
> color: #999999;
> }
> .bodyText01 a:active {
> color: #666666;
> }



Murray *TMM*

2005-03-17, 6:34 pm

Add to the stylesheet -

td .bodyText01Bold { padding-top:4px; padding-right:4px; }

and this will add that padding ONLY to text styled this way that is in a
<td>.

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

"Brian" <brian@agilitygraphics.com> wrote in message
news:d1cedq$68u$2@forums.macromedia.com...
> So it did it again. If you read this, the CSS I am talking about is in the
> previous post.
>
> This is the continuation of the previous qestion.
>
> I now want to add space to the top and right hand side of text styled with
> that css, but only in certain instances. So I want to write a new style
> that can be applied on top of the .bodyText01Bold. My question is, how
> would I do this. The text to be styled, will be in table cells. Could I
> apply .bodyText01Bold to the table and then apply the new style for the
> space only to the table cell? What is the trick with inheritance(is it
> even called that?). I also heard that some of the CSS to add space has
> problems with certain browsers?
>
> Thanks for the help!
> Brian
>
>



Brian

2005-03-17, 6:35 pm

Thank you, Murray!
Is there a way to add it only sometimes and not other times, regardless
of it being in a table cell or not?

Thanks,
Brian

Sponsored Links


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