Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Newbie: class inside class leads to undesired results
 

WillemB




quote this post edit post

IP Loged report this post

Old Post  06-23-04 - 12:23 AM  
Hi,

I've run into a little problem, I'm hoping someone can help me out. I'm
learning a bit of CSS through modifying my TikiWiki website
(www.tikiwiki.org) and this is the problem: whenever I'm adding a new
paragraph heading in my text through the editor (which is part of TikiWiki),
the 'titlebar' class is used to format this section. When I enclose a
hyperlink inside this paragraph heading, it overwrites part of the titlebar
class with the 'wiki' class. This leads to an undesirable effect: text in a
paragraph heading is white, but gets overwritten to black. I cannot change
the 'wiki' class, because normal text (thus outside a paragraph heading)
requires hyperlinks to be in black. The ideal solution would be something
along the lines of "when hyperlink is part of paragraph heading, do not use
the wiki class / use color: white". Is it possible to create such an IF
clause or is there another work-around? I'm afraid CSS is still a bit too
complex for me to comprehend and I don't think complex rewriting of TikiWiki
is part of my abilities either...

Regards,
WillemB

-----------------------------------
div.titlebar {
background-color: #9cba00;
color: white;
border: 1px solid #84aa00;
padding-left: 2px;
padding-right: 1px;
padding-top: 1px;
padding-bottom: 1px;
clear: both;
font-weight: bold;
}

.wiki {
color: black;
}




Post Follow-Up to this message ]
Re: Newbie: class inside class leads to undesired results
 

Els




quote this post edit post

IP Loged report this post

Old Post  06-23-04 - 12:23 AM  
WillemB wrote:

> The ideal solution would be something along the
> lines of "when hyperlink is part of paragraph heading, do
> not use the wiki class / use color: white". Is it possible
> to create such an IF clause or is there another
> work-around?

> -----------------------------------
> div.titlebar {
>         background-color: #9cba00;
>         color: white;
>         border: 1px solid #84aa00;
>         padding-left: 2px;
>         padding-right: 1px;
>         padding-top: 1px;
>         padding-bottom: 1px;
>         clear: both;
>         font-weight: bold;
> }
>
> .wiki {
>         color: black;
> }

Adding
div.titlebar .wiki {color:white;}
should do what you want.

div.titlebar .wiki means: any element with class="wiki" which
is inside a div element with class="titlebar".

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Post Follow-Up to this message ]
Re: Newbie: class inside class leads to undesired results
 

WillemB




quote this post edit post

IP Loged report this post

Old Post  06-23-04 - 12:15 PM  
"Els" <els.aNOSPAM@tiscali.nl> wrote in message
news:Xns9510F21078519Els@130.133.1.4...
> Adding
> div.titlebar .wiki {color:white;}
> should do what you want.
>
> div.titlebar .wiki means: any element with class="wiki" which
> is inside a div element with class="titlebar".

Thank you so much Els, that was exactly what I needed. I will keep this in
mind, I'm sure it will come in handy again!

Regards,
WillemB




Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 04:13 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top