Page 1 of 1

How can I reduce this CSS code ?

Posted: Fri Jul 25, 2008 5:25 pm
by Mds
Hi there.
Do you know how I can reduce this code in 1 line :

Code: Select all

body {
    background-color: #615a49;
    font-family: Tahoma;
    font-size: 12px;
    font-weight: normal;
    color: #F4F5EF;
    text-align: center;
    margin: 0px auto;
    min-height: 100%;
    height: 100%;
    line-height: 17px;
}

Re: How can I reduce this CSS code ?

Posted: Fri Jul 25, 2008 6:29 pm
by Christopher

Code: Select all

body { background-color: #615a49; font-family: Tahoma; font-size: 12px; font-weight: normal; color: #F4F5EF; text-align: center; margin: 0px auto; min-height: 100%; height: 100%; line-height: 17px; }
;)

There are a few tags like background and font that can be written in combined form. See the docs.

Re: How can I reduce this CSS code ?

Posted: Sat Jul 26, 2008 7:05 am
by Mds
:lol: Thank you.
How can I combine these : :?

Code: Select all

font-family: Tahoma; 
font-size: 12px; 
font-weight: normal;

Re: How can I reduce this CSS code ?

Posted: Sat Jul 26, 2008 6:28 pm
by Christopher

Re: How can I reduce this CSS code ?

Posted: Sun Jul 27, 2008 6:53 am
by Mds
Nice :wink: