styling

general style & CSS support in Silverlight

I have several Silverlight component which are going to be used inside the browser, is it possible to pass the styling from the page to the Silverlight components? I'm aware of 'initParams' in Silverlight and how these could be used to do this, but what I wanted to know is there any support for CSS and what is the preferred way to do st...

How do I change the backcolor of a textbox when user clicks into it with CSS

Question is in the subject. ...

Style the MouseOver on a Silverlight/WPF button

Struggling with styling the mouse over for a button ... I have managed to style the button (solid red), but I would like for it to change to solid black whenever a mouse over occurs. I am new to XAML, and I can see that it wants some type of story board/animation ... not sure exactly how to do this. Any help would be greatly appreciated...

Remove ExtJS Styling

I need to remove styling fron HTML I insert into a fieldset/panel. I recall reading somewhere (in one of the newer releases) that ExtJS provides this features, but I need it for an older release. Has anybody implemented this capability/feature - specifically for ExtJS - or have a suggestion that will work for ExtJS? Thanks. ...

WPF Listbox - Empty List Display Message

Can anyone suggest the best way to display a Textblock (with a text such as "List Empty") so that it's visibility is bound to the Items.Count. I have tried the following code and can't get it to work, so think that I must be doing it wrong. <ListBox x:Name="lstItems" ItemsSource="{Binding ListItems}"> </ListBox> <T...

WPF - ListBox ignores Style When ItemsSource is bound

Hi, I have created styled a ListBox in WPF so that it is rendered as a checkbox list. When I populate the ListBox's items manually, the styling works perfectly. However, when I instead bind the ItemsSource of the ListBox to a static resource (an ItemsControl containing the required items), the styling is completely dropped. Here's the...

Cross Browser input field width stylization

Hi, I have a shipping/billing input form and I'm having trouble styling the input fields to be the same width... The Problem: -a field <input type="text" size="X" /> appears to render with different sizes in different browsers (see link). -In addition, select fields seem to render on a differently as well. -Chrome/safari do not seem to...

CSS, DIV and H1

I'm using a template and the titles are inside a div. I want to apply h1 to the title but it goes bad (the div is styled with css, and there is no styling for h1) Normally this is what it is: <div class="content-pagetitle">Title</div> I'm changing to: <div class="content-pagetitle"><h1>Title</h1></div> But it goes bad. I tryed to...

Flex styling/adding filters to labels of tabs in a tabnavigator.

Using Flex 3 Is it possible to add a dropshadow filter to 1. Texts of labels of all of tabs in a TabNavigator? 2. Text of the label of an individual tab in a TabNavigator? Also, is it possible to specify filters(like Drop shadow filter) in CSS style? ...

Styling a textarea with JavaScript

Hi guys! I'm absolutely new to JavaScript and would like to modify a textarea of a form (which is generated by an external script) as follows: 1.) Textarea on start: Labeled 'Your message here' in color 'rgb(136, 136, 136)' 2.) Textarea on focus: Label removed and color set to 'rgb(0, 0, 0)' 3.) Textarea on blur: Color of user input s...

Asp menu control formatting sitemapnode

I'm trying to figured out how to separately format sitemapnodes which do not have a URL associated. Here's a code example: <siteMapNode title="TheThingIWantFormattedSeparately"> <siteMapNode url="~/pages/customer.aspx" title="Customer"/> <siteMapNode url="~/pages/contract.aspx" title="Contract"/> So I'm wanting the FIRST sit...

What is the best approach towards styling GWT applications?

General approach in GWT is to use Panels and then apply custom CSS themes to get a customized look. While I can achieve a certain extent of personalization of my GWT app through CSS tinkering, I was wondering how others generally approach styling. Some of the suggestions I came across the web were to manage layout with plain HTML, throu...

How to properly align textboxes on a webpage with labels

Hi, this is a CSS / design question. I have three textboxes that i want to be center aligned on a web page. Then i want a label description to the right of each one. When i use attribute like text:align:centre because the labels are of different length it throws out the aligment of the textboxes [see image link below] http://www.media...

Styling individual radio buttons in drupal form

I have this group of radio buttons in which each of individual button has of its own position set through style attribute. I would like to how can I archive the same by using drupal form api. I found how to style as whole but, not as individual control within group. Here's how my html code look like - <input type="radio" name="base_loc...

Styling WPF Toolkit DataGrid Column Headers

Hi, I'm having an issue styling the WPF Datagrid, I've styled the column headers (of type ColumnHeader). But when the data in the columns does not fill the full width of the grid an additional column is added to pad out the grid. This column ignores the ColumnHeader style and looks out of place presumably because the element has a d...

Preserving CSS styles with Javascript

Hey guys, I have a web service where people can edit their pages CSS, but I have a bar on the footer of that page that I want to make consistend on every page... People are, right now, able to "remove" it with CSS and I really didn't want to go and parse the CSS to remove rules related to that bar... Is there a way to preserve the styl...

Selections and radioing - JavaScript

I have a list like this: <ul> <li id="adm-thumb" onclick="javascript:addBanner('bowling.jpg');"> <div class="adm-tick"></div> <img src="img/banners/bowling.jpg" /></li> <li id="adm-thumb" onclick="javascript:addBanner('kcc.jpg');"> <div class="adm-tick"></div> <img src="img/banners/kcc.jpg" /></li> ...

How do I change text color on the selected row inside a ListView/GridView? (using Expression Dark theme)

I'm using theExpression Dark WPF Theme(http://wpfthemes.codeplex.com/) with a ListView(view property set to a GridView) to display some user data like the following : <ListView Grid.Row="1" ItemsSource="{Binding RegisteredUsers}" SelectedItem="{Binding SelectedUser}" > <ListView.View> <GridView> ...

How to replicate the styling of html heading tags

Can anyone tell me how to replicate the styling of a <h3> tag using CSS? ...

WPF - How to style the menu control to remove the left margin?

I have added a default menu control to my user control. I need to style the menu to remove the left margin containing the space for the icon or checkbox. How can I do this? XAML: <Menu> <MenuItem Header="MyMenu" FontSize="10"> <MenuItem Header="Options..." /> <MenuItem Header="About" /> </MenuItem> </Menu> ...