CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/14/2008 6:51:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 7 Views: 42 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
8 Items, 1 Pages 1 |< << Go >> >|
Ganesh@Nilgris
Asp.Net User
css style overridden2/14/2008 6:51:51 PM

0/0

 

i have a style for a div tag as content in the master page

#content
{
border:solid 1px black;
position:absolute;
width:950px;
height:540px;
padding:10px;
font:13pt verdana;
filter:
progid:DXImageTransform.Microsoft.Gradient
(GradientType=0,StartColorStr='#C0006600', EndColorStr='#A0FFCC00')
}

and i have a treeview with the following style

.leftMenuStyle
{
font-size: 13px;
font-family: Verdana;
padding: 6px;
filter:
progid:DXImageTransform.Microsoft.Gradient
(gradientType=0,startColorStr=#ffffff,endColorStr=lightblue);
}

In the design of the page i can see the treeview with the style i have given but when it is rendered the particular style is not applied to treeview

Any ideas?

 


Jai Ganesh. J , GSD ,India

Please Mark As Answer If my reply helped you.
mobfigr
Asp.Net User
Re: css style overridden2/14/2008 7:34:46 PM

0/0

There's probably a style on the container of the menu thats overriding the style you want. Try this. To see which properties are being applied to a given section of your page, use the Microsoft Developer Toolbar. This tool bar allows you to select any portion of your HTML and view styles applied to it. You can get it from here: http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en


life's 2 short, so luv the 1 u got,
cause u might get run over, or u might get shot!
Dave Sussman
Asp.Net User
Re: css style overridden2/15/2008 9:23:48 AM

0/0

Much as I love IE and the Developer Toolbar, I feel compelled to point out the Firebug add-in for FirFox is vastly superior for CSS work; the live editing of CSS and structuring of classes allows you to easily work out what styles are being applied.

d

Ganesh@Nilgris
Asp.Net User
Re: css style overridden2/15/2008 10:09:00 AM

0/0

Let us assume that "content" div tag override the individual settings of a control for eg(treeview). I want to know how to overcome this problem and get the desired result

 


Jai Ganesh. J , GSD ,India

Please Mark As Answer If my reply helped you.
Dave Sussman
Asp.Net User
Re: css style overridden2/15/2008 10:15:17 AM

0/0

There are two ways to overcome style inheritance. The first is style-rule order; rules lower in the stylehseet override rules higher up. The second is to use the !important flag, eg:

    background-color: #f000 !important;

This will force the rule, overriding any cascading rule. Most of the time you can work things so that you don't need to use !important.

These sort of problems often happen when you have master pages, where you have levels of containers, or when you're using server controls that emit mroe complex markup.

d

Ganesh@Nilgris
Asp.Net User
Re: css style overridden2/15/2008 10:24:42 AM

0/0

 

i have a "content" as i said before in the post and then i have a treeview where i have different style and a sitemap with a different in the master page.

now when i see the "default.aspx" i dont see the style being applied to "sitemap" and "treeview" control. Now what is the change i have to make

in the code posted

 


Jai Ganesh. J , GSD ,India

Please Mark As Answer If my reply helped you.
Dave Sussman
Asp.Net User
Re: css style overridden2/15/2008 10:30:43 AM

0/0

It's probably because the TreeView is a composite control; it renders a table with hyperlinks. You need to define styles that apply to the contained contents.

You might want to consider using CssAdapters (http://www.asp.net/cssadapters/) which make the TreeView render HTML that is more easily styled.

d

Ganesh@Nilgris
Asp.Net User
Re: css style overridden2/15/2008 11:04:31 AM

0/0

Dave Sussman:

There are two ways to overcome style inheritance. The first is style-rule order; rules lower in the stylehseet override rules higher up. The second is to use the !important flag, eg:

  

Can u tell me on how to lower the style rule or using "important" in the code posted , so that i get the desired reuslt. Further i dont want to use "cssfriendly"  as i dont know

how to use it to a "ajax enabled website"

Any ideas?

 


Jai Ganesh. J , GSD ,India

Please Mark As Answer If my reply helped you.
8 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
HTML & XHTML: The Definitive Guide Authors: Chuck Musciano, Bill Kennedy, Pages: 654, Published: 2007
Mastering Integrated HTML and CSS: Integrate HTML Or XHTML and Cascading Style Sheets for Best Results. Master Key Techniques and Improve Your Productivity Authors: Virginia DeBolt, Pages: 600, Published: 2007
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Beginning Web Programming with HTML, XHTML, and CSS Authors: Jon Duckett, Pages: 840, Published: 2004
Sams Teach Yourself XML in 24 Hours Authors: Michael Morrison, Charles Ashbacher, Pages: 485, Published: 2002
CSS, DHTML, & Ajax: Visual QuickStart Guide Authors: Jason Cranford Teague, Pages: 562, Published: 2007
HTML & XHTML: The Complete Reference Authors: Thomas A. Powell, Pages: 956, Published: 2003
Web Design in a Nutshell: A Desktop Quick Reference Authors: Jennifer Niederst, Jennifer Niederst Robbins, Pages: 618, Published: 2001
Easy HTML-DB Oracle Application Express: Create Dynamic Web Pages with OAE Authors: Michael Cunningham, Kent Crotty, Pages: 400, Published: 2006

Web:
Advanced CSS | custom stylesheet classes, ids, conditional style ... Adding css using the style attribute will override anything else that has been specified elsewhere. Overriding-wise, the sheet imported last will override ...
Accessibility Features of CSS CSS allows users to override author styles. This is very important to users who cannot perceive a page with the author's chosen fonts and color. ...
CSS Style Sheets This page outlines the basic Cascading Style Sheet (CSS) syntax necessary for ... And in a localized need, the inline style will override anything else. ...
How-to Override CSS? If that's the case, then styles directly in the table tags (in the HTML) should override the styles in the external css. ...
Cascading Style Sheet Frequently Asked Questions to the location of your .css style sheet. 15. How do you override the underlining of hyperlinks? CSS has the ability to explicitly control the status of ...
CSS Structure and Rules The above example has created two classes, css and html for use with HTML's .... Both author's and reader's style sheets override the browser's built-in ...
Better way to override CSS styles - Behind the Scenes Feb 11, 2007 ... My buddy, Angus Logan, reminded me that a better and really the recommended way to override CSS styles is to specify an alternate CSS file ...
Just geeks: Override any CSS style (even inline styles) no matter ... Sep 10, 2008 ... Override any CSS style (even inline styles) no matter where it is defined. Cascading Style Sheets (CSS) are very nice for formatting HTML. ...
CSS Techniques for Web Content Accessibility Guidelines 1.0 Cascading Style Sheets are defined by the W3C Recommendations "CSS Level 1" .... Using style sheets will also allow users to override author styles and ...
Override CSS Link Color? - HTML Override CSS Link Color?. Get answers to your questions in our HTML forum. ... < /style> More stuff.... With CSS' default behaviour, you'll still use ...

Videos:
tutorial for greasemonkey myspace style remover http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=51428998&blogID=276506058 This is a follow-up to the discussion over at america's mo...
myspace style remover script for greasemonkey before/after http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=51428998&blogID=276506058 This is for america's most wanted on myspace they were dis...
MODx 0.9.5 PHP Application Framework. Ajax CMS. SEO CMS MODx is an open source PHP Application Framework that helps you take control of your online content. It empowers developers and advanced users to giv...
Theme Builder Step 09 - Customizing the CSS Step 9 of the SparkWikis Theme Builder workshop illustrates how you can override the wiki's default CSS with your own custom settings.
REC #46 Cascading Style Sheets level 2 CSS2 Specification http://www.w3.org/TR/1998/REC-CSS2-19980512 : the style sheet via the "ref" attribute. * the type of style sheet being linked: "text/css". To show t...
Deus Ex Glitch On the level "Vandenburg"(i think its spelt) when you override the pressure thing.. you can keep bypassing it over and over to get infinate Skill Poi...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....




Search This Site:










master page item settings

show or hide layers with mouse hover... help!

css, theme, skin standards

changing menu item styles programatically?? menu 2.0

loosing pic on masterpage when creating a file in sub folder

masterpage that pulls content from secondlevel directory off of root traps you in that directory

treeview populatenode

alternative to frameset

footer , new plugin in asp.net 1.1

master page containing a tree view control and mapping is done in web.sitemap

i can't apply stylesheet theme to my page

generting wizard steps on demand

asp menu control - weird spacing issue

master page layout table

text character counter

description metatags in content pages

commandfield in themes

best way to display records using treeview?

the control with id 'upnlclientorders' requires a scriptmanager on the page

change menu style,

treeview and xmldocument

object expected in menu control

theme performance question

how to get background image to display on all pages

masterpage

can't call selectsinglenode on sitemap xml

problem in creating nested master page.

managing master page based on content page..

when will the treeview get updated. selected node

maximizing contentplaceholder

  Privacy | Contact Us
All Times Are GMT