FrankR
Posts: 154
|
| Posted: 10/03/2006, 11:52 AM |
|
I have a project with a default style.
I have several pages in the project using that default style.
I have a page with several sections/panels. I needed to color some of the sections blue - the default line color of the default style - and some orange.
- I went into the Style builder, made a copy of the default style, and changed the colors.
- I added the second style to the project - now I have 2, the default blue style, and the orange style.
Went back to my multi-section page. Pointed at a panel/section, and changed the style of that to the Orange one. What did it do?
- It did change the selected section/panel to the new orange style, but ...
- It also half changed the style of all other panels on the page - to line color = orange, but button color = default blue.
_________________
FR |
 |
 |
wkempees
Posts: 1679
|
| Posted: 10/03/2006, 2:22 PM |
|
This could be triggered by several causes, most of them (if not all) are CSS and not CCS problems.
You could be victim of an inheritence problem, where one style is partly inherited from another.
Then again it could be the way you are addressing the various colorings.
But do not despair, you do not really need two styles, you just need to add a few new classes to the one existing style, to color a specific item (like a panel).
Also inline styles are available, giving you the opportunity to override parts of your deisgn.
3.1 gives you the ability to easily and extra tags in the HTML and fill those with clever stuff.
All in all, the use of two styles (at the same time) would lead to problems.
The ability to add several style to a project is targeted at dynamic style changing, which in itself work ok.
Hope this helps and if you need some more pointers, do ask.
Walter
(PS did you or did you not yet dare to install 3.1, with regards to your two week completion schedule)
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
peterr
Posts: 5971
|
| Posted: 10/03/2006, 2:28 PM |
|
A panel itself is not an HTML element and a style cannot be applied to a panel. Therefore possibly it was applied to the whole page.
General note: mixing multiple styles on a page can be complex and unpredictable, mainly because of the cascading nature of the styles (CSS = Cascading Style Sheets), and different rendering by different Web browsers. CCS Help also states "it is recommended to use only one style per page to simplify the HTML and assure cross-browser compatibility. "
What you try to do may be doable by an experienced Web designer, while you may need to know some HTML and CSS internals, and analyze what's happening on a page. It looks to me like the cascading nature of styles is taking effect, but maybe this is something else and/or simple to resolve. For example you could try manually applying a style to <DIV> section in HTML.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
peterr
Posts: 5971
|
| Posted: 10/03/2006, 2:32 PM |
|
Quote wkempees:3.1 gives you the ability to easily and extra tags in the HTML and fill those with clever stuff.
I suspect that in Frank's case the two CSS styles are static and can be just plugged into the HTML, keeping in mind the above notes.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
FrankR
Posts: 154
|
| Posted: 10/03/2006, 2:46 PM |
|
Quote peterr:
A panel itself is not an HTML element and a style cannot be applied to a panel.
It's not strictly a Panel, but it's whatever CCS uses as the container of a grid, or editable record, etc. I don't remember what html element CCS uses for that, and I just shut down, but whatever that is, CCS is allowing me to select it and apply a style to it.
After seeing the behavior, I went, one container/panel at a time, and applied either my default blue style or my orange style. That *solved* it, although, I don't know what nightmares lurk under the covers now.
Should I not have done that?
[I'm really trying to avoid, at all costs, hand coding html. Not because it's hard, because it's not, but because we just don't like doing things that way here. I have written many .NET web apps, and I haven't had a need to tweak one line of html. I'd like to continue on that course at all possible, while still having the ability to Color a section of a webform.]
_________________
FR |
 |
 |
peterr
Posts: 5971
|
| Posted: 10/03/2006, 3:30 PM |
|
Quote :but whatever that is, CCS is allowing me to select it and apply a style to it.
I think that this could be a part of the problem We had many discussions about whether to support muliple styles on a page or not. We've finally decided to allow this, while including a note in CCS Help that it is not recommended.
The support for multiple styles on a page was better in previous versions of CCS up to 2.x, but then the HTML and CSS was more complex and not really cascading, and more people complained and didn't like it. You can still try that feature by enabling "Themes" in Project Settings -> Styles.
Quote :Should I not have done that?
You probably should.
Quote :I'm really trying to avoid, at all costs, hand coding html.
Understand. Although you also have to consider HTML and CSS limitations. Any tools and solutions that allow more styling flexibility must by default create more complex CSS, sometimes similar to the disliked CCS Themes and often much more complicated.
Though also keep in mind that CCS cannot compete with Web editors, while CCS Style Builder is a wizard feature designed only to streamline the Web design process and supports only certain common style elements. Web designers will continue using DreamWeaver and hand-coding to polish up their designs to achieve most flexible and professional results.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|