style

WPF Ribbon: full re-templating support

Hi all, does exist any WPF ribbon control (commercial or not) that support full re-templating? Generally they have a number of built-in graphic themes but do not allow graphic redesign from scratch. Thanks in advance! ...

jQuery: Cannot change style of element after selected

Here is my code. Where you see "alert([...]);", an alert pops up. Why doesn't the CSS style change? The 'click' event doesn't fire either! resolveSideMenuAddress: function () { var firstLink = $("#masterHeaderMenu .masterHeaderMenuButton a:first"); function select(link) { alert('i alert'); link.css({ ...

jQuery: Setting 'style' attribute of element with object

I saw this in our codebase the other day: link.attr('style', map({ color: '#9a4d9e', cursor: 'default' })); map is defined as: function map(map) { var cssValue = []; for (var o in map) { cssValue.push(o + ':' + map[o] + ';') } return cssValue.join(';');...

Multi-layer style in Silverlight ressource

I wish to set a property the C# property of a Chart object : Chart.DefaultView.ChartArea.AxisX.DefaultLabelFormat ="dd mm aa"; but I will to do this with the styles in Silverlight : <Application.Resources> <Style x:Key="myStyle" TargetType="telerikCharting:RadChart"> ... but I cannot make a : <Setter Property="DefaultVi...

Theme the node-create and node-edit template

I'm using drupal 6. I've managed to make a .tpl file for one content type, that is for images in my image gallery. I did that by adding this code in template.php: function artbasic_theme($existing, $type, $theme, $path) { return array( 'galleryimage_node_form' => array( 'arguments' => array('form' => NULL), 'templa...

WPF Toolbar with no borders

I'm trying to style the toolbar to look like a Visual Studio panel toolbar, but I can't get rid of the round corners and overflow button. This is the code I currently have: <UserControl ...> <DockPanel> <ToolBar DockPanel.Dock="Top"> ... </ToolBar> </DockPanel> I've tried putting the toolbar inside a ToolBarTray ...

How to port Iphone style app into Android?

first, please see the blog as the link showed below: http://blogs.nitobi.com/joe/2008/10/17/phonegap-now-for-android/comment-page-1/#comment-12918 the author made iPhone Style app in Android emulator, the pic showed below: http: blogs.nitobi.com/joe/wp-content/uploads/2008/10/droidgap.png if anyone knows, Would you please tell me how...

How come this relative positioned div is displayed differently in IE?

What is with these microsoft browsers? Does microsoft ever do a good job at anything... Anyways, I have a relative positioned div inside another div. The inside-div is positioned with percentage (left: 0%; top:13%). My problem is that in all IE versions the div is displayed some pixels further down than where it is displayed in Chrome,...

Firebug kills -webkit Settings in CSS File - Why?

style.css - Original File .box { -webkit-border-radius:8px; -moz-border-radius:8px; padding:10px; } style.css - In Firebug CSS Console .box { -moz-border-radius:8px 8px 8px 8px; padding:10px; } How can I force Firebug to show my -webkit css styles as well? Thanks for your help! ...

Assigning a float to a decimal property via a style setter in WPF

I have the following xaml in a template for a lookless control: <Style x:Key="NumericUpDownStyle" TargetType="controls:NumericUpDown"> <Style.Setters> <Setter Property="Change" Value="{x:Static local:Preferences.ChangeAmount}"/> </Style.Setters> </Style> Where the 'Change' property on the 'NumericUpDown' control is a d...

Apply jquery selectbox style on chained selectbox

Hi all, I have created a pair of chained selectboxes in my page. The second selectbox is filled with a set of values, depending on the first box's selected value. The script that makes the two selectboxes work like this, uses php and javascript. This is the code I'm using: form <select name="continent" tabindex="1" onChange="get...

Javascript CSS visability.

It seems that javascript only can ready inline css if i want to check if element is display:hidden getting it with: el.style.display But how to check if display:none is placed inside external CSS file? ...

Can we change <input type="file"> style?

I tried to change the HTML form, input type file. Here is my code: HTML, form id = form <input class="upload_file" type="file" id="file" name="file" /> .CSS I tried both: .upload_button{ background: url('../images/upload_btn_bg.png') no-repeat; width: 200px; height: 40px; } #form input[type=file]{ background: url('../image...

Setting WPF control background image using styles?

Hi, I have a set of buttons inside a stack panel. I want them all to have a background image. How can i do it using styles? since i don't want to set manually the Background image for each button. Here is a code snippet: <StackPanel Orientation="Horizontal" Height="100px" VerticalAlignment="Top"> <StackPanel.Resources> ...

Internet Explorer SPAN style issue when Input button is removed

Internet Explorer does not remove the extra padding from my button when the input button is missing. The input button will sometimes be missing, because on a dynamic page the button will sometimes be hidden. See my example using Internet Explorer when viewing my demo link: http://media.apus.edu/it/evan-testing/form.htm I tested this i...

Silverlight Datagrid: Highlight an entire Column?

I have a DataGrid in my Silverlight application, and would like to "highlight" an entire column when any cell in that column is selected. E.g., given this grid (where "[ ]" represents a cell): [ ][ ][ ] [ ][ ][ ] [ ][ ][ ] If I select a cell, like this [ ][ selected ][ ] [ ][ ...

Style vs. ControlTemplate

is it possible to define resources in the style rather then using a template? <ListView.Resources > <Style TargetType="{x:Type ScrollBar}"> <Setter Property="Background" Value="Transparent" /> </Style> </ListView.Resources> How can I wrap this thing into: <Style TargetType="{x:Type ListView}...

Css For Gridview paging

Hi My question is, can I control the style of the paging element separately of top and bottom, I have set the paging to appear in both top and bottom of the gridview, and I want to see that the top pagination is little high up in the page, to do that I used the cssClass and set margin-top:20px and made the position: absolute, this does ...

javascript font size not working

why this don´t work: function rp_insertTable() { FM_log(3,"rp_insertTable() called"); var farmTable = dom.cn("table"); var ftableBody = dom.cn("tbody"); var i; var maximize = GM_getValue("Maximize_" + suffixGlobal, 0); farmTable.className = "FMtbg"; farmTable.id = "farmMachineTable"; farmTable.setAttribute('cellpadding', 2); fa...

optgroup class gets applied to all sub-options in FF, why?

I have an optgroup like this: <optgroup label="Eller välj Län" title="Eller välj Län" style="background-color:#FC9;"> <option value="Blekinge Län">Blekinge</option> <option value="Dalarna Län">Dalarna</option> <option value="Gotlands Län">Gotland</option> </optgroup> Problem is, only in Firefox, the class applies to all options i...