You are here: Re: Applying a style sheet only to a single div « HTML « IT news, forums, messages
Re: Applying a style sheet only to a single div

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация