Thread: CSS im Prinzip
View Single Post
  #9 (permalink)  
Old 06-04-2007, 10:33 AM
gkd_uk's Avatar
gkd_uk gkd_uk is online now
Super Moderator
 
Join Date: Mar 2007
Location: zeshaan.info
Posts: 3,660
iTrader: 3 / 100%
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
gkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud of
Default

I have translated it myself. It was quite easy.

Here goes:


There are endlessly many advantages that bring the utilization of Cascading Style Sheets (CSS). In order to name only some: Minimal file-size, shorter download-times and simplification of each Maintenance.

In order to be able to use these strengths for own projects, is it important to use CSS in the correct type and manner. There are four possibilities:

Inline Styles: These are defined within one day. They can the form <p style=“text-align: center;“> Suppose if this paragraph is supposed to be arranged in the middle. This type of CSS should be used only in exceptions because they do not separate the Presentations information by the HTML code. All advantages named above by CSS do not be true of Inline Styles.

Embedded Styles: These become within the <head> Meet defined and are certainly better with regard to Maintenance because one must a change for all paragraphs within the document of only once distinguished. Yet also here we the code unnecessarily swelled and must be loaded the Styles for each side by the browser. The form of the embedded styles is <style type=“text/css“>p {text-align: center;}</style>

External Styles: This method has everyone above named advantage. Maintenance could not be easier. One must update only the CSS-file so that changes are carried out for the total websites in shortest time. The CSS-file remains in the browser-cache. Therefore the Presentations information must not be loaded once again, what makes the entire much faster. Within the <head> That is defined day left to the external style sheet in the following form: <link rel=“stylesheet“ type=“text/css“ href=“external.css“>. This prefaces that one is generated before or afterwards a CSS-file with name external. css. External. css could also styles. css or similarly be named. It is only important, that the file name exactly with the reference in <link> Agrees and is the CSS-file in the same file (if not, must one the exact path indicate). In the CSS-file, the Absatzformattierung in following type is defined: p {text-align: center;}.

Imported Styles: Are actually not in addition certainly in HTML documents defined to become. Nevertheless its utilization sense makes. Older browsers, which Stylesheet information incorrectly can interpret often and can represent websites in complete Caos, imported styles ignore and place the websites with the browser-specific style there. Within the <head> meet, after that <title> day defined one <link type=“text/css“>@import url(external.css);</style>

Stylesheets can be generated for different media. In an external style, one would determine media = "screen "for the website-Stylesheet and media = "print "for the pressure. For one really should avoid that a website which has a black background consumes all black ink of the printer to print only around the background color
Reply With Quote