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
https://forums.phpfreaks.com/topic/24946-css-short-handnot-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.