CSS Garden

Tipps und Tricks über Stylesheets

 

    Apache HTTP Server Test Page powered by CentOS

    Apache 2 Test Page
    powered by CentOS

    This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page it means that the Apache HTTP server installed at this site is working properly.


    If you are a member of the general public:

    The fact that you are seeing this page indicates that the website you just visited is either experiencing problems or is undergoing routine maintenance.

    If you would like to let the administrators of this website know that you've seen this page instead of the page you expected, you should send them e-mail. In general, mail sent to the name "webmaster" and directed to the website's domain should reach the appropriate person.

    For example, if you experienced problems while visiting www.example.com, you should send e-mail to "webmaster@example.com".

    If you are the website administrator:

    You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.

    You are free to use the images below on Apache and CentOS Linux powered HTTP servers. Thanks for using Apache and CentOS!

    [ Powered by Apache ] [ Powered by CentOS Linux ]

    About CentOS:

    The Community ENTerprise Operating System (CentOS) Linux is a community-supported enterprise distribution derived from sources freely provided to the public by Red Hat. As such, CentOS Linux aims to be functionally compatible with Red Hat Enterprise Linux. The CentOS Project is the organization that builds CentOS. We mainly change packages to remove upstream vendor branding and artwork.

    For information on CentOS please visit the CentOS website.

    Note:

    CentOS is an Operating System and it is used to power this website; however, the webserver is owned by the domain owner and not the CentOS Project. If you have issues with the content of this site, contact the owner of the domain, not the CentOS Project.

    Unless this server is on the centos.org domain, the CentOS Project doesn't have anything to do with the content on this webserver or any e-mails that directed you to this site.

    For example, if this website is www.example.com, you would find the owner of the example.com domain at the following WHOIS server:

    http://www.internic.net/whois.html

 Effizienter CSS-Code

  1. Redundante Einheiten für Null-Werte

    Bei Null-Werten wird die Einheit - in diesem Fall Pixel - nicht gebraucht:

    padding:0px 0px 5px 0px;

    Die effizientere Schreibart lautet:

    padding:0 0 5px 0;

    Dasselbe gilt für andere "Styles" z. Bsp.:

    margin:0;

    Verschwende keine Bytes für Einheiten wie px, pt, em, etc, wenn der Wert 0 ist. Das einzige Argument um es doch zu tun kann sein, dass später einfach Werte eingefügt werden können. Null Pixels ist das gleich wie null Punkte.

    Line-height kann auch ohne Unit verwendet werden. Das folgende Statement ist also gültig:

    line-height:1;

  2. Vermeiden von doppelten Farbcodes

    Folgende Werte sollten umgeschrieben werden:

    color:#ffffff;
    background-color:#000000;
    border:1px solid #ee66aa;

    Effizienter sieht der Code folgendermassen aus:

    color:#fff;
    background-color:#000;
    border:1px solid #e6a;

    Bei folgendem Wert kann natürlich nichts abgekürzt werden:

    color:#fe69b2;

  3. Vermeiden von Wiederholungen

    Das folgende Beispiel kann in einer einzigen Linie geschrieben werden:

    border-top:1px solid #00f;
    border-right:1px solid #00f;
    border-bottom:1px solid #00f;
    border-left:1px solid #00f;

    So sieht der Code zusammengefasst aus:

    border:1px solid #00f;

Übersetzter Auszug aus einem englischen Artikel von Chess Hester: http://www.designdetector.com/link/to/ten-common-css-mistakes/

 

>Zurück

 

© 1997 - 2019