styling

Google Custom Search (CSEv2) help on styling?

泄露秘密 提交于 2019-11-28 11:17:11
I need help on styling the Google Custom Search Box (not the results) Old styles were using the form tags, where you could easily style the look & feel of the search box. <form action="/search" id="searchbox_abc:123" class="search"> <input type="hidden" name="cx" value="abc:12"> <input type="hidden" name="cof" value="FORID:XX"> <input type="text" name="q" size="16" class="smalltext"> <input type="submit" name="sa" value="SEARCH" class="smalltext"> </form> With the new CSEv2 code, it is contained in script tags: <script> (function() { var cx = 'abc:123'; var gcse = document.createElement(

Create a System-tray styled box in Winforms (C#)

与世无争的帅哥 提交于 2019-11-28 08:49:24
I've been hunting about for some resources on this, and I can't find any, so I'll bring in here. I want to make a window similar in style to the quick launch box which you see when you open the quick launch bar: Example Window http://img63.imageshack.us/img63/6204/volcontrolstyleguide.png Sadly, I can't find any resources on this; can you help me out? It's quite simple. Create a new form, and set ControlBox , MaximizeBox , and MinimizeBox properties to false . Set the Title property to an empty string. This will effectively eliminate the the nonclient title bar area, giving you this: The the

WPF RichTextBox Syntax Highlighting Issue

懵懂的女人 提交于 2019-11-28 08:48:19
Hello everyone I've been working on a WPF application that has a text editor this text editor should apply some styling or colorizing over some tokens (keywords) to highlight it and make it obvious,,, the problem is i tried very very hard but i still get the same result which is when the user enters one of the keywords the whole text after that keyword is being styled ! just imagine if you types the " string " keyword in " C# " the whole text after it will be colored blue. this was the code i used: static List<string> tags = new List<string>(); static List<char> specials = new List<char>();

How do you set the style for a JavaFX ContextMenu using css?

怎甘沉沦 提交于 2019-11-28 08:27:36
I am trying to change the style of a ContextMenu item using a seperate CSS file. I looked at the caspian.css section and found the following definitions: .context-menu .context-menu .separator .context-menu .scroll-arrow .context-menu .scroll-arrow:hover .context-menu:show-mnemonics .mnemonic-underline I copied those over exactly to my css file and changed just the background color values as a test: .context-menu { -fx-skin: "com.sun.javafx.scene.control.skin.ContextMenuSkin"; -fx-background-color: #006699; -fx-background-insets: 0, 1, 2; -fx-background-radius: 0 6 6 6, 0 5 5 5, 0 4 4 4; /*

WPF, XAML: How to style a ListBoxItem using binding on property of ListBox ItemsSource object?

让人想犯罪 __ 提交于 2019-11-28 07:34:08
I have a ListBox which is bound to ObservableCollection of LogMessages. public ObservableCollection<LogMessage> LogMessages { get; set; } public LogMessageData() { this.LogMessages = new ObservableCollection<LogMessage>(); } Each Message has two parameters: public class LogMessage { public string Msg { get; set; } public int Severity { get; set; } //code cut... } ListBox is getting filled with those Items, and I need to color-code (change a background color of ListBoxItem ) list depending on a Severity parameter of a LogMessage item. Here's what I have now in XAML of user control showing the

Shadow DOM styling from the outside

99封情书 提交于 2019-11-28 07:13:43
问题 I am searching a way to styling shadow DOM from the outside. For example, I would like to set the color of all text in all 'span.special' elements as RED. Including 'span.special' elements from shadow DOM. How I can do this? Previously there were ::shadow pseudo-element and /deep/ combinator aka >>> for this purpose. So I could write something like span.special, *::shadow span.special { color: red } But now ::shadow , /deep/ and >>> are deprecated. So, what do we have as a replacement of them

css alignment question

假装没事ソ 提交于 2019-11-28 06:10:39
问题 I'm having trouble with getting unordered lists aligned how I want them to. Here's an image of what I'm looking to achieve. How can I get it to look like the version on the right? I will have between 1 and 6 unordered lists depending on the page, so I need a generic solution. Here's a stripped down version of the css and html I'm using: CSS: body { margin: 50px auto; width: 500px; } ul { float:left; margin: 0 20px 20px 0; padding: 0; width: 200px; } li { background: #ddd; list-style: none;

textarea's rows, and cols attribute in CSS

狂风中的少年 提交于 2019-11-28 03:37:10
I'd like to set the textarea 's rows and cols attributes via CSS. How would I do this in CSS? width and height are used when going the css route. <!DOCTYPE html> <html> <head> <title>Setting Width and Height on Textareas</title> <style> .comments { width: 300px; height: 75px } </style> </head> <body> <textarea class="comments"></textarea> </body> </html> user2928048 <textarea rows="4" cols="50"></textarea> It is equivalent to: textarea { height: 4em; width: 50em; } where 1em is equivalent to the current font size, thus make the text area 50 chars wide. see here . I don't think you can. I

How to style editable circle controls in Google Maps

允我心安 提交于 2019-11-28 01:33:10
Does anyone know of an easy way to style the user controls (white dots on the bouns of the radius) for the editable circles in Google Maps? I cant find any way of doing this in the API documentation. At the very least it would be great to have the dots on a lower zindex than my pin but modify the zindex options of both has no results. I'm afraid you can't. The API provides no control over those handles, and since the circles live inside a canvas, there's no easy way to identify the element in order to style it. Edit: You can declare your circle as non-editable and allow edits only on mouseover

Does anyone know how to add superscripts in the option tag of <select>

风格不统一 提交于 2019-11-28 01:24:53
Does anyone know how to add superscripts in the option tag of <select name=" "> <option value=" ">24<sup>th</sup></option> </select> If your users have the appropriate fonts ( here's a list), you can use the Unicode superscript characters: <select name=" "> <option value=" ">24ᵗʰ</option> </select> If you set the document encoding to UTF-8 or use unicode escapes you could use Unicode superscripts for this, e.g.: <option>25ᵗʰ</option> However, this may not display properly at all in some fonts or browsers and generally isn't as nice-looking as using the HTML/CSS superscript functionality. For