how to edit a css selector in order to shorten the amount of characters used in file


Tags: css

Problem :

I want to edit a css property(background) so that I can make it shorter. I have it throughout my file and my file is too long. e.g instead of having to write "ul {background:white;}" i could write "ul {b:white;}" or something similar. Is this possible?



Solution :

This is not possible. However, you can use a tool like CSS Minifier to shrink the size of your CSS in general. Depending on what language you're using on the backend, there are tools to do this automatically.


    CSS Howto..

    How to fade out after hover is done using CSS

    How to change the css of a div using the click function on jQuery, but however twice instead of once?

    How to property adjust table?

    How can I use .htaccess to send distant expiry headers on CSS and JS files?

    How do I change the arrow in the select with Chosen plugin?

    How to target the text in an element but not the text in nested elements with CSS

    How can I add multiple classes to a Rails form input with erb?

    How to dynamically change CSS elements to be HTTPS or HTTP

    How to reference css in actionlink?

    how can I use CSS to hover over an entire list element including the bullet?

    How to remove border of drop down list : CSS

    How to make a Xul button bigger using css as it get focus?

    How to add a border on a table to a generated file from PrinceXML?

    How to apply CSS to navigation bar with master pages?

    Why is border radius not showing up in IE?

    How do I make a left-aligned unordered list to the right of a left-aligned picture?

    How to Include Multiple Javascript Files in .NET (Like they do in rails)

    How to center div and ul using CSS?

    How to force Dojo TitlePane to overlap with CSS?

    Can't figure out how to fix CSS for 3rd party library element

    How to correctly set background image in a HTML page using a JavaScript function

    How to change default value in counter-increment?

    html, how to make elements not shift when browser zooms?

    How to set a background color defined as a CSS class (using JQuery eventually)?

    CSS question - transparent underlined textbox - howto?

    How to adjust button css styles

    How to completely remove borders from HTML table

    CSS: How to change the color of the bottom right square of the scrollbar in webkit?

    How to show text within icon

    Show Item when Hover Over Parent