Jump to content

css short hand(not working)


Ninjakreborn

Recommended Posts

I finally started tryign to get into shorthand and have a bad experience with it first thing.
I tried turning this
[code]h1 {
font-size:1.5em;
background-color:#f2faf5;
color:#000000;
}

h2 {
color:#000000;
font-size:1.3em;
background-color:#f2faf5;
}

h3 {
color:#000000;
font-size:1.2em;
background-color:#f2faf5;
}

h4 {
color:#000000;
background-color:#f2faf5;
font-size:1.1em;

}

h5 {
color:#000000;
background-color:#f2faf5;
font-size:1em;

}

h6 {
color:#000000;
background-color:#f2faf5;
font-size:0.8em;
}
[/code]
into
[code]h1 h2 h3 h4 h5 h6 {
color: #000000;
background-color: #f2faf5;
}[/code]
The problem nwo though is, with the long drawn out style's it put's a background color with all of them, with this it doesn't put a background color with any of them.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.