473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

asp.net pages not taking style formatting from themes

I have a themes css file that has the following settings:

..leftpane
{
color:Navy;
font-family: Verdana;
background-color: #ccffcc;
font-size: small;
width: 81px;
padding-left: 2px;
}

..mainpane
{
padding-left: 50px;

I am trying to get my asp.net pages to take the width and padding-left
settings from the css file and they don't work. I have the class tags in my
masterpage.
<tr>
<td class="leftpane" >
leftpane</td>
<td class="mainpane">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</td>
If I enter the style="width: 81px" and style="padding-left: 20px" padding in
masterpage it works, but not through css. I'm I missing something?

thanks
Nick
Mar 27 '06 #1
2 1109
May be you try to put something before " .leftpane " such as td.leftpane
Hope this will help you.
"Nick" wrote:
I have a themes css file that has the following settings:

.leftpane
{
color:Navy;
font-family: Verdana;
background-color: #ccffcc;
font-size: small;
width: 81px;
padding-left: 2px;
}

.mainpane
{
padding-left: 50px;

I am trying to get my asp.net pages to take the width and padding-left
settings from the css file and they don't work. I have the class tags in my
masterpage.
<tr>
<td class="leftpane" >
leftpane</td>
<td class="mainpane">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</td>
If I enter the style="width: 81px" and style="padding-left: 20px" padding in
masterpage it works, but not through css. I'm I missing something?

thanks
Nick

Mar 28 '06 #2
Thanks, that worked. By the way, why did I need that "td." in my css file?
I also noticed that I didn't need to define my class with "td.", I just
simple said class=mainpane and it worked. Thanks again.

nick

"subasa" wrote:
May be you try to put something before " .leftpane " such as td.leftpane
Hope this will help you.
"Nick" wrote:
I have a themes css file that has the following settings:

.leftpane
{
color:Navy;
font-family: Verdana;
background-color: #ccffcc;
font-size: small;
width: 81px;
padding-left: 2px;
}

.mainpane
{
padding-left: 50px;

I am trying to get my asp.net pages to take the width and padding-left
settings from the css file and they don't work. I have the class tags in my
masterpage.
<tr>
<td class="leftpane" >
leftpane</td>
<td class="mainpane">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</td>
If I enter the style="width: 81px" and style="padding-left: 20px" padding in
masterpage it works, but not through css. I'm I missing something?

thanks
Nick

Mar 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ryan Ternier | last post by:
I have just started playing around with ASP.NET 2.0 and have a few questions I couldn't get answers to on the net. If anyone could help me with these it'd be awesome. --- Themes - THey seem to...
1
by: Griff | last post by:
We're replacing a CLASSIC ASP application. In this application, we presented a dialogue box that allowed end users to specify exactly how they wanted their screen to look. So, they could set...
3
by: johannblake | last post by:
I'm reading up on Themes and Master Pages in ASP.NET 2.0 but I cannot seem to understand what the difference between the two are. Do Master Pages essentially end up doing what Themes do? Is...
1
by: sbelgrave | last post by:
First off. Hats off to MS to really doing a good job of major fixes on VS 2K5. It is really a lot better. I have begun using Master Pages with Themes but am a bit confused as to how to make the...
1
by: mscertified | last post by:
Can anyone explain how references to style sheets work, I've exhausted looking in help, its all so confusing. I have three style sheets in my project under 'Style Sheets'. Only the first style...
4
by: cmay | last post by:
It seems that when you are creating a page that uses a Master Page, there is no place to put a style block w/o VS.Net saying that you are putting in an incorrect tag. Where should a style block...
6
by: Just Me | last post by:
When using master pages, how can I get an external style sheet applied to the specific page and still see the effects at design time. I want to have a generic style sheet and specific ones for each...
0
by: =?Utf-8?B?Q2hyaXN0b3BoZXI=?= | last post by:
We have a web product built on ASP.NET v2.0 which we are preparing a release on ASP.NET v3.5 Many of our customers have added custom pages inside our product (which we call Modules) built on...
0
by: =?Utf-8?B?Q2hyaXN0b3BoZXI=?= | last post by:
We have a web product built on ASP.NET v2.0 which we are preparing a release on ASP.NET v3.5 Many of our customers have added custom pages inside our product (which we call Modules) built on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.