Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

change text colour - white for main page - black for dialogs

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-18-2009, 09:45 PM
 
Tiretz Tiretz is offline
 

Newbie
  
Join Date: Aug 2007
Posts: 6
 

Default change text colour - white for main page - black for dialogs

Hi All,

I have a blue background. The dialog box backgrounds are white. I want to have black text in the dialog boxes and white text everywhere else (except the menus but these are handled separately).

I cant seem to do these at the same time. I dont want to change the templates as I dont want to have to go through all of the other templates to see what else appears in this spot.

I though this would have worked...

/* set the main text to white */
div,th,td,p,tt,button,select,inut,textarea {
font-family: verdana, arial, helvetica, sans-serif;
color: #ffffff;
font-size: 11px;
}

/* set all of the same withing a dialog to black */
.dialog > div,th,td,p,select,inut,textarea {
color: #000000;
}

But text that isn't in a dialog box class object is areas is turning black.

Its only the text in plain paragraphs that is a problem. The others all have their own class that I can change.

Have I got the CSS wrong?

I would appreciate any comments to point me in the right direction.


regards

Justin.
__________________
[fsc] X-Cart 4.2.0
Reply With Quote
  #2  
Old 02-19-2009, 02:00 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: change text colour - white for main page - black for dialogs

I wish your CSS were right, it will save me a lot of time

But you should write some extra characters to achieve desired effect.
Reality is cruel

Code:
.dialog > div, .dialog > th,.dialog > td, .dialog > p,.dialog > select,.dialog > input, .dialog > textarea
or even
Code:
.dialog div, .dialog th,.dialog td,.dialog p,.dialog select,.dialog input, .dialog textarea
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 02-19-2009, 02:15 PM
 
Tiretz Tiretz is offline
 

Newbie
  
Join Date: Aug 2007
Posts: 6
 

Default Re: change text colour - white for main page - black for dialogs

Hi Victor D,

Thanks for your help. It worked well.

regards

Justin.
__________________
[fsc] X-Cart 4.2.0
Reply With Quote
  #4  
Old 02-19-2009, 02:22 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: change text colour - white for main page - black for dialogs

Welcome to the X-Cart forums! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:

http://forum.x-cart.com/showthread.php?t=23970

Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your questions correctly. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:47 PM.

   

 
X-Cart forums © 2001-2020