multiple css files, is it possible to 'unset' a style? multiple css files, is it possible to 'unset' a style?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

multiple css files, is it possible to 'unset' a style?

Started by imrich, January 20, 2007, 08:29:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

imrich

I'm looking for some guidance.

I'm not a CSS expert and feel I only grasp some basics so I'm looking to someone with more knowledge to guide me or point at some places that may have documentation which will help.

I've put together a community site which combines Joomla!, SMF and Coppermine.

All seems to work fairly well even in concert with one another.

I have SMF bridged to Joomla!
And Coppermine (with Stramm's modpack) bridged to Joomla!

I have some themes/templates which seem to work well together (IMHO).

However there is a bit of theme (or templates, depending on your point of view) interaction.

For example, when I use Coppermine in stand alone mode, all is fine.
But when I use it in conjunction with Joomla! some CSS interactions occur.  One example is in my logo header.  In the current theme, there is a .jpg logo which is in a <TD> which has align set to LEFT.  There also is a H1 and H3 which has its align set to RIGHT.  However it appears that all the aligns are set to LEFT when I use this theme in conjunction with Joomla!'s CSS. Another problem is that thumbnails and intermediate images are also LEFT aligned instead of CENTER aligned.

I did a quick work around to set the overall <TD>'s text align to CENTER. This solved most of my formatting with both of my text and image align issues. However when I started to try to do further work to solve the individual CSS issues, I couldn't find what was overriding my text and image attributes and causing everything to be LEFT aligned.

Can someone give me a clue as to where and what to look for?

My thoughts are that some overall style default has been changed, so that now a lot of aligns are setup to be LEFT instead of their default values.

Is it possible to 'unset' some style values so that they will take on their 'normal' default values, or is there a default setting?  If neither, is there a list of what default values are so I can go and set them back to the defaults for the affected style elements?

I may be even asking the wrong questions. Am I on the right track? Any guidance would be appreciated.

Thanks!

Gizmo

Coppermine, SMF and Joomla all have their own themes and css style sheets, correct? If not, that should be the case for Coppermine and SMF but I don't know Joomla so I can't comment any further on it. When you are viewing the gallery, it should use it's own style sheet and when you are viewing SMF, it should be using it's own style sheet. My guess is that you have all three linking to the same style sheet even though they have their own separate installations.

<link rel="stylesheet" href="themes/your_theme/style.css" type="text/css" />

If you want to run off one css sheet, you will have to give each style it's own property which can be quite a large file for all 3 installations. I recommend that you keep them separate for sanity reasons. If you need further help with Coppermine, please post a link to your gallery.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

imrich

Thanks for your reply and hints.

Yes, each application has it's own style sheet.

Each app runs under the Joomla Framework.

My coppermine looks pretty good now that I forced a 'center' in the TD tag of my coppermine theme's .css file, but there still are things that are not correct. I expect that this was not the proper correction to make. But it made the size close to being correct.

May I PM you with the URL? I can't edit these messages after they are posted.

Any help or guidance you could provide would be very welcome.

Thanks again.
Rich