This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > css applies to an item I don't want it to.....
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
css applies to an item I don't want it to.....
|
|
| Simonbullen 2006-02-12, 6:30 pm |
| hi there, on my intranet page I have various CSS styles applied via a linked
style sheet. Also on my page I have calendar pop-ups to enter dates in my form
fields, now, the problem is that the popup is picking up styles from the style
sheet and popping up way out of the way to where I want it to be.... my
initial thought was to apply a style to the pop up, but it is generated by a
linked. js file, so i'm a bit lost as to how to solve my issue..... any ideas
please..?
many thanks
| |
| Simonbullen 2006-02-12, 6:33 pm |
| :confused;
| |
|
|
|
|
| Donna Casey 2006-02-12, 6:34 pm |
| Simonbullen wrote:
> hi there, on my intranet page I have various CSS styles applied via a linked
> style sheet. Also on my page I have calendar pop-ups to enter dates in my form
> fields, now, the problem is that the popup is picking up styles from the style
> sheet and popping up way out of the way to where I want it to be.... my
> initial thought was to apply a style to the pop up, but it is generated by a
> linked. js file, so i'm a bit lost as to how to solve my issue..... any ideas
> please..?
chances are that you are approaching your css without using contextual
styles... for example, defining the size of text or the color of it in a
paragraph by defining the properties and values used by the selector:
p {property:value}
rather than confining those properties and values to a selector in a
SPECIFIC container, as in
#sidebar p {property:value}
which would limit the effects of the rule to only paragraphs that appear
in the #sidebar and would never (for example) affect paragraphs in a
container #calendar
HTH
:D
| |
| Simonbullen 2006-02-12, 6:34 pm |
| Donna, thank you very much for that very useful response
I understand what you are saying, upon my return to work tommorow I shall have
a play, and I hope you wouldn't mind If i have any further questions
thanks again
| |
| Simonbullen 2006-02-12, 6:34 pm |
| Murray, thanks for the replies, sorry I didn't post any code, I felt it
wouldn't help as the object that is inheriting the style is created from
Javascript, so really all I could post is my style sheet, and I wasn't sure if
it would help atall on its own
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|