|
Posted by Desmond on 04/19/07 19:54
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.
Navigation:
[Reply to this message]
|