FAQ Database Discussion Community


Multiple white space in html

html,styles,whitespace
I would like to ensure that my chords above words are separated nicely by multiple white space. The issue is that when I use pre, it comes out pre-formatted and hence not what I wanted. Also, with  , the code looks very ugly. What is the best method to solve...

IPAD Mini - IOS 7.0 - Double Select Box Overlap

css,layout,styles,ipad-mini
I have two select boxes as show on the image above. Now the issue is that when I click on the year field, the month field is still being triggered. Seemed like the area for the first select box is too wide or there is some kind of overlap....

Applying some styles to control

java,android,xml,styles
As you know in html/css you may apply some classes (and hence some styles) to the tag. It is cery convenient and i would like to have tgis opportunity in android development. Is there a way to apply some styles to one control?

WPF add new Slider style cause XamlParseException

wpf,slider,styles
i found this slider style that i want to add. i added all the 3 styles inside my Window.Resources and also put in the first style the 2 templates: <Style TargetType="{x:Type Slider}"> <Setter Property="FocusVisualStyle" Value="{StaticResource MyFocusVisualStyte}" /> <Setter Property="SnapsToDevicePixels" Value="true" /> <Setter Property="OverridesDefaultStyle" Value="true" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type...

ExtJS: displayfield with same style as textfield

css,extjs,styles
I'm using xtype displayfield for fields which act as link and displayfield renders html ok. It works fine. I would like to use a same style for displayfield as for textfield (especially because of border). Could you tell me the simplest way to achieve it? I've tried fieldCls, baseCls etc....

How to make both ListViewItem's template style and ListView.ItemTemplate working?

wpf,xaml,listview,styles
I have the code below in my App.xaml. I override the template to make the background stays the same as transparent when I click/hover on a ListViewItem. <Style TargetType="{x:Type ListViewItem}"> <Setter Property="Background" Value="Transparent" /> <Setter Property="Height" Value="{StaticResource RowHeight}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListViewItem}"> <Border BorderBrush="Transparent" BorderThickness="0" Background="{TemplateBinding Background}">...

Style div display table-row can be styled or not

html,css,html5,css3,styles
I have a CSS table using divs only, I need to set style to the div ROW like this: <div style="display:table;width:100%;height:80px"> <div style="display:table-row;width:100%;height:80px; background:#333"> <div style="display:table-cell;width:200px;height:auto"> 1 </div> <div style="display:table-cell;width:auto; height:auto"> 2 </div> <div style="display:table-cell;width:200px;height:auto"> 3 </div> </div> more rows and tds in CSS </div> Questions: 1.- because div display...

Android - Send email with styled HTML

android,html,colors,styles
I get a server response which provides us with HTML to be sent via gmail. This works fine on the iOS counterpart of the app, however the text just comes out as plain text in the Android application. Here is an example part of the response we get: <html> <p...

Inserting google map's script into html webpage

javascript,html,css,html5,styles
I was asked to edit webpage for my friend. I am not an IT specialist or computer master, but I can do some edits in html, php and js. I am trying to add the google's map script to this webpage, you can find the code here: http://pastebin.com/UDNZ4F4r. The thing...

Scala “Sentence-Like” Function Definition [duplicate]

function,scala,styles
This question already has an answer here: When to use parenthesis in Scala infix notation 4 answers I am refactoring some code and wanted to learn how Scala methods are written so that they can be written like: foo = Map("Hello" -> 1) foo contains "Hello" where "contains" is...

How to change window style/theme in c++

c++,user-interface,styles,window,themes
I need an approach how to customize the window style like Steam or Spotify. I don't want to have the boring Windows (or any other OS) look. Can that be done with Qt or the WinApi? Do I need DirectX or OpenGL for doing that? Best Regards...

Changing styles in Word using vba

styles,word-vba
I am very new to programming, so forgive my ignorance. I am trying to create specific headings in a document that does not have any or has different heading styles assigned. What precedes the text in the headings are numbers. The numbers are specific and essentially represent the content of...

Jssor slider variable width based on window width

css,slider,styles,width,jssor
It is possible to change slides to fixed width based on window size (media queries)? I don't want it to scale or be in percetange, just fixed width depending on window size. For example something like this @media screen and (min-width: 320px) { .slides { width: 200px; } } @media...

How do I apply CSS style to ASCII character

html,css,styles,ascii,weight
I'd like to reduce the weight of a my ascii degree character &deg; in my html document. Does anybody know how? HTML: <html> <body> <table> <tr> <td> <div style="position:absolute; top: 70; right: 0;"> 72 <span>&deg;</span> F </div> </td> </tr> </table> </body> </html> CSS: body { height: 100%; font-weight: 400; color:...

How to add css class to style.css?

jquery,css,styles
I have this code by helping of skobaljic which add title to class in div $(document).on('ready', function() { $("[title*='animotion']").addClass(function(){ $(this).parent().css('overflow','visible'); return $(this).attr('title'); }).removeAttr('title'); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <p><img src="http://placehold.it/350x150" title="animotion newClass new1" /></p> How to add these new classes to style.css with jQuery?...

Edit Style Attribute of every div in a list

javascript,html,css,styles
I'm trying to write a script to help out a colourblind friend of mine. He's on a page laid out like this: <div class="message-pane-wrapper candy-has-subject"> <ul class="message-pane"> <li><div style="color:#700400"></div></li> <!-- many more li items --> </ul> </div> What I'm trying to do is use JavaScript to change all of the...

No resource found that matches the given name '@android:style/Widget.AppCompat.Light.ActionBar.Solid.Inverse'

android,xml,styles,android-manifest
Sorry for my english. I try change action bar collor. And i have this error: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/ Widget.AppCompat.Light.ActionBar.Solid.Inverse'. I have minSdkVersion = 12 style.xml <resources xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> <style name="MyTheme" parent="@android:style/Theme.Holo.Light"> <item name="android:actionBarStyle">@style/MyActionBar</item>...

Base.Widget.AppCompat.Button vs Widget.AppCompat.Button

android,styles,appcompat
I´m Using AppCompat 22.1.1 What´s the difference between Base.Widget.AppCompat.Buttonand Widget.AppCompat.Button ?...

No Parenthesis in Rails - Good Style? [closed]

ruby-on-rails,ruby,styles
When I first started with ruby/rails and noticed that you don't need to put parenthesis, I recall thinking "no way I'll do that!". But now I kind of like it. So the question is, is that good style? Or should I stick to using parenthesis? Thanks....

Constructing book cover using div and CSS

html,css,styles
Is it possible to use some divs and css to make a book cover like the one below(ignore the orange background) with editable titles, most the book covers I checked online don't look like this. I know am probably asking a lot but I would really appreciate any help on...

Getting currently active menu title in wordpress

php,wordpress,menu,styles
I need to get currently active menu item (menu title like Home, About us, etc..) on each page in wordpress. I am using wordpress codes to display menu & it displayed correctly. Code is shown below, $menu_name = 'primary'; if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name...

Styling Javafx with CSS

java,css,user-interface,javafx,styles
I have been working with javafx lately, and have started to work on styling the form. I have created a program that would create a weak encryption for your text, it isn't totaly done. Here is the java code - public class encryption extends Application { private static StringBuffer password;...

How to set minimum height of row in prawn Table cell

ruby-on-rails,ruby,styles,prawn
I can set height for row. But it is fixed height. if content increases height does not increase automatically. just clip extra content. Here is my code. how can i set default height 20 not fixed height pdf.table([applicant_data], :cell_style => { :inline_format => true, :padding => [3, 3,3,3], :size =>...

WPF: why my slider not show the minimum value on my label

wpf,slider,styles
<Grid Margin="405,192,170,450" > <Slider Name="speedSlider" Value="1" Style="{StaticResource SliderStyle}" HorizontalAlignment="Left" VerticalAlignment="Bottom" Minimum="0" Maximum=" 50" TickFrequency="5" TickPlacement="None" Width="160"/> <Label Name="lblSliderSpeed" Content="{Binding ElementName=speedSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" ContentStringFormat="{}{0:#}"/> </Grid> My label show the current slide...

The position of int main() function [closed]

c++,function,styles,main,writing
I know that it's possible to write a code in that way: void foo() {...} void bar() {...} string qix(){...} int main() { //functions calling } And also it's possible to write the same like: /* function's prototypes here*/ int main() { //functions calling } void foo() {...} void bar()...

how to remove blank space from web page? [duplicate]

html,css,css3,styles
This question already has an answer here: HTML: white space around elements, how to remove? 2 answers I Have one Problem by web page design.can't remove this space from page! by this style: <body> <div style="width:100%;" > ss </div> please see this picture of my page: ...