X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   change text colour - white for main page - black for dialogs (https://forum.x-cart.com/showthread.php?t=45680)

Tiretz 02-18-2009 09:45 PM

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.

Victor D 02-19-2009 02:00 AM

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

Tiretz 02-19-2009 02:15 PM

Re: change text colour - white for main page - black for dialogs
 
Hi Victor D,

Thanks for your help. It worked well.

regards

Justin.

balinor 02-19-2009 02:22 PM

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! :)


All times are GMT -8. The time now is 12:06 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.