How can I reduce this CSS code ?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

How can I reduce this CSS code ?

Post 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;
}
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How can I reduce this CSS code ?

Post 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.
(#10850)
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: How can I reduce this CSS code ?

Post by Mds »

:lol: Thank you.
How can I combine these : :?

Code: Select all

font-family: Tahoma; 
font-size: 12px; 
font-weight: normal;
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How can I reduce this CSS code ?

Post by Christopher »

(#10850)
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: How can I reduce this CSS code ?

Post by Mds »

Nice :wink:
Post Reply