|
Posted by brm6546545 on 04/19/07 20:53
On Apr 19, 2:54 pm, Desmond <otuat...@aol.com> wrote:
> On 19 Apr, 19:28, russell.allbrit...@gmail.com wrote:
>
> > I am developing a custom content management solution for a client. I
> > was wondering if there was a way to allow them to maintain a style
> > sheet that would only affect only a certain DIV. I know you could make
> > the div a class or make my style sheet take precedence, but they could
> > still affect anything I haven't implicitly defined in my style sheet.
> > I'm no so worried about them intentionally changing anything but they
> > could accidentally affect other parts of the page unknowingly
>
> > any ideas?
>
> This is easy every DIV can have it's own style. A dive will have a
> unique ID
>
> <head>
> <LINK href="holclub.css" type=text/css rel=stylesheet>
> </head>
>
> <DIV id=PageContent>
>
> *** In the style sheet ****
>
> #PageContent
> {
> position:absolute;
> font-family:verdana,helvetica,arial;
> font-size: 14px;
> position:absolute;
> left:150px;
> width:600px;
> top: 106px;
> height:360px;
> border-width: 0px;
> border-style:solid;
> margin-top:5px;
> margin-left:5px;
>
> }
>
> Hope this helps.
> Dssmond.
I know how IDs and classes work. but i guess i would like a style
sheet to be edited by the user that cannot affect any other items on
the page
example if the user sets
table{
border:solid 5px red;
}
it will not affect any of my tables just tables within thier DIV
I know they could do
#PageContent table{
border:solid 5px red;
}
but i don't want to give them the ability to mess up anything outside
there "box"
Navigation:
[Reply to this message]
|