style

HTML to CSS Menu style conversion required

I am not good with CSS... TAKE A LOOK AT THIS jsFiddle i am trying to convert this into a CSS Horizontal Menu... like THIS CSS VERTICAL MENU but i am failing... please F1! F1! F1! ...

css a:link style text and images

I've got a quick css questions that bugging me, and I can't seem to figure out right now. I've styled the links on my page to have a bottom border on on hover, but it the bottom border is appearing on image that have links as well and I can't figure out how to keep the border from appearing on the images. Here is what I currently have....

What are some things to consider when letting other sites use scripts directly from your site?

I have a jQuery function that runs through the page, finds links to a certain domain, does an ajax call to get some data and crafts a tooltip when the visitor hovers their mouse over the link. Just like wowhead.com/tooltips. What are some things to consider when allowing other sites to include your script files, linked directly from you...

set background color of all textboxes (input fields) to transparent

I am upgrading part of a very old website. One of the pages that I own uses controls and dlls that I do not. There is one dll that puts a textbox (input field) on the page. This field is concepually a label but the person chose to use a textbox. Anyways, I can't change the dll. Is there a way in my asp.net page that uses the dll to say ...

To use layout_marginLeft in a button style applied as a theme?

Hi, I used an attribute layout_marginLeft="30dip" in a style defined for buttons. When I apply this style individually for each button, the left margin is placed as I wanted. But then I defined another style inheritting from theme. In this style, I assigned my button style to the attribute android:buttonStyle and applied this as theme. ...

WPF Chart Legend Item Style

Hello, I am trying to style the Legend Items in my WPF Chart. I have the following LegendStyle, but this doesn't change anything. What am I doing wrong? Thanks! <Style x:Key="LegendStyle1" TargetType="{x:Type datavis:Legend}"> <Setter Property="ItemContainerStyle"> <Setter.Value> <Style TargetType="charting:Leg...

Size the DIV to the size of the background image

Hi, I have a DIV with the following style .vplayer-container .logo { position: absolute; bottom: 50px; right: 10px; background: url(../img/logo.png) no-repeat; border: 1px solid #000000; max-width: 50px; max-height: 50px; } I want that the DIV size is the same as the background image. Since the bg image change, I want it to be ...

jQuery modal dialog using different styles?

When we display our grid (jqGrid) in a jQuery modal dialog it uses different styles (font size specifically) versus the grid displayed on our main screen. Any ideas why? ...

WPF Webbrowser Theme

I have a WPF usercontrol that is hosting the Webbrowser. The usercontrol is placed on a WPF Window. When I run the application (IDE or compiled), and display the following HTML inside the webbrowser: <INPUT TYPE=Button>Button</INPUT> The button has the 'ugly' Windows 2000 look. Even though I run with Win7 Aero, and the rest of my appli...

wpf apply staticresouce based upon data

How can I apply a static resource by name based upon data? I know that I can write a data trigger for styling properties, but I want to apply an entire style based upon bound data. Ex: if (condition) CellValuePresenterStyle="{StaticResource OptionalFieldCellPresenter}" else CellValuePresenterStyle="{StaticResource RequiredFieldCellPres...

Delphi: Maintainability Virtual vs Virtual Abstract

I was writing a bunch of code a few months ago and now I'm adding stuff to it. I realized I wrote a bunch of functions that descend from a class that has about 2/3rds of its functions abstract and the remaining 1/3rd virtual. I'm pretty much sick of seeing: function descendent.doSomething() : TList; begin inherited; end; when I...

Using JavaScript (jQuery), how can I cycle through all 'a' tags on a page, one at a time, and assign an individual style to each?

Let me try to explain... Lets say I have the following 'a' tags on a page: <a href="img1.jpg" class="myClass" alt="0,0,600,200"></a> <a href="img2.jpg" class="myClass" alt="200,0,600,75"></a> <a href="img3.jpg" class="myClass" alt="275,0,600,200"></a> <a href="img4.jpg" class="myClass" alt="475,0,600,50"></a> <a href="img5.jpg" class="m...

changing style causes ParserError

When i try to change the style of my SMFPlayer at runtime it throws this error Error: Unhandled Error in Silverlight Application Code: 2531 Category: ParserError Message: Failed to assign to property 'Microsoft.SilverlightMediaFramework.Core.BitrateGraphControl.AvailableBitrates'. the only change i made in the style was changing th...

Datagrid checkbox styling

Hello First sorry for my english. I have started recently my first project on wpf. I´m styling a custom DataGrid who have been defined programatically (the xaml code doesn´t exists). I have styled all that i need in my datagrid control except a checkbox that i wrapped inside. The problem is that in other place of my application i defined...

Android: Preference Style

I have made a custom preference (i.e. a preference with a custom layout) which displayed in the preferences list of a PreferenceActivity. The layout is created in code. The problem is that the font of the TextView created in code looks somewhat different than Android's standard preference font. So the solution would be to apply the s...

change url links on document load

i have this js bookmarklet that makes all the current page's font colors black. what i wanted is to maintein the effect of the bookmarklet even clicking on the page's links javascript:( function(){ var newSS, styles='* { color: black !important }'; if(document.createStyleSheet) { document.createStyleSheet("javascript:'"+styles+"'"...

Why does my WPF GroupBox looks so weird ?

I have no style set anywhere in my application! UPDATE: ...

Remove specific inline style with jquery

There's an asp menu I'm using that is auto inserting style="width:3px;" into my menu table tds creating a nasty gab in between my tabs. I'm testing to remove this inline style with jquery instead of our developer customizing the menu just for this cosmetic blemish. below is a simple example: <table border="1" cellspacing="0" cellpaddin...

Explicit DataGrid CellStyle Setter is overridden by an implicit cellstyle in the same context!

I have a weird issue with DataGrid in WPFToolkit (.NET 3.5) and the built in version in .NET 4.0: When creating a keyed DataGrid-style with an explicit setter for CellStyle to another keyed style it works as suspected. But when also creating an keyless style for DataGridCell it will override the explicit CellStyle-setter in the DataGrid...

WPF: Setting Foreground of a Label inside a TabItem Header using styles

Hello, I have a TabControl which looks like this: <TabControl> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <Canvas ... /> <Label>Tab Number 1</Label> </StackPanel> </TabItem.Header> </TabItem> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> ...