Post by solushunz12 on Sept 25, 2011 23:59:58 GMT -5
I have fix css file link in Master Page at <head></head> like this
<head runat="server">
<title></title>
<link rel="stylesheet" type="text/css"
href="/css/custom-theme/jquery-ui-1.8.16.custom.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/jquery.asmselect.css"
media="screen" />
<link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
The CSS which doesn't work is...
form h4 {font-size:11pt; margin-bottom:10px; width:100%; text-align:left; padding:0 0
6px 0; float:left; display:block; border-bottom:2px solid #e1e1e1;}
form label {display: inline-block; margin-right: 5px; text-align: right; width: 110px;
margin-bottom:10px; font-size:9pt;}
I found that when i run the content page.. the css above doesn't style on my element
which stay in lightbox plugin
but when i include this style in my contentpage... like this..
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
h4
{
font-size: 11pt;
margin-bottom: 10px;
width: 100%;
text-align: left;
padding: 0 0 6px 0;
float: left;
display: block;
border-bottom: 2px solid #e1e1e1;
}
label
{
display: inline-block;
margin-right: 5px;
text-align: right;
width: 110px;
margin-bottom: 10px;
font-size: 9pt;
}
</style>
</asp:Content>
The style is work..
I really want to know how to include CSS file in master page which can be work for all
other content page,
i mean i want to include CSS file only in Master page but content page also see CSS too
Web designer india,
website designer india,
<head runat="server">
<title></title>
<link rel="stylesheet" type="text/css"
href="/css/custom-theme/jquery-ui-1.8.16.custom.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/jquery.asmselect.css"
media="screen" />
<link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
The CSS which doesn't work is...
form h4 {font-size:11pt; margin-bottom:10px; width:100%; text-align:left; padding:0 0
6px 0; float:left; display:block; border-bottom:2px solid #e1e1e1;}
form label {display: inline-block; margin-right: 5px; text-align: right; width: 110px;
margin-bottom:10px; font-size:9pt;}
I found that when i run the content page.. the css above doesn't style on my element
which stay in lightbox plugin
but when i include this style in my contentpage... like this..
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
h4
{
font-size: 11pt;
margin-bottom: 10px;
width: 100%;
text-align: left;
padding: 0 0 6px 0;
float: left;
display: block;
border-bottom: 2px solid #e1e1e1;
}
label
{
display: inline-block;
margin-right: 5px;
text-align: right;
width: 110px;
margin-bottom: 10px;
font-size: 9pt;
}
</style>
</asp:Content>
The style is work..
I really want to know how to include CSS file in master page which can be work for all
other content page,
i mean i want to include CSS file only in Master page but content page also see CSS too
Web designer india,
website designer india,