How can I use RJS to modify CSS elements on a page? I'm looking to do modify the margin of a div to add a "margin-top: 2.8em;"
How can I access this with RJS or should i use something like
page << "document.getElementById('super-wrap').style.margin-top='2.8em;';"
Though this doesn't work.
Thanks
...
What's your feeling about those two?
...
I need to represent a toggle button in HTML. My intention is to do it with a normal input submit button and styling. Any recommendations on how to style a toggle button that is understandable and works more or less in all browsers?
...
When it comes to UI design I generally don't care to do custom styling (appearance-wise), I'm not much of an artist and I hate trying to come up with interesting color schemes and the like. Are there any online repositories of premade WPF styles and/or control templates? I could have sworn I saw one before but I can't find it now, it mig...
I have a style for a textblock that is set inside my app.xaml this is then applied to textblocked through out my application and works fine.
However i get an error: "could not create instance of type" if i apply this style to a textblock within my user control, how come this is a problem?
<UserControl x:Class="Client.Usercontrols.MyBut...
Hi,
I'm extending the available WPF's TreeView control.
I wish to add to it CheckBox behavior like Josh Smith has suggested.
My goal is to encapsulate all checkbox behavior concerns from the end user (which is a different approach of what josh Smith has done).
I would like to use a style for the TreeViewItem in order to add some prope...
Hi guys
I have a series of table cells that I am trying to set the height of. It all seems to work well but unfortunately Firefox adds on the borders to the overall height where as the other browsers seem not to.
Hence I was wondering if anyone knows of a jquery function/plugin that will set the height consistently between browsers r...
Hi,
I'm trying to align some text to the center of the page rather than the default left but can't seem to do this using the 'EmptyDataRowStyle' tag.
I have an EmptyDataText="No data" tag in my gridview which works. I have changed the style at the bottom of the gridview (as shown below) and the Font-Size="12px" Font-Names="Verdana" tag...
Is it possible to add a style trigger in WPF to a Button to determine whether or not the ContextMenu has opened?
If so, I'd like to color the background of the corresponding button if the contextmenu is opened.
Can't find a regular way to do it...
...
I am using Stripes and jQuery along with a generated jQuery UI theme. I want to embed a <stripes:form> in a div, then style the <stripes:button> for the submit with one of the icons from the theme.
This Works: (but obviously doesn't tie in to Stripes)
<button id="save" class="ui-state-default ui-corner-all">
<span class="ui-icon u...
I have a whole bunch of code that is dependent on the ComboBox type, and I want to be able to use it on a new UI, but the UI that I want to use it for needs to look like a RadioButton for usability reasons. Is it possible to have a ComboBox control look like a set of RadioButtons?
...
I have two side borders on my website, left and right side... small image about 15x15 which repeats itself down the website... When setting 100% like below, the border only goes "one screen" down (which is 100%). But my website is dynamic and the content changes... I want the border to change along with the total height of the page...
H...
we have big application on the site and we have few links, which are lets say blue color like the blue links on this site. now i want to make some other links, but with lighter color, obviously i can just do simply by the hex code adding in the css file, but our site let user decide what colors they want for there customized profile/sit...
During a code review, a senior dev commented on some nesting I had going on in my code. He suggested I set a bool value so that I never have more than one level of nesting. I think my code is more readable but want to get other devs' opinion on this. Which is better style? Is his knee-jerk aversion to nesting founded?
Below are some...
Most C++ class method signatures are duplicated between the declaration normally in a header files and the definition in the source files in the code I have read. I find this repetition undesirable and code written this way suffers from poor locality of reference. For instance, the methods in source files often reference instance variabl...
Hello; I have a listbox that displays a number of usercontrols that are bound to my questions. this is working fine, however i don't want each of the items in the listbox to be selectable, as such i created a blank style and applied it to the ItemContainerStyle. This has resulted in my content to disappear and each item is showing blank....
Hi
I have a span with the following style:
margin: 5px 0;
padding: 2px;
cursor: pointer;
display: block;
width:100%;
background-color:Blue;
This works fine with IE6, IE7, FF3 and Chrome, but in IE8 the cursor is changed only in the parts of the span that have text (in other browsers the whole span has the cursor changed).
Any idea o...
I'm looking for a way to define new BibTeX style or to customize existing one. I have two reasons for this:
I want the author names/editors to be italic (for articles in book, book, magazines, encyclopedia etc)
I want numbers at the beginning
Example:
Secondname, B. Book title. Place Year. Site number.
Article author, A. Article ti...
When creating a Style, is it possible to set the ControlTemplate property to a previously defined resource? For example, if I had the following in a ResourceDictionary:
<ControlTemplate x:Key="MyControlTemplate" TargetType="{x:Type Button}">
...
</ControlTemplate>
And then later wanted to use it in a Style like this:
<Style x:Key="M...
Do you write comments in 2nd or 3rd person?
// go somewhere and do something (2nd person comment)
or
// goes somewhere and does something (3rd person comment)
...