style

MFC feature pack - How to get the font, style and size using CMFCPropertyGridProperty::GetValue

Hi All, By using CMFCPropertyGridProperty::GetValue I'm able to get the contents of the property grid. I have one property though that gets the font, where when you click on it, shows a dialog box to select the font, size and style. Using this code: CMFCPropertyGridProperty* pCurSel = m_wndPropList.GetCurSel(); CString test = pCurSe...

HR tag renders white pixel

In IE8 and mozilla 3.5 theres an white pixel to the right. How can i get rid of that? Seting background-color changes nothing. neither does width. hr { border-top: 1px solid #111; border-bottom: 1px solid #444; } This is how it looks right now Thanks alot! ...

OOP style question

Right now I'm writing a program that will determine the value of a hand of cards. five in total. i have a cardHand object. I'm planning to write an object that compares two objects together in order to determine which hand has a higher value. the two objects that will be compared are objects that contain the possible hand values (one pai...

css in Google Earth plugin

Hello just wondering if it is possible to style a pop-up balloon via an external/linked .css file, rather than inline styles ? thanks in advance ! .k ...

Styling Divs with Javascript Vars

Hi, I'm doing a little experiment trying to randomly place images inside a div using a javascript loop. I've been having some trouble with it. Here's what I have (simplified): for(var i = 0; i < 10; i++) { var top = random(-20, 20); var left = random(-20, 20); document.write( <div class="one" style="\"left:" + left + ";\""> <img...

In a wpf TextBox can i make characters in a string that exceed a a certain length turn red?

Im using a TextBox control and want the characters to turn red after a certain number of characters to show users they have typed too much. I dont want to truncate as the user might have typed that "really important thought" and if i truncated they would lose it. I have validation on my underlying business model which tells me when the i...

XSLT Stylesheet: Changing text to upper case

I am using an XSLT stylesheet to create an Excel document from an XML file. One of the values that I am pulling in I want to display as upper case. How is this possible? ...

How to expand the drop down items

Hi friends, How to expand drop down list (listed items). I cant able to view the listed items in IE while i restricted the size of the drop down list. Please run this code in IE and other browsers - u can see the difference <html><body><select style='width:20px;'><option>sdfffffffffffffffffffffffffffffffffffffff</option><option>sdffff...

Allow user to change the web page font sizes - ASP.Net

I want to provide a feature on my website to let users increase and decrease the font size by clicking on some stuff (like + and - image etc). However I also want: make sure that when the font size is increased, my website layout doesn't get messed up test the scenario out on my machine to make sure about the point above I think what...

LaTeX report chapter styles

How do I change chapter styles in LaTeX report class? I have found something about \makechapterstyle, but it doesn't seem to work on reports (or at least it doesn't work on my report :-) ) I'm prety sure there must be some way to change this. I know that LaTeX is not much of programming, but i dont't know any better place to ask this. ...

Bold part of an option in a drop down list

Is there a way to bold only part of the text in a drop down list option or is this not possible? I know that you can style the entire option with CSS, but that is not what I am looking for. And HTML inside of an option tag does not render. Here would be an example of a drop down list item: SomeID - Description of ID ...

No Magento Header & Custom Navigation

I can't seem to figure out how to disable the header as a whole. I have installed the blank theme, and have been playing in the page XML, but to no avail. I also cannot seem to switch from 2columns-right to 2columns-left, even though i've run searches for every damn file that includes the phrase and swapped it. I'm wondering if it's just...

Full-bleed background videos?

I'm wondering if anyone has thought about or come across any realistic methods for providing a full bleed background VIDEO to a site, without resulting in the site being dead slow. Ideally I don't want to have to use Flash. And By full bleed I mean from edge to edge of the screen, like a desktop wallpaper. ...

CSS - Easy Way to Change Style of Cents in Money Text

I have a label (literal, whatever), that is being filled with currency ($5000.00). Is there an easy way to style the cents, like make the font-size smaller. I know I can split the two up, but I am using MVP, and am looking for an easy way than passing all these new properties to the control (4+ of these labels are present). Open to an...

XamlParseException - Invalid attribute value (...) for property Property

I'm having some trouble styling a custom control that I built. Here's the control source: namespace SilverlightStyleTest { public class AnotherControl: TextBox { public string MyProperty { get; set; } } } In the same namespace & project I try to create a style with a setter for MyProperty like so: <UserControl x:...

How to get a div to resize its height to fit container?

How can I get the div nav to have expand down or have the height the same as it's parent div (container)? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Style-Type" content="tex...

In WPF, how do I give my custom control a default style to be used in Design Mode?

I have created a custom WPF control. The control acts as a container with various regions (so it can work like a master page). The style for this control is loaded at runtime from a separate resource dictionary as follows: <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> ...

Function name for creating something if it's not there yet

From time to time I write a function that just creates something if it's not there yet and otherwise does nothing. Names like CreateFooIfNecessary() or EnsureThereIsAFoo() do work but they feel a bit clumsy. One could also say GetFoo() but that name doesn't really imply that foo may be created first and it only works if the function r...

DIV identified by WebDevToolbar isnt in file?

I'm trying to use Magento for my shopping cart and want to switch from a right col layout to left col. I've turned on ID/CLASS display on the Web Developer Toolbar in firefox, and am seeing ".main col2-right-layout", which i believe i must switch to ".main col2-left-layout", the alternate style is predefined. but running searches for fil...

UINavigationBar tintColor does not always propagate to UIBarButtonItem objects

Greetings! I have set my UINavigationBar's barStyle to UIBarStyleBlack, and the tintColor to a color (other than black so as to get the color/gradient going). That much works well. Now ... let's say I push a new view controller onto the nav controller stack. In this particular VC, I want the nav bar to turn black, but only within this V...