media attribute for style (JavaScript 1.0)

Represents the "media" attribute of the "style" element. Set to "screen", "print," or "all".

Values

Example
No example available.

Examples having uses of JavaScript attribute 'media'

1 votes
1k views

List Columns

Unordered or ordered lists can be arranged in two, three, or more columns using nothing more than css. We force the list to break at the right point. If We want two columns, you need to float the list items left and set them at 50% width and for three columns would require a width of 33% and floated left, four would be 25% and so on.