Questions tagged [styling]

styling is the process of binding visual metadata to a document

styling rules can be defined within the document or via an external stylesheet. Here are some relevant questions:

2630 questions
1066
votes
40 answers

Use jQuery to hide a DIV when the user clicks outside of it

I am using this code: $('body').click(function() { $('.form_wrapper').hide(); }); $('.form_wrapper').click(function(event){ event.stopPropagation(); }); And this HTML:
Scott Yu - builds stuff
  • 11,673
  • 8
  • 42
  • 55
179
votes
5 answers

textarea's rows, and cols attribute in CSS

I'd like to set the textarea's rows and cols attributes via CSS. How would I do this in CSS?
ASD
  • 4,747
  • 10
  • 36
  • 56
123
votes
4 answers

How can I style an Android Switch?

The switch widget introduced in API 14 is styled by default with holo theme. I want to style it slightly different, changing its colors and shape a bit for branding reasons. How does one go about this? I know it must be possible, as ive seen the…
Glenn.nz
  • 2,261
  • 2
  • 17
  • 20
100
votes
6 answers

Horizontal scroll on overflow of table

I have a basic table in a container. The table will have about 25 columns. I am trying to add a horizontal scroll bar on overflow of the table and am having a really tough time. What is happening now, is the table cells are accommodating the cells…
AnchovyLegend
  • 12,139
  • 38
  • 147
  • 231
96
votes
4 answers

Line break (like
) using only css

Is it possible in pure css, that is without adding additional html tags, to make a line break like
? I want the line break after the

element, but not before: HTML
  • Text, text, text, text, text.

    Sub header

    Text, text, text,…
  • Steeven
    • 4,057
    • 8
    • 38
    • 68
    74
    votes
    5 answers

    Set a padding on dataGridCells in WPF

    simple question: How can I set a padding on a dataGridCell in WPF? (either one at a time or on all cells, I don't care) I have tried using the DataGrid.CellStyle property by adding a setter on the DataGridCell.Padding property as well as using the…
    David
    • 6,014
    • 4
    • 39
    • 55
    66
    votes
    4 answers

    Android 4.0 Sub-Title (section) Label Styling

    So I was looking at the Android Dev Design site for ICS and all of the apps have these subtitles/section headers: I was wondering if anyone knew the custom styling to achieve labels that look like this. I couldn't find any label Views that looked…
    Brandon
    • 4,486
    • 8
    • 33
    • 39
    65
    votes
    9 answers

    CSS change button style after click

    I was wondering if there was a way to change a button's style, in css, after it's been clicked, so not a element:active.
    JohnyNich
    • 1,221
    • 3
    • 14
    • 23
    61
    votes
    12 answers

    Best CSS color wheel sites

    What site(s) do you recommend for looking at complimentary colors for site design? It would also be beneficial to enter a hex or RGB value and have the color wheel spit back complimentary colors. Most popular: Kuler Others in alphabetical…
    LordHits
    • 5,054
    • 3
    • 38
    • 51
    59
    votes
    3 answers

    Android multi color in one TextView

    Possible Duplicate: Is it possible to have multiple styles inside a TextView? I want my TextView to show some part of its text in red and others in black. It's content (the text) is created dynamically and i don't know how many words will be red…
    Hüseyin Z.
    • 836
    • 1
    • 8
    • 18
    54
    votes
    2 answers

    Can't target :before Pseudo selector in JSS

    I am trying to target the after pseudo selector of an element on my page. I am trying out JSS for this project and am a huge fan so far, but still very new to it. I am having troubles selecting the :after selected with JSS. Is this possible because…
    Brady
    • 733
    • 1
    • 6
    • 16
    43
    votes
    6 answers

    height vs line-height styling

    What is the difference between using these two when dealing with text that will never be more than a single line? They both can produce similar results on the screen from what I can see in regards to the elements on top or on the bottom of the…
    EverTheLearner
    • 7,040
    • 16
    • 57
    • 72
    43
    votes
    2 answers

    inherit style from default style

    In my project there is a custom style for text box. It is defined as: