style

WPF: Restyle all controls with scroll bars

How can I change the style -ONCE- for the scrollbars shown by all controls (listbox, treeview, scrollbarviewer, richtextbox, etc...)? ...

Possible to access default styles

Somewhere I read that ExpressionBlend can create copies of the default style of a wpf control for the developer to edit. However, VisualStudio can not. (At least I haven't found a way...) Is it possible to access/view the default styles (and templates) of wpf controls. A Gui would be nice, but a (web)-resource to view the styles would ...

jquery ui style customization

how do i change the tab size, font size etc for my jquery accordion? ...

How many problems are in the following date parsing routines that come from a real-world project?

These methods are laughably stupid, IMO, but I want to get a feel for what other developers think of such code. Criticisms may include technical and stylistic errors. Corrections may use anything from Apache commons-lang, such as StringUtils, DateUtils, etc, as well as anything in Java 5. The code is intended for a web application, if th...

style a form (select) using javascript, no framework?

anyone know how i can style a form element with javascript, but without a framework? Found a nice plugin for jquery but I don't use jquery at all on my website so I want to avoid it if possible.. I want to create a select box that looks like this: http://iforce.co.nz/i/qebncmoz.png to clarify, i want to set an image/background on the...

toggle button pressed color

hi, i am using toggle buttons in my application, i would like to set the backgound-color when the button is pressed. how can i know what is the proper attribute? and in general is there any place that i can know which CSS attribute has which effect on the HTML element? thanks ...

CSS has no effect on dynamic classes

$('fieldset.one label, fieldset.two label').each(function () { var className = $(this).text().trim().toLowerCase(); $(this).addClass('default ' + className); }); I'm adding classes dynamically to label elements, but when I try to style them, there is no effect. One of them has .sedan class added automatically, I see it in fireb...

Is there a way to set the minHeight of the scroll bar thumb in Flex 3

In my project we needed to make the scollbars look like Windows scrollbars. Therefore I have a thumbIcon on the thumb of a vertical scrollbar, but if I get too many items in the combobox, the scrollbar gets fiddly. This is because the margin between the thumbIcon and the border of the thumbSkin is too small. Is there a way to set the m...

Android: view/ drawable custom styles possible?

What I'd like to do is change the state (really, the background) of an EditText to reflect validity of its contents. E.g. if the user enters 999 where 999 is contextually invalid, the EditText should have a red border in place of the default orange border, likewise once the text is valid it should have a green border. Methods I've expl...

Diffrent style for first three rows of WPF ListView

I want the top three items in my ListView to have special style. How can i achieve this? I have tried this but item is always null: if (tracklistQueue.Items.Count > 0) { ListViewItem item = (ListViewItem)tracklistQueue.ItemContainerGenerator.ContainerFromIndex(0); it...

How to select nth line of text (CSS/JS)

How to select and apply style on a specific line of text? Like the CSS pseudo-element :first-line, but I want to select any line, not limited to the first. It seems that it can't be done by using only CSS... Anyway I don't mind a JS solution. Update: Well, actually it's only for interest. I'm trying to achieve something like highli...

Where should I deallocate memory within functions?

I'm writing a shell in C. While I don't expect many other people to use it, I'd like to practice writing maintainable and well-organized code. I've noticed the following pattern in a number of my functions, so before it solidifies, I'd like it to be fully vetted. As an example, consider the following function: int foo(int param...) {...

WPF - Change a style in code behind

I have a list box that displays the results of a TFS Query. I want to change the style of the ListBoxItem in the code behind to have the columns that are included in the query results. The style for the ListBoxItem is defined in my Windows.Resoruces Section. I have tried this: public T GetQueryResultsElement<T>(string name) where T :...

When should a C function return newly allocated memory?

In a response elsewhere, I found the following snippet: In general it is nicer in C to have the caller allocate memory, not the callee - hence why strcpy is a "nicer" function, in my opinion, than strdup. I can see how this is a valid pattern, but why might it be considered nicer? Are there advantages to following this patter...

heroku css stylesheet won't display

hi i have just deployed my rails application but the css stylesheet wont appear I'm calling the stylesheet as follows: <%= stylesheet_link_tag 'layout' %> thnx in advance ...

How to style UITextView with a 3D shadowed border?

In another post, luvieere shared a means by which rounded corners can be applied to a text view using the QuartzCore framework (see post). It would seem to me that a 3D border, like that found on a UITextField, could be created via layers instead of using a background image. Does anyone know if or how this can be done? I'd really like ...

CSS Selector Style

I didn't see anything on here about it with a quick search, if there is let me know. Here is an example of a CSS selector I'd write. div#container div#h h1 { /* styles */ } div#container div#h ul#navi { /* styles */ } div#container div#h ul#navi li.selected { /* styles */ } I write all my CSS like. This allows me to stop from having ...

CSS if statement question

What is the syntax if I want to load a css file in my website with if statement. Situation is like this. If ie6 I will load ie6_style.css and if ie7, mozilla, or new browsers, I will load style.css ...

How to change the style of Title attribute inside the anchor tag?

Example: <a href="example.com" title="My site"> Link </a> How do I change the "title" attribute. By default, it just has yellow background and small font. I would like to make it bigger and change background color. [edit] Is there CSS setting for the title attribute? ...

A random call for a style.css action, which doesn't exist - Why?

My error logger has logged an error recently that just boggles me. Here's a copy'n paste of the error: A public action method 'style.css' could not be found on controller 'ProductController'. So I ran a search over the entire solution for references to style.css. There are none, and I have no stylesheet named style.css. The c...