Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-16 02:37:08

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

r1291: Cleanup rule redundancy in the stylesheet

Offline

#2 2006-04-16 03:06:46

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: r1291: Cleanup rule redundancy in the stylesheet

I just checked in a couple more additions to get rid of the validation warnings (so later CSS additions/changes are easier to check).

On a related note: for some weird reason the CSS validator for version 2.0 and 2.1 is borked (warnings of “You have no background-color with your color” when it is clearly there), but it validates with no warnings against version 3 just fine.

Offline

#3 2006-04-16 11:44:10

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: r1291: Cleanup rule redundancy in the stylesheet

I think it’s more a case of using the shorthand “background:” when you aren’t specifying the other parameters in the tag like URL, position, repeat etc.

When you just want to secify a single parameter it is best to use the proper attribute such as “background-color:”, “background-image”, “backgound-position” as you have now done. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2006-04-18 06:46:44

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: r1291: Cleanup rule redundancy in the stylesheet

Offline

#5 2006-04-18 07:31:15

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,266
Website

Re: r1291: Cleanup rule redundancy in the stylesheet

Mary wrote:

One last(?) time…

You know, you can save a bit of bytes, and some micro seconds in browser-processing power by simplifying all those ID selectors.

Example:
textarea#html to #html

;-)

Philippe


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

Board footer

Powered by FluxBB