The bad way to produce styles. Εισαγωγή στoυς Επάλληλους Οδηγούς Τεχνοτροπίας. (Cascading Style Sheets) Ο ρόλος των Cascading Style Sheets
|
|
- ΣoφпїЅα Ελευθερίου
- 8 χρόνια πριν
- Προβολές:
Transcript
1 Εισαγωγή στoυς Επάλληλους Οδηγούς Τεχνοτροπίας The bad way to produce styles (Cascadig Style Sheets) Κεφ. 3 tags such as b, i, u, ad fot are discouraged i strict HTML Why is this bad? 2 Why separate cotet from presetatio? Efficiecy of code: Larger files take loger to dowload. You do t wat to waste your badwidth o large pages cluttered up with stylig ad layout iformatio i every HTML file. A much better alterative is to make the HTML files stripped dow, ad iclude the stylig ad layout iformatio just oce i a separate CSS file. Ease of maiteace: If stylig ad layout iformatio specified i oe place, you oly have to make updates there if you wat to chage your site s appearace. Accessibility: Visually impaired users ca use a scree reader to access the iformatio through soud rather tha sight it ca do a much better job if it fids proper sematic structure. I additio keyboard cotrols o web pages (importat for those with mobility impairmets that ca't use a mouse) work much better if they are built usig best practices. Device compatibility: If your HTML/XHTML page is just plai markup, with o style iformatio, it ca be reformatted for differet devices with vastly differig attributes (eg scree size) by simply applyig a alterative style sheet. CSS also atively allows you to specify differet style sheets for differet presetatio methods/media types Web crawlers/search egies: If a crawler has trouble fidig the cotet of your pages, or misiterprets what s importat because you have t defied headigs as headigs ad so o, the your rakigs i relevat search results will probably suffer. It s just good practice: Talk to ay professioal stadards-aware web developer or desiger, ad they ll tell you that separatig cotet, style, ad behavior is the best way to develop a web applicatio. 3 Ο ρόλος των Cascadig Style Sheets Οι σημαντήρες της HTML προσδιορίζουν τη δομή των εγγράφων HTML και υποδηλώνουν την λειτουργικότητα επιγραφόμενων τμημάτων του περιεχομένου. Οι Επάλληλοι Οδηγοί Τεχνοτροπίας (CSS) προσδιορίζουν την παρουσίαση του περιεχομένου σε κάποιο συγκεκριμένο μέσο: οθόνη πλοηγού σε Η/Υ, χαρτί εκτυπωτή, οθόνη κινητού κλπ Τα CSS μεριμνούν για stylig (τεχνοτροπία), spacig (αποστάσεις), positioig (τοποθέτηση), layout (διάταξη) Η γραμματική των CSS επιτρέπει τη δήλωση οδηγιών (οδηγών, κανόνων) που προσδιορίζουν: ποιοί κανόνες τεχνοτροπίας και στοιχειοθεσίας εφαρμόζονται στην παρουσίαση ποιών στοιχείων HTML, και ποιές ιδιότητες (χρώματος, μεγέθους, γραμματοσειράς) αντιστοιχούν σε κάθε κανόνα. Τα CSS δεν είναι γλώσσα προγραμματισμού ή γλώσσα σήμανσης αλλά γλώσσα καθορισμού κανόνων/οδηγιών με στόχο τον διαχωρισμό περιεχομένου από την παρουσίασή του. 4 Στοιχεία Σύνταξης CSS Cotet vs. presetatio HTML is for cotet; what is o the page (headig; list; code; etc.) CSS is for preseta*o; how to display the page (bold; cetered; 20px margi; etc.) keepig cotet separate from presetatio is a very importat web desig priciple If the HTML cotais o styles, its etire appearace ca be chaged by swappig.css files see also: CSS Ze Garde 6
2 Basic CSS rule sytax a CSS file cosists of oe or more rules a rule's selector specifies HTML elemet(s) ad applies style proper*es 7 Σύνταξη Οδηγών Τεχνοτροπίας selector: idetifies the HTML elemets that the rule will be applied to, idetified by the actual elemet ame, eg body, or by other meas. curly braces cotai the property/value pairs, which are separated from each other by semi-colos; the properties are separated from their respective values by colos. properties defie what you wat to do to the elemet(s) you have selected. values are the values that you wat to chage each property of the selected elemets to. Values are depedet o the property. selector { property1:value; property2:value; property3:value; p { margi:5px; fot-family:arial; color:blue; 8 CSS Properties ad Selectors The essetial cocepts are selectors (επιλογείς) ad properties (ιδιότητες) Properties may have differet values (τιµές): color fot-style fot-size text-alig red, yellow, rgb(212,120,20) ormal, italics, oblique 12pt, larger, 150%, 1.5em left, right, ceter, justify lie-height ormal, 1.2em, 120% display block, ilie, list-item, oe Κατηγορίες Επιλογέων CSS (Selectors) Type/Elemet selectors Class selectors ID selectors Uiversal selectors Attribute selectors Child selectors Descedet selectors Adjacet siblig selectors Pseudo-classes Pseudo-elemets 9 10 Επιλογείς τύπου (simple selectors) CSS commets: /*... */ Επιλέγουν ένα στοιχείο με βάση τον τύπο του στοιχείου. The selector is a tag ame or a list of tag ames, separated by commas Π.χ.: p { color : gree h1 { color : blue h2 { color : blue h3 { color : blue h1, h2, h3 { color : blue Ομαδοποίηση για οικονομία χώρου CSS (like HTML) is usually ot commeted as much as code such as Java the // sigle-lie commet style is NOT supported i CSS the <! > HTML commet style is also NOT supported i CSS 11 12
3 Εφαρμογή των CSS στην ΗΤΜL Σύνδεση CSS με ΗΤΜL Η εφαρμογή των επάλληλων οδηγών τεχνοτροπίας σε αρχεία HTML γίνεται με τρεις διαφορετικούς τρόπους: Εσωγραμμικοί οδηγοί τεχνοτροπίας (ilie styles) Ενσωματωμένοι οδηγοί τεχνοτροπίας (embedded styles) Εξωτερικοί οδηγοί τεχνοτροπίας (exteral style sheets) Εκτός αν έχετε πολύ καλούς λόγους για υιοθέτηση των δύο πρώτων τρόπων εφαρμογής CSS, συνιστάται όπως ακολουθείτε τον τρίτο τρόπο για τον συνδυασμό οδηγών τεχνοτροπίας και αρχείων HTML 14 Εσωγραμμικοί Οδηγοί Τεχνοτροπίας Ilie styles: the style attribute (BAD!) Η χρήση τους γίνεται με τη βοήθεια του γενικού ιδιοχαρακτηριστικού style: <p style="backgroud:blue; color:white; paddig:5px;">paragraph</p> Μέσα στο style, παραθέτουμε τον κατάλογο των επιθυμητών ιδιοτήτων CSS και τις τιμές τους, χωρισμένες με ; Πλεονέκτημα: browser will be forced to use these settigs. Ay other styles defied i other style sheets or eve embedded i the head of the documet will be overridde by these styles. Προβλήματα: Makes maiteace lot harder tha it should be Usig CSS is all about separatig the presetatio of the documet from structure - ilie styles are doig the opposite You do t take advatage of the most powerful part of CSS, the cascade. Usig the cascade meas you defie a look ad feel i oe place ad the browser applies it to all the elemets that match a certai rule. higher precedece tha embedded or liked styles used for oe-time overrides ad stylig a particular elemet this is bad style; DO NOT DO THIS (why?) Ενσωματωμένοι Ο.Τ. Φωλιάζουν στο στοιχείο head ενός αρχείου HTML, σαν ιδιοχαρακτηριστικά ενός άλλου στοιχείου style: <style type="text/css" media="scree"> p { color:white; backgroud:blue; paddig:5px; </style> Beefit: you do t eed to add a style attribute to each paragraph you ca style them all with oe sigle defiitio. If you eed to chage the look ad feel of all paragraphs, you ca do it i oe sigle locatio Problem: this is still limited to oe documet what if you wat to defie the look of paragraphs for a whole site i oe go? Embeddig style sheets: <style> (BAD!) CSS code ca be embedded withi the head of a HTML page this is bad style; DO NOT DO THIS (why?) 17 18
4 Ιδιοχαρακτηριστικό media The style elemet ca also cotai aother attribute called media, which defies what kid of media will use these styles. There are several media types to choose from, the most useful beig: scree for displayig o moitors. prit to defie what a pritout of the documet should look like. hadheld to defie the look ad feel of the documet o mobile devices ad other hadheld devices. projectio for presetatios doe i HTML, for example supported by the 20 Εξωτερικοί Οδηγοί Τεχνοτροπίας Όλοι οι κανόνες τεχνοτροπίας τοποθετούνται σε ένα αρχείο, το όνομα του οποίου καταλήγει σε.css και συνδυάζεται με τα HTML αρχεία με χρήση του στοιχείου lik το οποίο τοποθετείται εντός του στοιχείου head των αρχείων. <lik rel="stylesheet" href="styles.css" type="text/css" media="scree"> The href attribute poits to the CSS file The media attribute defies which media should get these styles applied to it (scree i this case), ad the type defies what the liked resource is (a file extesio is ot eough to determie that). This is the best of all worlds: keep look ad feel defiitios all i oe sigle file; you ca make site-wide chages by chagig oe file ad cache. 21 Εισαγωγή Οδηγών Τεχνοτροπίας Aother way to import exteral style sheets ito HTML files is property. This is iserted ito a embedded style sheet: <style type="text/css" url("styles.css"); /* other import stmts or CSS styles could go here*/ should always be first i a embedded style sheet. You ca specify that the imported style sheet be applied oly to certai types of media by icludig the media type at the ed of the import statemet (/a i IE6 ad below): <style url("styles.css") scree; </style> Γιατί η Πρακτικά είναι ισοδύναμη με τη χρήση του lik. Ωστόσο, το import δεν αναγνωρίζεται από παλιότερους πλοηγούς, οι οποίοι το αγνοούν (Netscape 4 ad older, ad IE 4 ad older if you omit the brackets from aroud the fileame). Επομένως, μπορείτε να για να «κρύψετε» οδηγούς τεχνοτροπίας από παλαιότερους πλοηγούς, οι οποίοι διαφορετικά θα χρησιμοποιούσαν τους οδηγούς σας με λάθος τρόπο. Put your up-to-date styles i a exteral stylesheet ad import them the provide some really basic styles that will ot cause IE/Netscape 4 to choke i the embedded stylesheet. IE6 does't support puttig the media type at the ed of lie, so they are ot a good way to go if you wat to isert multiple stylesheets for differet media
5 W3C CSS Validator jigsaw.w3.org/css-validator/ checks your CSS to make sure it meets the official CSS specificatios Χρώματα και Γραμματοσειρές more picky tha the web browser, which may reder malformed CSS correctly 25 CSS properties for colors Kαθορισμός Χρωμάτων 17 κλειδολέξεις χρωμάτων ( Π.χ. p { color: red; property color backgroud-color descriptio color of the elemet's text color that will appear behid the elemet Guarateed to be displayable by all graphical browsers o all color moitors black purple avy olive blue 0000FF gray gree silver C0C0C0 teal red FF0000 lime 00FF00 fuchia FF00FF aqua 00FFFF yellow FFFF00 maroo white FFFFFF orage FFA500(added i CSS 2.1) Χρώματα στους CSS Χρώματα στους CSS Hex values: you specify six hexadecimal values, two for the red, gree, ad blue chaels that make up each color, preceded by a # sig Each hex value has 16 possible values (0 to 9, the a to f). Each of the three color chaels (R, G, ad B) has a possible 256 values (16 x 16). So the total umber of possible colors you ca choose from is 256 x 256 x 256 = 16,777,216. p { color: #ff0000; RGB or RGBa: similar to Hex, except that you specify the values for R, G, Β i either decimal umbers or percetages (0-255 or 0%-100%): p {color: rgb(255, 0, 0); /* equiv to #ff0000*/ RGBa (CSS3): provides a way to specify also color trasparecy p {color: rgba(255, 0, 0,0.95); HSL/HSLa: stads for Hue (απόχρωση) Saturatio (κορεσμός) Lightess (φωτεινότητα) Hue: values from 0 to 360 Saturatio ad Lightess: values from 0 to 100% Examples: hsl(0, 100%, 50%) - Red hsl(60, 100%, 50%) - Yellow hsl(120, 100%, 50%) - Gree hsl(180, 100%, 50%) - Cya hsl(240, 100%, 50%) - Blue hsl(300, 100%, 50%) - Mageta/Purple 29 30
6 CSS properties for fots property fot-family fot-size fot-style fot-weight descriptio which fot will be used how large the letters will be draw used to eable/disable italic style used to eable/disable bold style Complete list of fot properties 32 Settig fots Fots ca be set usig the CSS fot-family property Prefer web-safe fots that are guarateed to be istalled across Widows, Mac, Liux Best practice: sas-serif fot for headigs (χωρίς πατούρα) serif fot for body text, for improved legibility take ito accout the target audiece of your site Times New Roma: better for serious ews Verdaa: might work better for text o a music or video game site p { fot-family: Helvetica; p { fot-family: "Trebuchet MS","Times New Roma", Georgia, serif; 33 Τεχνοτροπίες γραμματοσειρών Πέντε οικογένειες γραμματοσειρών: sas-serif, serif, cursive, fatasy, moospace Αριθμός παραμέτρων για κάθε γραμματοσειρά: style, variat, weight, size. Ιδιότητες CSS για τις γραμματοσειρές: fot-family fot-style fot-variat : specifies whether or ot a text should be displayed i a small-caps fot fot-weight : sets how thick or thi characters i text should be displayed. fot-size fot - to specify a list of fot properties (Order must be: style, weight, size, ame(s): fot: bolder 14pt Arial Times New Roma 34 fot-family More about fot-family ca specify multiple fots from highest to lowest priority eclose multi-word fot ames i quotes geeric fot ames: serif, sas-serif, cursive, fatasy, moospace Serif fots have a small protrusio o the edge of a letter Serified fots are geerally believed to be easier to read o prited pages No-serified fots are thought to look cleaer o a computer scree Moospace fots take exactly the same width for each letter o the scree Variable-width fots are widely cosidered to be more pleasat to read except for certai cases (e.g. computer code) 35 36
7 Μέγεθος κειμένου To resize text you ca use the fot-size property It is recommeded that you use percetages or em s, ad ot pixels as fot-size uits size the text relative to the default, istead of settig a absolute size irrespective of other settigs. Problem: if the desiger wats to icrease the geeral size of the whole page, idividual elemets sized usig pixels will stay the same size, ad start to look out of proportio. em is a scalable web measuremet uit that is always equal to the curret documet fot size E.g. if a default fot size of 16px is curretly beig used for paragraphs, 16px is equal to 1em. Settig a fot size of 2 em s will always make the fot double the default size (2 em s is equal to settig the size as 200%) 38 fot-size fot-weight, fot-style uits: pixels (px) vs. poit (pt) vs. m-size (em) 16px, 16pt, 1.16em vague fot sizes: xx-small, x-small, small, medium, large, x- large, xx-large, smaller, larger percetage fot sizes, e.g.: 90%, 120% either of the above ca be set to ormal to tur them off (e.g. headigs) 39 40
8 Embeddig Fots Groupig styles I CSS3 you ca embed fots ito your web page Makig sure that all users ca see the page properly i ay fot they like Usig { fot-family: Kimberley ; src: url( ) format( TrueType ); p { fot-family: Kimberley, Helvetica, sas-serif; fot-size: 1.5em; 43 a style ca select multiple elemets separated by commas the idividual elemets ca also have their ow styles (like h2 above) 44 Τυπική στοιχειοθεσία ιστοσελίδας χωρίς CSS Κείμενο, Παρασκήνιο, Πίνακες Γενική τεχνοτροπία κειμένου Lie legths The lies of text are too log to read ad ueve Τhe headig levels are ot that easy to differetiate betwee Τhe default typeface makes it look very like the Web of the 90s. The way the page looks by default is determied by the default browser styles that are beig applied. These will differ somewhat across browsers, but the effect is always pretty much the same. We ca make thigs better with some simple CSS styles. Let s look at the stylig ow. 47 Geeral guidelie: make your text colums about characters i legth for easier readig Use the width property: fixed (static) width: legth property is assiged value i px dyamic (fluid) width: legth property is assiged value i percetage (%) ad text takes the same proportio of the browser widow width elastic: relies o legth defied usig ems, which are related to the size of the text - ot so ofte used width: 500px; width: 60%; #mai_cotet { width: 50%; #mai_cotet { width: 50%; mi-width: 300px; max-width: 600px; 48
9 Άλλες ιδιότητες στοιχειοθεσίας lie-height specifies the height of each text lie (just the lie the text sits o; ot the text itself), i whatever uit you choose. text-trasform trasforms the textual cotet of a elemet. capitalize (capitalizes all words) lowercase (makes all letters lowercase) uppercase (makes all letters uppercase). text-decoratio specifies differet types of decoratio o the textual cotet of a elemet. blik (makes the text blik o ad off) uderlie (draws a lie uder the text) overlie (draws a lie above the text) lie-through (draws a lie through the text) 50 CSS properties for text text-alig property text-alig text-decoratio lie-height, word-spacig, text-idet descriptio aligmet of text withi its elemet decoratios such as uderliig gaps betwee the various portios of the text idets the first letter of each paragraph Complete list of text properties ca be left, right, ceter, or justify (which wides all full lies of the elemet so that they occupy its etire width) text-decoratio CSS properties for backgrouds property descriptio ca also be overlie, lie-through, blik, or oe backgroud-color backgroud-image color to fill backgroud image to place i backgroud effects ca be combied:text-decoratio: overlie uderlie; backgroud-positio backgroud-repeat placemet of bg image withi elemet whether/how bg image should be repeated backgroud-attachmet whether bg image scrolls with page backgroud shorthad to set all backgroud properties 53 54
10 backgroud-image backgroud-repeat backgroud image/color fills the elemet's cotet area ca be repeat (default), repeat-x, repeat-y, or o-repeat backgroud-positio Image Replacemet The umber of fots commoly available across platforms, presets a certai limitatio to desigers o the Web. value cosists of two tokes, each of which ca be top, left, right, bottom, ceter, a percetage, or a legth value i px, pt, etc. value ca be egative to shift left/up by a give amout You could create your text i a graphics editor with the fot you desire ad put it o your site as a image but this presets a accessibility ad search egie idexig problem Oe commo solutio that solves both problems is Image Replacemet (IR) put your text i place o your site attach a backgroud image to that elemet cotaiig the text displayed exactly as you d like it, ad use CSS trickery to shut the HTML text off the edge of the scree CSS Sprites If you have a lot of images o your site that are the same size you ca put them i a sigle file (oe log strip of icos) so that oly oe dowload is required. As well as savig o file size, this cuts dow cosiderably o the umber of HTTP requests required. To iclude the images i your pages, you ca use the backgroud properties of HTML elemets. How to cotrol which idividual ico is displayed? Vary the backgroud-positio property: a differet portio of the sigle image is displayed i that part of the page. Make sure that the cotaier the image is attached to (be it a <div>, <p>, etc.) i the HTML is sized with the correct dimesios to cotai the sprites. 60
11 Πίνακες στην HTML Χρησιμότητα: οργάνωση και παρουσίαση δεδομένων με μητροειδή μορφή. Πίνακες HTML Για τη δημιουργία ενός πίνακα (μητρώου) στην HTML, τρία Στοιχεία είναι απαραίτητα: <table>: Wraps the etire table; defies it as a data table <tr>: Defies each row of the table <td>: Cotais the cotet of each sigle table cell multiple <td>s are foud iside each <tr> Οι πίνακες HTML xρησιμοποιούνται συχνά σαν μέσο στοίχισης πληροφοριών, αλλά η πρακτική αυτή πρέπει να αποφεύγεται. This was doe because CSS lacked cosistet support across browsers, ad usig table cells was see as a easier optio for cross-browser layouts. 64 Πίνακες HTML (συνέχεια) Η χρήση των πινάκων για διαμόρφωση της στοιχειοθεσίας μη μητρωειδών πληροφοριών δεν αποτελεί καλή πρακτική, ακόμη κι αν το αποτέλεσμα φαίνεται καλό: Δημιουργούνται προβλήματα με προγράμματα ανάγνωσης οθόνης (scree readers) ή με προγράμματα εξαγωγής και επαναχρησιμοποίησης πληροφοριών. Οι πίνακες δημιουργούν προβλήματα σε χρήστες με στενότερα παράθυρα πλοηγού, με μεγαλύτερες γραμματοσειρές, με μη-visual πλοηγούς. Πολλοί πλοηγοί δεν εμφανίζουν έναν πίνακα μέχρις ότου όλα τα στοιχεία του έχουν φορτωθεί στο σύστημα του πελάτη. Αυτό έχει αρνητικές συνέπειες όταν ένα ολόκληρο έγγραφο έχει τοποθετηθεί μέσα σε πίνακα. Αντί των πινάκων για στοίχιση οι συγγραφείς πρέπει να χρησιμοποιούν style sheets. Do't use tables for layout! (borderless) tables appear to be a easy way to achieve gridlike page layouts may "ewbie" web pages do this but, a table has sematics; it should be used oly to represet a actual table of data istead of tables, use divs, widths/margis, floats, etc. to perform layout tables should ot be used for layout! 65 66
12 Προχωρημένα Στοιχεία πινάκων Προχωρημένα Στοιχεία πινάκων Επικεφαλίδες <th> Διαφοροποιούν τις επικεφαλίδες των πινάκων από τις γραμμές. Ιδιοχαρακτηριστικό: scope= row ή col Καθορίζει αν η επικεφαλίδα αφορά σε στήλη ή γραμμή - βοηθητικό κυρίως για scree readers Λεζάντες με το <captio> Επιπλέον δομικά στοιχεία: <thead> <tbody> <tfoot> Iδιοστοιχείο colspa= : επιτρέπει σε ένα στοιχείο του πίνακα να επεκταθεί σε στήλες Iδιοστοιχείο rowspa= : επιτρέπει σε ένα στοιχείο του πίνακα να επεκταθεί σε γραμμές 69 70
13 Stylig tables The border-collapse property all stadard CSS styles ca be applied to a table, row, or cell table specific CSS properties: border-collapse, border-spacig, captio-side, emptycells, table-layout by default, the overall table has a separate border from each cell iside the border-collapse property merges these borders ito oe The rowspa ad colspa attributes Colum styles: <col>, <colgroup> colspa makes a cell occupy multiple colums; rowspa multiple rows text-alig ad vertical-alig cotrol where the text appears withi a cell col tag ca be used to defie styles that apply to a etire colum (self-closig) colgroup tag applies a style to a group of colums (NOT self-closig) Καθολικός Επιλογέας (uiversal selector) Επιλέγει όλα τα στοιχεία μιας ιστοσελίδας και εφαρμόζει σε αυτά κοινούς κανόνες τεχνοτροπίας Eπιλογείς CSS * {color: red; 78
14 Body styles to apply a style to the etire body of your page, write a selector for the body elemet saves you from maually applyig a style to each elemet 79 Επιλογείς CLASS Επιλέγουν στοιχεία HTML που έχουν ιδιοχαρακτηριστικό class με τιμή ίδια με την τιμή που ανατίθεται στον επιλογέα: Π.χ. ο οδηγός:.example { εφαρμόζεται στα Στοιχεία: <p class="example">, <li class="example"> ή <div class="example"> Η χρήση του κατηγορήματος class γίνεται για να μπορούν οι συγγραφείς HTML να ομαδοποιούν διαφορετικά στοιχεία σε κατηγορίες με κοινές προδιαγραφές τεχνοτροπίας. Συνίσταται ο προσδιορισμός κλάσεων στοιχείων των αρχείων μιας εφαρμογής, πριν ξεκινήσει η συγγραφή της εφαρμογής. 80 Επιλογείς ID Συνδυασμός επιλογέων Επιλέγουν ένα συγκεκριμένο στιγμιότυπο ενός στοιχείου HTML με ιδιοχαρακτηριστικό ID με τιμή ίδια με την τιμή που ανατίθεται στον επιλογέα: Σημειωτέον ότι δύο στιγμιότυπα του ίδιου στοιχείου δεν μπορούν να έχουν το ίδιο ID. Π.χ.: <p id= COPYRIGHT >The copyright for. #COPYRIGHT { fot-size: small Δύο ή περισσότεροι επιλογείς μπορούν να συνδυασθούν για τον ορισμό πιο συγκεκριμένων κανόνων:: p.warig{ matches all paragraphs with the class of warig div#example{ matches the elemet with the id attribute example, but oly whe it is a div p.ifo, li.highlight{ matches paragraphs with a class of ifo ad list items with a class of highlight Επιλογείς Ιδιοχαρακτηριστικών (attribute selectors) Επιλογή στοιχείων HTML με βάση τα ιδιοχαρακτηριστικά που αυτά χρησιμοποιούν: Επιλογή στοιχείων img με ιδιοχαρακτηριστικό alt: img[alt] { border: 1px solid #000000; Επιλογή στοιχείων με βάση τις τιμές των ιδιοχαρακτηριστικών που αυτά χρησιμοποιούν: img[src="alert.gif"] { border: 1px solid #000000; CSS3 - επιλογή με βάση χαρακτηριστικά συγκεκριμένων τμημάτων των τιμών ιδιοχαρακτηριστικών, π.χ. καταλήξεις ονομάτων αρχείων. Βλ. Επιλογείς συγκειμένου (cotext selectors) Επιτρέπουν τον καθορισμό της εμφάνισης ενός στοιχείου από το συγκείμενο της θέσης στην οποία αυτό τοποθετείται. Για τον καθορισμό του συγκειμένου (cotext), χρησιμοποιούμε συνδυασμούς απλών επιλογέων: li p { margi-top: 0mm -- όλα τα στοιχεία P που «φωλιάζουν» στο περιεχόμενο ενός στοιχείου LI table.small p { fot-size: smaller όλες οι παράγραφοι που «φωλιάζουν» μέσα σε ένα στοιχείο κλάσης small, το οποίο είναι τμήμα ενός πίνακα 83 84
15 Επιλογείς τέκνου (child selectors) Επιλογείς απογόνου (descedet) Επιλογή συγκεκριμένου στοιχείου που είναι παιδί άλλου συγκεκριμένου στοιχείου. Χρησιμοποιεί μπλε χρώμα για το περιεχόμενο στοιχείων strog, τα οποία είναι παιδιά στοιχείων h3: h3 > strog { Επιλογή στοιχείου το οποίο έχει επιλεγμένο τύπο και είναι «απόγονος» (όχι μόνο τέκνο) κάποιου άλλου στοιχείου με επιλεγμένο τύπο Descedet selectors are very similar to child selectors, except that child selectors oly select direct descedats. How to select all em elemets iside div? color: blue; <div> <em>hello</em> <p>i this paragraph I will say <em>goodbye</em>. </p> </div> div > em {... div em { Επιλογείς αδελφών εν σειρά (adjacet siblig) + : επιλέγει το στοιχείο που εμφανίζεται ακριβώς μετά κάποιο άλλο επιλεγμένο στοιχείο, στο ίδιο επίπεδο της ιεραρχίας (DOM) if you wated to select all p elemets that come immediately after h2 elemets, but o other p elemets, you could use the followig rule: h2 + p { Σε ποιά σημεία εφαρμόζεται ο επιλογέας CSS: p + div li <article><p><div> <ul><li><spa>σημείο Α</spa></li><spa>Σημείο B</spa> <li><spa>σημείο Γ</spa></li> </ul></p> <div></div> <ul><li><em><spa>σημείο Δ</spa></li><spa>Σημείο E</spa> <li><spa><em>σημείο Z</em></spa></li> </ul> </div></article>... h2 p Δ και Ζ A και Γ Όλα Δ και Ζ 87 EΠΛ425 Σε ποιά Σημεία εφαρμόζεται ο επιλογέας CSS:.a ul li + spa <div class = a > <ul><li><spa id= l1 >Σημείο Α</spa></li><spa>Σημείο B</spa> <li><spa id= l2 >Σημείο Γ</spa></li> </ul> <div class= b > <ul><li><em><spa>σημείο Δ</spa></li><spa>Σημείο E</spa> <li><spa><em>σημείο Z</em></spa></li> </ul> </div></div> Β και Ε A και Γ Α, Β και Γ Β Εξωτερικοί επιλογείς Επιθυμητή η ρύθμιση της εμφάνισης περιεχομένου με βάση πληροφορίες εξωγενείς προς το αρχείο HTML. To CSS1 ορίζει δύο τύπους εξωτερικών πληροφοριών: Ψευδοκλάσεις: styles that apply whe somethig happes, rather tha because the target elemet simply exists Ψευδοστοιχεία: αφορούν σε τμήματα του περιεχομένου τα οποία δεν επισημαίνονται ρητά από την HTML. Π.χ., το πρώτο γράμμα μιας παραγράφου, το οποίο αναλόγως του τύπου της παρουσίασης, μπορεί να τύχει διαφορετικής παρουσίασης. EΠΛ425 90
16 Ψευδοκλάσεις CSS pseudo-classes Σχετίζονται με δυνατές καταστάσεις στις οποίες μπορεί να βρεθεί ένας υπερσύνδεσμος-στοιχείο <A>: :lik - ο σύνδεσμος δεν έχει επιλεγεί από τον χρήστη για το άνοιγμα άλλου αρχείου - αποτελεί την προκαθορισμένη κατάσταση ενός συνδέσμου. :visited - ο σύνδεσμος έχει επιλεγεί προηγουμένως (η πληροφορία αυτή διατηρείται στον πλοηγό). Μέσω της λέξης κλειδί visited, μπορούμε να καθορίσουμε την εμφάνιση επιλεγμένων αγκυρών. :hover - ο δρομέας του ποντικιού βρίσκεται πάνω από το στοιχείο HTML :focus ή :active - αφορά σε υπερσύνδεσμο την (σύντομη) χρονική στιγμή που αυτός επιλέγεται από τον χρήστη ή που έχει τον δρομέα του πληκτρολογίου πάνω του Ψευδοκλάσεις :first-child Συνδυάζεται με κάποιο επιλογέα τύπου Χ Επιλέγει τους σημαντήρες Χ, οι οποίοι είναι «πρώτα παιδιά» του πατέρα τους Select ad style every <i> elemet of every <p> elemet, where the <p> elemet is the first child of its paret p:first-child i { color: red; <body> <p>i am a <i>strog</i> ma. I am a <i>strog</i> ma.</p> <p>i am a <i>strog</i> ma. I am a <i>strog</i> ma.</p> <body> Ψευδοκλάσεις :lag(x) - selects elemets whose laguage has bee set to the specified laguage x usig the lag attribute :focus - useful as a usability aid i forms highlight the iput field that has the active blikig cursor iside it :focus - useful as a usability aid i forms highlight the iput field that has the active blikig cursor iside it iput:focus { border: 2px solid black; backgroud color: lightgray; Παραδείγματα ψευδοκλάσεων Ψευδοστοιχεία a:lik { color: gree a:active { color: red a:visited { color:blue a:lik { color: blue; Καθορίζονται από τμήματα του περιεχομένου τα οποία δεν επισημαίνονται ρητά από σημαντήρες ΗΤΜL: first-letter a:visited { color: gray; first-lie Παράδειγμα: a:hover, a:focus { text-decoratio:oe; p.iitial.first-letter {fot-size:200%; float: left p.iitial.first-lie { text-trasform: uppercase if you do't specify these rules i the same order as they are show, they might ot work as you expect. This is due to the way specificity causes later rules i the stylesheet to override earlier rules a:active { fot-weight: bold; Εξήγηση: η πρώτη παράγραφος ενός κεφαλαίου ή υποκεφαλαίου, η οποία ανήκει στην κλάση iitial, εμφανίζεται με το πρώτο γράμμα της διπλάσιο από το υπόλοιπο κείμενο. Το γράμμα αυτό εμφανίζεται σε διαφορετική στοίχιση από τα υπόλοιπα. Η πρώτη γραμμή της παραγράφου αυτής εμφανίζεται με κεφαλαία γράμματα
17 Κενός χώρος (whitespace) Διαχείριση Κενού Χώρου Συντομογραφίες I HTML, multiple occurreces of space, tab, ad carriage retur characters are (almost) always treated by browsers as a sigle space character, except whe <pre> is used. <p> Μονάδες Μέτρησης Περιθώρια </p> 98 Box model Block elemet space layers Browsers use this model to work out: how much space HTML elemets take up o the page how much space to put betwee them Layers i the box model are cotet (περιεχόμενο), paddig (μαξιλαράκι), border (σύνορο), ad margi (περιθώριο). Block elemets i your HTML appear oe after aother i the same order you placed them i the documet (source order), with some default margis separatig them, ad other default styles applied. Ilie elemets are placed oe after the other iside block elemets 99 The height ad width CSS properties allow to set the width ad height properties of a elemet s cotet. All the other layers add extra width ad height o top of that. Iteret Explorer 6: width ad height are the width ad height of the cotet plus the paddig: layouts will differ slightly i Iteret Explorer 6, compared to other browsers. Whe two vertical margis meet for example, whe a bottom margi is set o a elemet, ad a top margi is set o the elemet directly below it the margis collapse ito oe aother, ad the resultig margi is the same size as the larger of the two origial margis 100 Συντομογραφίες (CSS shorthad) Συντομογραφία: ο συνδυασμός πολλών σχετικών κανόνων CSS σε έναν κανόνα. border: 2px solid black; border-bottom-color: border-top-color: border-left-color: border-right-color: Iσοδυναμεί με τους κανόνες border-width: 2px; border-style: solid; border-color: black; border-color: blue red gree yellow 101
18 div.foo { margi-top: 1em; margi-right: 1.5em; margi-bottom: 2em; margi-left: 2.5em; div.foo { margi: 1em 1.5em 2em 2.5em; div.foo { margi: 2px; Μονάδες Μέτρησης στους CSS Whe specifyig the size of ay dimesio i CSS e.g., width, fot size, margi, etc. you have may optios available to you for the CSS measuremet uits you specify the measuremets i. Best practices: It is usually best to size text usig ems, as the the text will resize proportioally to its surroudigs whe browser resize cotrols are used, eve i older browsers such as Iteret Explorer 6. If you wat a colum of cotet to always remai the same size, the pixels will usually suffice. If you wat a colum of cotet to resize proportioally to browser width, percetages % are ideal. 104 Settig border The border family of values set differet aspects of a elemet s border border-color: shorthad that sets the color of the elemet s border. You ca set the color for idividual sides usig a sigle declaratio with multiple values, e.g., border-color: red blue white black; or eve more specific declaratios: border-bottom-color, border-top-color, etc border-style: shorthad that sets the style of the border dashed, dotted, double, groove, ridge, etc. This ca be broke dow ito properties for idividual sides, e.g., border-right-style. border-width: shorthad that sets the width of the border, e.g., 1px. This ca be broke dow ito properties for idividual sides, e.g., border-rightwidth, or you ca set differet styles o differet sides, e.g., border-width: 1px 2px;. border: Super-shorthad property that allows you to set the width, color ad style of all sides of a elemet s border i oe easy declaratio, for example, border: solid 1px black;. Settig paddig ad margi Five paddig properties i CSS set the amout of paddig o the four sides of a HTML elemet (similar for margi): paddig-top, paddig-right, paddig-bottom ad paddig-left The most commo uits you ll use to set paddig are px ad %. paddig shorthad allows you to set the paddig for all four sides at oce: paddig: 10px 0px 20px 30px; sets the paddig for the four sides separately (thik clockwise, startig from the top). paddig: 10px 20px; sets equal paddig for the top ad bottom sides, ad the a equal paddig for the right ad left sides. paddig: 10px 20px 5px; sets a paddig for the top (10px), a equal paddig for the right ad left sides (20px), ad last of all a paddig for the bottom (5px) paddig: 10px; sets a equal paddig for all four sides i oe value You ca also set paddig (ad margi) to a value of auto, which causes it to take up all the available space iside Συντομογραφίες για margi (περιθώριο) Συντομογραφία: margi και paddig Same value applied to all four sides: margi: 2px; First value applied to the top ad bottom, secod value to the left ad right: margi: 2px 5px;. First ad third values applied to the top ad bottom respectively, secod value applied to the left ad right: margi: 2px 5px 1px; Geerally, the wisest course is to provide all four values to shorthad properties, for reasos of legibility. This advice also applies to the paddig shorthad property. Shorthad margi ad paddig properties ted to get the greatest share of use There are situatios i which the shorthad properties are best avoided: Oly a sigle margi eeds to be set. I this case, apply KISS (Keep It Simple, Stupid) Priciple. The selector to which your properties apply is subject to may edge cases (ακραίες περιστάσεις): the ievitable heap of shorthad values ca become hard to follow whe it comes time to repair or alter your layout. The stylesheet you re writig will be maitaied by people whose skills are deficiet
19 Spacig withi paragraphs There are properties you ca use to cotrol spacig withi paragraphs: text-alig cotrols how your text is justified. letter-spacig alters the horizotal spacig betwee each letter, which is similar to the effect of kerig (διαγραμμάτωση) or trackig i prit desig typography. word-spacig alters the horizotal spacig betwee each word lie-height alters the vertical spacig betwee each lie; this is usually called leadig i prit desig/ typography. The default settig for lieheight is 1em the absolute height of each text character. 109 Κεντράρισμα ιστοσελίδας 111 EΠΛ425 Ποιές είναι οι τιμές Χ και Υ για να εμφανίζεται το στοιχείο <p>hello world</p> όπως στην εικόνα, με βάση τον ακόλουθο κανόνα CSS; p {border: solid 1px; height: 5em; width: 6em; backgroud-image: url(reddot.jpg); backgroud-repeat: o-repeat; backgroud-positio: X Y X=0 Y=0 X=-1 Y=5 X=1 Y=5 X=0 Y=5 hello world The list-style-type property Τεχνοτροπία λιστών Possible values: oe : No marker disc (default), circle, square decimal : 1, 2, 3, etc. decimal-leadig-zero : 01, 02, 03, etc. lower-roma : i, ii, iii, iv, v, etc. upper-roma : I, II, III, IV, V, etc. lower-alpha : a, b, c, d, e, etc. upper-alpha : A, B, C, D, E, etc. lower-greek : alpha, beta, gamma, etc. others: hebrew, armeia, georgia, cjkideographic, hiragaa, katakaa, hiragaa-iroha,katakaa-iroha Usig the CSS list-style-type property o a <ul> elemet to chage the style of the bullet used. The optios for uordered lists are as follows: square: Makes the bullets square circle: The default circles disc: Makes the bullets take o the form of hollow circles oe: Removes the bullets altogether Usig the list-style-image property o a <ul> elemet will cause it to adopt a custom bullet, the path to the graphic for which is specified as follows: list-style-image: url(bullet.gif);
20 Τεχνοτροπία λιστών To chage your list to use a differet umber type, apply the list-style-type property to your <ol> elemet lower-alpha: Lowercase ASCII letters (a, b, c ) upper-alpha: Uppercase ASCII letters (A, B, C ) lower-greek: Lowercase classical Greek: (α, β, γ,...) default (or use decimal): Decimal umbers (1, 2, 3 ) decimal-leadig-zero: Decimal umbers with leadig zeros (01, 02, 03 ) lower-roma: Lowercase Roma umerals (i, ii, iii ) upper-roma: Uppercase Roma umerals (I, II, III ) georgia: Traditioal Georgia umberig (a, ba, ga ) armeia: Traditioal Armeia umberig (mek, yerku, yerek ) 115 Styles that coflict Συνδυασμός πολλαπλών CSS (Κληρονομικότητα και Αλληλουχία) whe two styles set coflictig values for the same property, the latter style takes precedece (later we will lear about more specific styles that ca override more geeral styles) 120
21 Cascadig style sheets it's called Cascadig Style Sheets because the properties of a elemet cascade together i this order: browser's default styles (referece) exteral style sheet files (i a <lik> tag) iteral style sheets (i a <style> tag i the page header) ilie style (the style attribute of a HTML elemet) Iheritig styles (explaatio) whe multiple styles apply to a elemet, they are iherited a more tightly matchig rule ca override a more geeral iherited rule ot all properties are iherited (otice lik's color above) Αλληλουχία Οδηγών Τεχνοτροπίας Iheritace - Kληρονομικότητα Βασικές αρχές συνδυασμού πολλαπλών οδηγιών CSS: Κληρονομικότητα (iheritace): ο μηχανισμός που περνάει κάποιες ιδιότητες από ένα στοιχείο στους «απογόνους» του. Αλληλουχία -επαλληλία - αλληλοδιαδοχή (cascade): ο μηχανισμός που ελέγχει το τελικό αποτέλεσμα τεχνοτροπίας όταν συμπίπτουν πολλαπλές και αντικρουόμενες οδηγίες τεχνοτροπίας στο ίδιο στοιχείο HTML (cotrols the ed result whe multiple coflictig ad overlappig CSS declaratios apply to the same elemet) If it did t exist, you d have to specify every property for every HTML elemet, every time you wrote a web page. E.g.: if you set a default fot o the <body> elemet, this will be iherited by all <body> s childre. You ca the override this declaratio for specific elemets later o, if desired: body { fot-family: georgia; h1, h2, h3 { fot-family: helvetica; /* This overrides the first rule, because it appears later i the code */ Every elemet i a HTML documet except the root elemet <html>, which does t have a paret, will iherit all iheritable properties from its paret. Not all CSS properties are iherited, because that would t make sese. Margis are ot iherited, sice it s ulikely that a child elemet should eed the same margis as its paret. I most cases commo sese will tell you which properties are iherited ad which are t Ρύθμιση Μεγέθους Γραμματοσειρών To μέγεθος της γραμματοσειράς του <body> είναι 0.8 em (80%) αλλά 80% ποιού μεγέθους; Η εκατοστιαία τιμή μεγέθους γραμματοσειράς αφορά στο προκαθορισμένο μέγεθος γραμματοσειρών του πλοηγού (16px). Ποιό είναι το μέγεθος γραμματοσειράς επικεφαλίδων και παραγράφου; Με βάση την κληρονομικότητα, κάθε διαδοχικός απόγονος του body θα έπρεπε να είχε ολοένα και μικρότερο μέγεθος γραμματοσειράς - 80% x 80% x 80%... κλπ! Ωστόσο, η τιμή που κληρονομείται δεν είναι η καθορισμένη (specified) αλλά η αποκαλούμενη υπολογισμένη τιμή (computed). html body h1 h2 h3 div p p 125 Ρύθμιση Μεγέθους Γραμματοσειρών Η υπολογισμένη τιμή (computed value) μεγέθους γραμματοσειρας αντιστοιχεί σε απόλυτη τιμή που μετριέται σε pixels. Αν το προκαθορισμένο (στον πλοηγό) μέγεθος της γραμματοσειράς είναι 16px, το 80% του 16 είναι 12,8 px και η υπολογισμένη τιμή μεγέθους γραμματοσειράς για το body θα είναι 13 px η τιμή μεγέθους γραμματοσειράς που κληρονομείται από τους απογόνους του body είναι 13px To μέγεθος των γραμματοσειρών των επικεφαλίδων, είναι προσδιορισμένο σε συνάρτηση με την υπολογισμένη τιμή μεγέθους γραμματοσειράς του body (π.χ. 110%) και συνεπώς μεγαλύτερο από 13 px 126
22 Ρύθμιση Μεγέθους Γραμματοσειρών Αλληλουχία - επαλληλία (Cascade) html 13px body 13px h1 h2 h3 div 13px p p Οι αρχές της αλληλουχίας (αλληλοδιαδοχής) καθορίζουν ποιές οδηγίες υπερισχύουν στην στοιχειοθεσία ενός Στοιχείου, σε περιπτώσεις εφαρμογής πολλαπλών και αντικρουόμενων οδηγιών στο Στοιχείο αυτό. Στα στοιχεία ενός εγγράφου ΗΤΜL συνήθως «εφαρμόζονται» περισσότερες της μιάς οδηγίες τεχνοτροπίας προερχόμενες από: εξωτερικούς, ενσωματωμένους και εσωγραμμικούς οδηγούς CSS τις προτιμήσεις του χρήστη του πλοηγού τις προκαθορισμένες προτιμήσεις του πλοηγού κλπ Εφαρμογή πολλαπλών οδηγών τεχνοτροπίας Αλληλουχία Browser <BODY> <UL> <LI> Browser style-sheet HTML Documet <HTML> <HEAD> <LINK REL= stylesheet HREF= > <LINK REL= stylesheet HREF= > <BODY> </HTML> <BODY> <UL> <BODY> <UL> <BODY> <UL> Η αλληλουχία στηρίζεται σε τρεις βασικές αρχές, με βάση τις οποίες καθορίζεται η σειρά εφαρμογής οδηγιών CSS: Σημαντικότητα (Importace) Εξειδίκευση (Specificity) Προέλευση - σειρά εμφάνισης (Source order) Αν δύο αντικρουόμενες οδηγίες έχουν την ίδια σημαντικότητα, η εξειδίκευση των οδηγιών καθορίζει ποιά θα εφαρμοστεί με προτεραιότητα. Αν έχουν και την ίδια εξειδίκευση, η προτεραιότητα καθορίζεται από την προέλευση (πηγή) της κάθε οδηγίας. <LI> <LI> <LI> User style-sheet 1. desiger style-sheet 2. desiger style-sheet Σημαντικότητα CSS Η σημαντικότητα μιας οδηγίας CSS εξαρτάται από το πού δηλώνεται η οδηγία αυτή. Σε περίπτωση συγκρούσεων, οι οδηγίες εφαρμόζονται με την ακόλουθη (αύξουσα) σειρά σημαντικότητας: Οδηγίες Πλοηγού (User aget style sheets) Οδηγίες Συγγραφέα (Normal declaratios i author style sheets) Οδηγίες Χρήστη: καθορίζονται με επιλογές του χρήστη πάνω στον πλοηγό και επικρατούν των default οδηγιών του πλοηγού (Normal declaratios i user style sheets) Σημαντικές δηλώσεις στους οδηγούς του συγγραφέα Σημαντικές δηλώσεις στους οδηγούς χρήστη Importat : οδηγίες τεχνοτροπίας που έχουν σημειωθεί ως importat. * {fot-family: Helvetica!importat; Oι οδηγίες που έχουν δηλωθεί πιό «κοντά» σε ένα Στοιχείο HTML υπερισχύουν αυτών που έχουν δηλωθεί πιο «μακριά». Εξειδίκευση (Specificity) Εξειδίκευση: a measure of how specific a rule s selector is. A selector with low specificity may match may elemets (like p, which matches every paragraph i the documet), while a selector with high specificity might oly match a sigle elemet o a page (like #av, which oly matches the elemet with a id of av). Specificity calculatio: Specificity has four compoets; let s call them A, B, C, ad D. Compoet A is the most specific, D the least. You ca strig these four compoets together to calculate the specificity of ay rule. Compoet A is 1 for a declaratio i a style attribute, otherwise it is 0. Compoet B is the umber of id selectors i the selector (those that begi with a #). Compoet C is the umber of attribute selectors, class selectors, ad pseudo-classes. Compoet D is the umber of elemet selectors ad pseudo-elemets i the selector. CSS declaratios i a style attribute do t have a selector, so their specificity is always 1,0,0,
23 Εξειδίκευση (Specificity) Combiators (like >, +, ad the white space) do ot affect a selector s specificity. The uiversal selector (*) has o impact o specificity, either. A is 1 for a declaratio i a style attribute, otherwise it is 0. B is the umber of id selectors i the selector (those that begi with a #). C is the umber of attribute selectors, class selectors, ad pseudo-classes. D is the umber of elemet selectors ad pseudo-elemets i the selector. There is a differece i specificity betwee a id selector ad a attribute selector that happes to refer to a id attribute. Although they match the same elemet, they have very differet specificities. The specificity of #av is 0,1,0,0 while the specificity of [id="av"] is oly 0,0,1, Προέλευση (source order) Επίλυση συγκρούσεων - σύνοψη If two declaratios affect the same elemet ad have the same importace ad the same specificity, the fial distiguishig mark is the source order. The declaratio that appears later i the style sheet wis. If you have a sigle, exteral style sheet, the the declaratios at the ed of the file will override those that occur earlier i the file if there s a coflict. The coflictig declaratios could also occur i differet style sheets. I that case, the order i which the style sheets are liked, icluded, or imported cotrols which declaratio will be applied. Log form values ca be used to override specific parts of shorthad values. For example, you ca specify border width, color, ad style usig the followig declaratio: border: 1px black solid; The later o i the style sheet you ca specify the followig to oly override border-width: border-width: 2px; 1. Βρες όλους τους σχετικούς κανόνες που εφαρμόζονται σε κάποιο στοιχείο. 2. Ταξινόμησε τους κανόνες με βάση το ρητά καθορισμένο βάρος τους (ένας κανόνας μπορεί να σηματοδοτηθεί ως!importat για να έχει προτεραιότητα. Εφόσον βρεθεί ένας (μόνο) τέτοιος κανόνας, η αναζήτησή μας σταματάει εδώ. 3. Ταξινόμησε τους κανόνες με βάση την προέλευσή τους: μεγαλύτερη προτεραιότητα δίνεται στους εξειδικευμένους κανόνες του σχεδιαστή. Μετά από αυτό το βήμα, απομένουν μόνο κανόνες οι οποίοι ανήκουν στο ίδιο stylesheet. 4. Ταξινόμησε τους κανόνες με βάση την εξειδίκευσή τους. Π.χ., ένας κανόνας για το P είναι πιό γενικός από τον κανόνα για το LI P. Ο βαθμός εξειδίκευσης είναι ανάλογος με το πλήθος των κατηγορημάτων ID, CLASS, και των ονομάτων στοιχείων που εμπλέκονται στον επιλογέα. 5. Ταξινόμησε τους κανόνες με βάση την προέλευσή τους οι έσχατοι στο stylesheet επικρατούν των πρώτων CSS3 CSS3 is a ew spec that adds ew features to CSS to provide solutios to problems ad implemetatios of commo desig patters that previously were oly available via hacks or scriptig. CSS3 Work started o the CSS3 specificatio i 1998, yet oly i the last couple of years (circa 2012) have ay of the parts of CSS3 bee brought close to completio, or see support i browsers. However, may parts of CSS3 ow work across most of the moder set of browsers. CSS3 is modular, meaig that the differet parts of the specificatio are orgaized ito modules of related fuctioality, so that they are easier to work o ad lear
24 CSS 3 ew features ew selectors: th-child, ilie-block, :ot, + ability to embed fots i a page (yay) easy built-i support for mul*-colum layouts trasparecy/opacity, color gradiets, shadows rouded corers/borders aima*os ad trasitios (like Scriptaculous) affie trasforma*os (scalig, rotatio, perspective) <!DOCTYPE html> <html> <head> <style>.ewspaper { -webkit-colum-cout: 3; /* Chrome, Safari, Opera */ -moz-colum-cout: 3; /* Firefox */ colum-cout: 3; </style> </head> <body> <p><strog>note:</strog> The colum-cout property is ot supported i Iteret Explorer 9 ad earlier versios.</p> <div class="ewspaper"> Lorem ipsum dolor sit amet, cosectetuer adipiscig elit, sed diam oummy ibh euismod ticidut ut laoreet dolore maga aliquam erat volutpat. Ut wisi eim ad miim veiam, quis ostrud exerci tatio ullamcorper suscipit lobortis isl ut aliquip ex ea commodo cosequat. Duis autem vel eum iriure dolor i hedrerit i vulputate velit esse molestie cosequat, vel illum dolore eu feugiat ulla facilisis at vero eros et accumsa et iusto odio digissim qui bladit praeset luptatum zzril deleit augue duis dolore te feugait ulla facilisi. Nam liber tempor cum soluta obis eleifed optio cogue ihil imperdiet domig id quod mazim placerat facer possim assum. Typi o habet claritatem isitam; est usus legetis i iis qui facit eorum claritatem. Ivestigatioes demostraverut lectores legere me lius quod ii legut saepius. </div> </body> </html> 139 Παραδείγματα Image Replacemet The umber of fots commoly available across platforms, presets a certai limitatio to desigers o the Web. You could create your text i a graphics editor with the fot you desire ad put it o your site as a image but this presets a accessibility ad search egie idexig problem Oe commo solutio that solves both problems is Image Replacemet (IR) put your text i place o your site attach a backgroud image to that elemet cotaiig the text displayed exactly as you d like it, ad use CSS trickery to shut the HTML text off the edge of the scree 143
25 CSS Sprites If you have a lot of images o your site that are the same size you ca put them i a sigle file (oe log strip of icos) so that oly oe dowload is required. As well as savig o file size, this cuts dow cosiderably o the umber of HTTP requests required. To iclude the images i your pages, you ca use the backgroud properties of HTML elemets. How to cotrol which idividual ico is displayed? Vary the backgroud-positio property: a differet portio of the sigle image is displayed i that part of the page. Make sure that the cotaier the image is attached to (be it a <div>, <p>, etc.) i the HTML is sized with the correct dimesios to cotai the sprites. 145
More CSS Syntax. Colors and Fonts. Color specification. CSS properties for colors. Χρώµατα και Γραµµατοσειρές. Κεφ. 3
More CSS Sytax Colors ad Fots Χρώµατα και Γραµµατοσειρές Κεφ. 3 http://www.w3.org/wiki/css_basics CSS properties for colors Color specificatio 17 colour keywords (http://referece.sitepoit.com/css/colorvalues)
Γλώσσα περιγραφής οδηγιών εµφάνισης-στοιχειοθέτησης
CASCADING STYLE-SHEETS CASCADING STYLE-SHEETS Γλώσσα περιγραφής οδηγιών εµφάνισης-στοιχειοθέτησης εφαρµογών HTML. Τα CSS ορίζονται σε δύο συστάσεις του W3C: CSS1, εκ. 1996 περιλαµβάνει περίπου 50 ιδιότητες
Στην τεχνολογία των CSS, οι κανόνες στυλ (style
Δικτυακά Πολυμέσα ΙΙ Εργαστήριο #4 0 : CSS: Βασικές και προχωρημένες τεχνικές επιλογής, τα στοιχεία και , ψευδο κλάσεις και ψευδο επιλογείς Γαβαλάς Δαμιανός dgavalas@aegean.gr CSS κανόνες στυλ
Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS) Τα Cascading Style Sheets προσφέρουν έναν εύκολο τρόπο για να ορίσουμε τη μορφοποίηση που επιθυμούμε να έχουν οι σελίδες μία τοποθεσίας του Παγκόσμιου Ιστού που δημιουργούμε.
Διάλεξη 2η Εισαγωγή στο CSS
Διάλεξη 2η Εισαγωγή στο CSS Στέλιος Μόσχογλου Θεοδόσης Σουργκούνης Αντώνης Χρυσόπουλος I S S E L D e c o d e (Intelligent Systems & Software Engineering Lab) Στόχος της ώρας Τι είναι το CSS? Γιατί να χρησιμοποιήσω
Θέματα Προγραμματισμού Διαδικτύου ~ CSS ~
Θέματα Προγραμματισμού Διαδικτύου ~ CSS ~ Στελιος Σφακιανάκης Εαρινό 2019 Αυτή η εργασία χορηγείται με άδεια Creative Commons Αναφορά Δημιουργού - Μη Εμπορική Χρήση - Παρόμοια Διανομή 1 Εισαγωγή στο CSS
CSS 1. Διδάσκοντες: Π. Αγγελάτος, Δ. Ζήνδρος Επιμέλεια διαφανειών: Δ. Ζήνδρος Σχολή Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών
CSS 1 Διδάσκοντες: Π. Αγγελάτος, Δ. Ζήνδρος Επιμέλεια διαφανειών: Δ. Ζήνδρος Σχολή Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών Άδεια Χρήσης Το παρόν εκπαιδευτικό υλικό υπόκειται σε άδειες χρήσης Creative
Γαβαλάς Δαμιανός dgavalas@aegean.gr. Δικτυακά Πολυμέσα ΙΙ Εργαστήριο #3 0 : Εισαγωγή στacascading Style Sheets (CSS)
Δικτυακά Πολυμέσα ΙΙ Εργαστήριο #3 0 : Εισαγωγή στacascading Style Sheets (CSS) Γαβαλάς Δαμιανός dgavalas@aegean.gr Επικαλυπτόμενα Φύλλα Στυλ (Cascading Style Sheets, CSS) Η (X)HTML προσδιορίζει τη βασική
Η ΓΛΩΣΣΑ ΕΠΙΚΑΛΥΠΤΩΜΕΝΩΝ ΜΟΡΦΟΠΟΙΗΣΕΩΝ CSS
Η ΓΛΩΣΣΑ ΕΠΙΚΑΛΥΠΤΩΜΕΝΩΝ ΜΟΡΦΟΠΟΙΗΣΕΩΝ CSS Πίνακες Ιδιοτήτων Μορφοποίησης CSS Ιδιότητες Διαστασιολόγησης Στοιχείων height Ορίζει το ύψος ενός στοιχείου auto lenght (px) line-height Ορίζει το ύφος μιας
IIT JEE (2013) (Trigonomtery 1) Solutions
L.K. Gupta (Mathematic Classes) www.pioeermathematics.com MOBILE: 985577, 677 (+) PAPER B IIT JEE (0) (Trigoomtery ) Solutios TOWARDS IIT JEE IS NOT A JOURNEY, IT S A BATTLE, ONLY THE TOUGHEST WILL SURVIVE
Europe Code Week 7-22 Οκτωβρίου Μία γιορτή δημιουργίας με κώδικα
Europe Code Week 7-22 Οκτωβρίου 2017 7-22 October 2017 Μία γιορτή δημιουργίας με κώδικα @CodeWeekEU #codeeu codeeu Εισαγωγή στο Web Development CSS Λίγα λόγια... Η γλώσσα CSS χρησιμοποιείται για τη μορφοποίηση
Εισαγωγή σε HTML και CSS. Παναγιώτης Τσαρχόπουλος
Εισαγωγή σε HTML και CSS Παναγιώτης Τσαρχόπουλος Περιεχόμενα Εισαγωγικές έννοιες Ορολογία και σύνταξη Κείμενο σε HTML έγγραφα Σύνδεσμοι Ψηφιακές - Ευφυείς Πόλεις - Εισαγωγή σε HTML και CSS 2 Εισαγωγικές
SUPERPOSITION, MEASUREMENT, NORMALIZATION, EXPECTATION VALUES. Reading: QM course packet Ch 5 up to 5.6
SUPERPOSITION, MEASUREMENT, NORMALIZATION, EXPECTATION VALUES Readig: QM course packet Ch 5 up to 5. 1 ϕ (x) = E = π m( a) =1,,3,4,5 for xa (x) = πx si L L * = πx L si L.5 ϕ' -.5 z 1 (x) = L si
1. <body> 2. <header> 3. <h1> My Page </h1> 4. </header> 5. <section>
Ενδεικτικές ερωτήσεις 1. Τι σημαίνουν τα αρχικά CSS 2. Τι σημαίνουν τα αρχικά HTML 3. Ποια η διαφορά μεταξύ Internet και Web; a. Είναι το ίδιο b. Το Web είναι μια υπηρεσία του διαδικτύου 4. Ποια η διαφορά
Homework 4.1 Solutions Math 5110/6830
Homework 4. Solutios Math 5/683. a) For p + = αp γ α)p γ α)p + γ b) Let Equilibria poits satisfy: p = p = OR = γ α)p ) γ α)p + γ = α γ α)p ) γ α)p + γ α = p ) p + = p ) = The, we have equilibria poits
Εργαλεία Ανάπτυξης Εφαρμογών Internet. Δ.Ι.Ε.Κ. Γλυφάδας Τεχνικός Εφαρμογών Πληροφορικής
Εργαλεία Ανάπτυξης Εφαρμογών Internet Δ.Ι.Ε.Κ. Γλυφάδας Τεχνικός Εφαρμογών Πληροφορικής Το πρότυπο CSS Α Μέρος 2 CSS (Cascading Style Sheets)(1) Ορίζουν την εμφάνιση των στοιχείων σε ένα έγγραφο HTML.
3. ΕΙΣΑΓΩΓΗ ΣΤΟ CSS ΓΙΩΡΓΟΣ ΓΙΑΝΝΑΚΑΚΗΣ, ΜΑΝΩΛΗΣ ΤΣΙΚΝΑΚΗΣ
2014 3. ΕΙΣΑΓΩΓΗ ΣΤΟ CSS ΓΙΩΡΓΟΣ ΓΙΑΝΝΑΚΑΚΗΣ, ΜΑΝΩΛΗΣ ΤΣΙΚΝΑΚΗΣ Εισαγωγή Το CSS (Cascading Style Sheets) είναι αρχεία με κατάληξη.css τα οποία καθορίζουν την μορφοποίηση των ιστοσελίδων. Μέσω αυτών επιτυγχάνεται
1. For each of the following power series, find the interval of convergence and the radius of convergence:
Math 6 Practice Problems Solutios Power Series ad Taylor Series 1. For each of the followig power series, fid the iterval of covergece ad the radius of covergece: (a ( 1 x Notice that = ( 1 +1 ( x +1.
Οδηγίες Στο σημερινό εργαστήριο θα αρχίσετε να χρησιμοποιείτε βασικές οδηγίες μορφοποίησης της ιστοσελίδας σας (κάτι που έχουμε αποφύγει έως τώρα!).
Εργαστήριο #8 Τι πρέπει να έχετε ολοκληρώσει από το προηγούμενο εργαστήριο. Το σημερινό εργαστήριο είναι ανεξάρτητο από τα προηγούμενα, επειδή όμως θα ζητηθεί να ανακυκλώσετε υλικό από εκείνα, βεβαιωθείτε
L.K.Gupta (Mathematic Classes) www.pioeermathematics.com MOBILE: 985577, 4677 + {JEE Mai 04} Sept 0 Name: Batch (Day) Phoe No. IT IS NOT ENOUGH TO HAVE A GOOD MIND, THE MAIN THING IS TO USE IT WELL Marks:
Homework for 1/27 Due 2/5
Name: ID: Homework for /7 Due /5. [ 8-3] I Example D of Sectio 8.4, the pdf of the populatio distributio is + αx x f(x α) =, α, otherwise ad the method of momets estimate was foud to be ˆα = 3X (where
Διάλεξη 4η CSS intermediate
Διάλεξη 4η CSS intermediate Στέλιος Μόσχογλου Θεοδόσης Σουργκούνης Αντώνης Χρυσόπουλος I S S E L D e. c o. d e (Intelligent Systems & Software Engineering Lab) Στόχος της ώρας Κλάσεις & Ids Εμφώλευση &
Η Βίβλος των CSS. Εισαγωγή στα CSS
Η Βίβλος των CSS Εισαγωγή στα CSS Τα Διαδοχικά Φύλλα Στυλ (CSS, Cascading Style Sheets) αποτελούν ένα πολύ καλό εργαλείο για να μπορούμε να αλλάζουμε την εμφάνιση και τη διάταξη (layout) των ιστοσελίδων
ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007
Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Αν κάπου κάνετε κάποιες υποθέσεις να αναφερθούν στη σχετική ερώτηση. Όλα τα αρχεία που αναφέρονται στα προβλήματα βρίσκονται στον ίδιο φάκελο με το εκτελέσιμο
CSS. Εισαγωγή & Βασικές έννοιες. Cascading Style Sheets. Επικαλυπτόμενα φύλλα στυλ
CSS Εισαγωγή & Βασικές έννοιες Cascading Style Sheets Επικαλυπτόμενα φύλλα στυλ Περιεχόμενα Τι είναι CSS Πλεονεκτήματα CSS μορφοποίησης Συντακτικό του CSS Ιδιότητες CSS Εφαρμογή CSS κανόνων Επικάλυψη CSS
Ετικέτες HTML. <!-->: Τα σχόλια χρησιμοποιούνται για να γράφουμε σημειώσεις μέσα στον
Ετικέτες HTML : Τα σχόλια χρησιμοποιούνται για να γράφουμε σημειώσεις μέσα στον πηγαίο κώδικα για να διευκολύνουμε την επεξεργασία και την συντήρηση του αρχείου. Τα σχόλια δεν εμφανίζονται στην οθόνη
Εργαστήριο 9. Styling with Javascript
Εργαστήριο 9 Styling with Javascript Pimp my Text with Javascript Today you'll write a page where the user can type text into a box, and by clicking on UI controls, the user can "pimp out" the text by
ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006
Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Ολοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα είναι μικρότεροι το 1000 εκτός αν ορίζεται διαφορετικά στη διατύπωση του προβλήματος. Διάρκεια: 3,5 ώρες Καλή
CSS 2. Διδάσκοντες: Π. Αγγελάτος, Δ. Ζήνδρος Επιμέλεια διαφανειών: Π. Αγγελάτος. Σχολή Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών
CSS 2 Διδάσκοντες: Π. Αγγελάτος, Δ. Ζήνδρος Επιμέλεια διαφανειών: Π. Αγγελάτος Σχολή Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών Άδεια Χρήσης Το παρόν εκπαιδευτικό υλικό υπόκειται σε άδειες χρήσης
Εργαστήριο #9 Τι πρέπει να έχετε ολοκληρώσει από το προηγούμενο εργαστήριο. βεβαιωθείτε ότι έχετε ολοκληρώσει τις προηγούμενες ασκήσεις Οδηγίες
Εργαστήριο #9 Τι πρέπει να έχετε ολοκληρώσει από το προηγούμενο εργαστήριο. Το σημερινό εργαστήριο είναι ανεξάρτητο από τα προηγούμενα, επειδή όμως θα ζητηθεί να ανακυκλώσετε υλικό από εκείνα, βεβαιωθείτε
Σχεδιασμός και Ανάπτυξη Ιστότοπων
Βελώνης Γεώργιος Καθηγητής Σχεδιασμός και Ανάπτυξη Ιστότοπων Εισαγωγή στα CSS (Cascading Style Sheets) Παρουσίαση 13 η 1 Βελώνης Γεώργιος Καθηγητής Περιεχόμενα Εισαγωγή Πλεονεκτήματα χρήσης των CSS Βασικοί
Η γλώσσα CSS χρησιμοποιείται για τη μορφοποίηση ιστοσελίδων και η σύνταξη της είναι αρκετά απλή.
Εισαγωγή στο CSS Η γλώσσα CSS χρησιμοποιείται για τη μορφοποίηση ιστοσελίδων και η σύνταξη της είναι αρκετά απλή. Πλεονεκτήματα CSS έναντι χρήσης μόνο HTML Μεγαλύτερη ευελιξία μορφοποιήσεων. Το CSS κατέστησε
Βασικά στοιχεία του CSS
Βασικά στοιχεία του CSS Περιεχόμενα Τι είναι CSS Πλεονεκτήματα CSS μορφοποίησης Συντακτικό του CSS Ιδιότητες CSS Εφαρμογή CSS κανόνων Επικάλυψη CSS κανόνων 2 Μορφοποίηση με HTML Η HTML είναι σχεδιασμένη
<a href="http://www.somepage.com/somepage.html">μετάβαση στο κείμενο</a>.
HTML Τα αρχεία της HTML έχουν ετικέτες (tags) που ορίζουν τη δομή και τη μορφοποίηση των ιστοσελίδων. Οι περισσότερες HTML ετικέτες τις συναντούμε ως ζεύγη τα οποία ενεργούν στα περιεχόμενα μεταξύ των
n r f ( n-r ) () x g () r () x (1.1) = Σ g() x = Σ n f < -n+ r> g () r -n + r dx r dx n + ( -n,m) dx -n n+1 1 -n -1 + ( -n,n+1)
8 Higher Derivative of the Product of Two Fuctios 8. Leibiz Rule about the Higher Order Differetiatio Theorem 8.. (Leibiz) Whe fuctios f ad g f g are times differetiable, the followig epressio holds. r
Άσκηση 6 Επαναληπτική Άσκηση HTML
Άσκηση 6 Επαναληπτική Άσκηση HTML ΕΤΙΚΕΤΕΣ HTML ΕΤΙΚΕΤΑ ΠΕΡΙΓΡΑΦΗ ΙΔΙΟΤΗΤΕΣ ΙΔΙΟΤΗΤΑ ΤΙΜΗ ΠΕΡΙΓΡΑΦΗ Βασικές Ορίζει τον τύπο του αρχείου Ορίζει ένα αρχείο HTML Ορίζει ένα τίτλο
Cascading Style Sheets
Cascading Style Sheets CSS είναι το ακρωνύµιο του Cascading Style Sheets (Επικαλυπτόµενα φύλλα στυλ). CSS είναι µια γλώσσα style δηλ. µια γλώσσα η οποία καθορίζει τη εµφάνιση HTML εγγράφων. Για παράδειγµα,
Σχεδιασμός και Ανάπτυξη Ιστότοπων
Σχεδιασμός και Ανάπτυξη Ιστότοπων CSS: Ιδιότητες μορφοποίησης κειμένου Παρουσίαση 14 η 1 Βελώνης Γεώργιος Καθηγητής Browsers δοκιμών Οι δοκιμές έγιναν στους παρακάτω browsers και εκδόσεις τους: Google
Διάλεξη 6η CSS Advanced
Διάλεξη 6η CSS Advanced Στέλιος Μόσχογλου Θεοδόσης Σουργκούνης Αντώνης Χρυσόπουλος I S S E L D e. c o. d e. (Intelligent Systems & Software Engineering Lab) Στόχος της ώρας Block & Inline elements Advanced
ΕΡΓΑΣΤΗΡΙΑΚΗ ΑΣΚΗΣΗ 2 ΜΕΛΕΤΗ ΚΑΙ ΕΦΑΡΜΟΓΗ ΔΗΜΙΟΥΡΓΙΑΣ HTML ΣΕΛΙΔΩΝ ΣΥΝΔΕΣΜΟΙ
ΕΡΓΑΣΤΗΡΙΑΚΗ ΑΣΚΗΣΗ 2 ΜΕΛΕΤΗ ΚΑΙ ΕΦΑΡΜΟΓΗ ΔΗΜΙΟΥΡΓΙΑΣ HTML ΣΕΛΙΔΩΝ ΣΥΝΔΕΣΜΟΙ Στην άσκηση αυτή θα εμπλουτίσουμε την ιστοσελίδα που φτιάξαμε στην προηγούμενη άκηση με πίνακες, συνδέσμους και γραφικά. 1.
The Simply Typed Lambda Calculus
Type Inference Instead of writing type annotations, can we use an algorithm to infer what the type annotations should be? That depends on the type system. For simple type systems the answer is yes, and
Το απεικονιστικό μοντέλο μορφοποίησης των CSS
Δικτυακά Πολυμέσα ΙΙ Εργαστήριο #6 0 : CSS: Χρήση των ιδιοτήτων του κουτιού (box properties). Διάταξη σελίδων Γαβαλάς Δαμιανός dgavalas@aegean.gr Το απεικονιστικό μοντέλο μορφοποίησης των CSS Περιγράφει
CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS
CHAPTER 5 SOLVING EQUATIONS BY ITERATIVE METHODS EXERCISE 104 Page 8 1. Find the positive root of the equation x + 3x 5 = 0, correct to 3 significant figures, using the method of bisection. Let f(x) =
ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011
Διάρκεια Διαγωνισμού: 3 ώρες Απαντήστε όλες τις ερωτήσεις Μέγιστο Βάρος (20 Μονάδες) Δίνεται ένα σύνολο από N σφαιρίδια τα οποία δεν έχουν όλα το ίδιο βάρος μεταξύ τους και ένα κουτί που αντέχει μέχρι
Γαβαλάς Δαμιανός dgavalas@aegean.gr
Πανεπιστήμιο Αιγαίου Σχολή Κοινωνικών Επιστημών Τμήμα Πολιτισμικής Τεχνολογίας Και Επικοινωνίας Δικτυακά Πολυμέσα IΙ (Β Έτος, 4ο εξ) Εργαστήριο #3ο: Ορισμός επιλογέων, μορφοποίηση με CSS Γαβαλάς Δαμιανός
Περιεχόμενα. Γαβαλάς Δαμιανός
Δικτυακά Πολυμέσα ΙΙ Διάλεξη #5 η : Τυπογραφία στο web Γαβαλάς Δαμιανός dgavalas@aegean.gr Περιεχόμενα Κατανόηση αρχών σχεδιασμού με γραμματοσειρές Κατανόηση των μονάδων μέτρησης που χρησιμοποιούνται στα
CSS 3. Διδάσκοντες: Π. Αγγελάτος, Δ. Ζήνδρος Επιμέλεια διαφανειών: Π. Αγγελάτος Σχολή Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών
CSS 3 Διδάσκοντες: Π. Αγγελάτος, Δ. Ζήνδρος Επιμέλεια διαφανειών: Π. Αγγελάτος Σχολή Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών Άδεια Χρήσης Το παρόν εκπαιδευτικό υλικό υπόκειται σε άδειες χρήσης
Last Lecture. Biostatistics Statistical Inference Lecture 19 Likelihood Ratio Test. Example of Hypothesis Testing.
Last Lecture Biostatistics 602 - Statistical Iferece Lecture 19 Likelihood Ratio Test Hyu Mi Kag March 26th, 2013 Describe the followig cocepts i your ow words Hypothesis Null Hypothesis Alterative Hypothesis
Homework 3 Solutions
Homework 3 Solutions Igor Yanovsky (Math 151A TA) Problem 1: Compute the absolute error and relative error in approximations of p by p. (Use calculator!) a) p π, p 22/7; b) p π, p 3.141. Solution: For
Instruction Execution Times
1 C Execution Times InThisAppendix... Introduction DL330 Execution Times DL330P Execution Times DL340 Execution Times C-2 Execution Times Introduction Data Registers This appendix contains several tables
Code Breaker. TEACHER s NOTES
TEACHER s NOTES Time: 50 minutes Learning Outcomes: To relate the genetic code to the assembly of proteins To summarize factors that lead to different types of mutations To distinguish among positive,
Ψηφιακή Επεξεργασία Εικόνας
ΠΑΝΕΠΙΣΤΗΜΙΟ ΙΩΑΝΝΙΝΩΝ ΑΝΟΙΚΤΑ ΑΚΑΔΗΜΑΪΚΑ ΜΑΘΗΜΑΤΑ Ψηφιακή Επεξεργασία Εικόνας Φιλτράρισμα στο πεδίο των συχνοτήτων Διδάσκων : Αναπληρωτής Καθηγητής Νίκου Χριστόφορος Άδειες Χρήσης Το παρόν εκπαιδευτικό
Τεχνολογίες Διαδικτύου (Εξασκηθείτε στην HTML)
Τεχνολογίες Διαδικτύου (Εξασκηθείτε στην HTML) 1. Δημιουργία μιας απλής σελίδας HTML Ανοίξτε το Notepad ακολουθώντας τη διαδρομή Start All Programs Accessories Notepad Πληκτρολογήστε το ακόλουθο κείμενο:
Modbus basic setup notes for IO-Link AL1xxx Master Block
n Modbus has four tables/registers where data is stored along with their associated addresses. We will be using the holding registers from address 40001 to 49999 that are R/W 16 bit/word. Two tables that
department listing department name αχχουντσ ϕανε βαλικτ δδσϕηασδδη σδηφγ ασκϕηλκ τεχηνιχαλ αλαν ϕουν διξ τεχηνιχαλ ϕοην µαριανι
She selects the option. Jenny starts with the al listing. This has employees listed within She drills down through the employee. The inferred ER sttricture relates this to the redcords in the databasee
Η Βίβλος των CSS - Μέρος 3 Το Box Model, τα Περιθώρια και τα Περιγράμματα
Η Βίβλος των CSS - Μέρος 3 Το Box Model, τα Περιθώρια και τα Περιγράμματα Το Box Model Το box model στα CSS περιγράφει τα πλαίσια (boxes) που δημιουργούνται για τα στοιχεία (elements) της HTML. Το box
Σχεδίαση και Ανάπτυξη Ιστότοπων
Σχεδίαση και Ανάπτυξη Ιστότοπων HTML Καθορισμός Χρωμάτων και Γραμματοσειρών σε μια ιστοσελίδα Παρουσίαση 7 η Βελώνης Γεώργιος Καθηγητής 1 Σημασία συμβόλων HTML5 tags. Obsolete tags: Μην αφήνετε αυτές τις
3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β
3.4 SUM AND DIFFERENCE FORMULAS Page Theorem cos(αβ cos α cos β -sin α cos(α-β cos α cos β sin α NOTE: cos(αβ cos α cos β cos(α-β cos α -cos β Proof of cos(α-β cos α cos β sin α Let s use a unit circle
4.6 Autoregressive Moving Average Model ARMA(1,1)
84 CHAPTER 4. STATIONARY TS MODELS 4.6 Autoregressive Moving Average Model ARMA(,) This section is an introduction to a wide class of models ARMA(p,q) which we will consider in more detail later in this
Section 1: Listening and responding. Presenter: Niki Farfara MGTAV VCE Seminar 7 August 2016
Section 1: Listening and responding Presenter: Niki Farfara MGTAV VCE Seminar 7 August 2016 Section 1: Listening and responding Section 1: Listening and Responding/ Aκουστική εξέταση Στο πρώτο μέρος της
derivation of the Laplacian from rectangular to spherical coordinates
derivation of the Laplacian from rectangular to spherical coordinates swapnizzle 03-03- :5:43 We begin by recognizing the familiar conversion from rectangular to spherical coordinates (note that φ is used
Νέες Τεχνολογίες στην Εκπαίδευση
Σχολή Εφαρμοσμένων Μαθηματικών και Φυσικών Επιστημών Εθνικό Μετσόβιο Πολυτεχνείο Νέες Τεχνολογίες στην Εκπαίδευση Επάλληλα φύλλα στυλ (CSS): Μια εισαγωγή Στεφανέας Πέτρος Ζαμαρίας Βασίλης Άδεια Χρήσης
ΕΙΣΑΓΩΓΗ ΣΤΗΝ HTML ΣΧΟΛΙΚΟ ΒΙΒΛΙΟ ΚΕΦΑΛΑΙΟ 11 Ευάγγελος Χ. Ζιούλας (Καθηγητής Πληροφορικής)
http://www.zioulas.gr ΕΙΣΑΓΩΓΗ ΣΤΗΝ HTML ΣΧΟΛΙΚΟ ΒΙΒΛΙΟ ΚΕΦΑΛΑΙΟ 11 Ευάγγελος Χ. Ζιούλας (Καθηγητής Πληροφορικής) WEB SERVER Είναι μια εφαρμογή software που αναλαμβάνει την αποστολή μιας ιστοσελίδας σε
BRAND MANUAL AND USER GUIDELINES
ΑΠΟΓΡΑΦΗ ΠΛΗΘΥΣΜΟΥ-ΚΑΤΟΙΚΙΩΝ 2021 ΕΛΛΗΝΙΚΗ ΣΤΑΤΙΣΤΙΚΗ ΑΡΧΗ BRAND MANUAL AND USER GUIDELINES BRIEF THE SCOPE Το 2021 θα πραγματοποιηθεί στην Ελλάδα η Γενική Απογραφή Πληθυσμού Κατοικιών που διενεργείται
Συντακτικές λειτουργίες
2 Συντακτικές λειτουργίες (Syntactic functions) A. Πτώσεις και συντακτικές λειτουργίες (Cases and syntactic functions) The subject can be identified by asking ποιος (who) or τι (what) the sentence is about.
Right Rear Door. Let's now finish the door hinge saga with the right rear door
Right Rear Door Let's now finish the door hinge saga with the right rear door You may have been already guessed my steps, so there is not much to describe in detail. Old upper one file:///c /Documents
Γλώσσες'Σήμανσης' 'Markup' Languages
Ανασκόπηση Γλώσσες Σήμανσης Γλώσσες'Σήμανσης' 'Markup' Languages Εισαγωγή στην HTML Βασικές έννοιες Σύνταξη Στοιχείων HTML Δομή αρχείων HTML Μοντέλο Αντικειμένου Εγγράφων (DOM) Σημασιολογία Καλές Πρακτικές
Σπουδές CAD, Πληροφορικής, Οικονομίας, Διοίκησης και D.T.P. με Σύστημα διδασκαλίας facetoface
Copyright 2009-2012 -SYSTEM- All rights reserved 2/159 ΠΕΡΙΕΧΟΜΕΝΑ Μάθημα 1: New - Save Μάθημα 2: Εισαγωγή στη CSS Μάθημα 3: Τρόπος Σύνταξης Μάθημα 4: Σχόλια Μάθημα 5: ID Μάθημα 6: Class Μάθημα 7: Background
Coding Bootcamp. Εισαγωγή στo CSS
Εισαγωγή στo CSS CSS (Cascading Style Sheets) Η Html σχεδιάστηκε αρχικά για να προβάλλει κείμενο και είχε σκοπό να «ορίσει» το περιεχόμενο μιας σελίδας υπό την έννοια ποιο κείμενο είναι επικεφαλίδα, ποιο
Section 8.3 Trigonometric Equations
99 Section 8. Trigonometric Equations Objective 1: Solve Equations Involving One Trigonometric Function. In this section and the next, we will exple how to solving equations involving trigonometric functions.
Μηχανική Μάθηση Hypothesis Testing
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ Μηχανική Μάθηση Hypothesis Testing Γιώργος Μπορμπουδάκης Τμήμα Επιστήμης Υπολογιστών Procedure 1. Form the null (H 0 ) and alternative (H 1 ) hypothesis 2. Consider
C.S. 430 Assignment 6, Sample Solutions
C.S. 430 Assignment 6, Sample Solutions Paul Liu November 15, 2007 Note that these are sample solutions only; in many cases there were many acceptable answers. 1 Reynolds Problem 10.1 1.1 Normal-order
Συστήματα Διαχείρισης Βάσεων Δεδομένων
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ Συστήματα Διαχείρισης Βάσεων Δεδομένων Φροντιστήριο 9: Transactions - part 1 Δημήτρης Πλεξουσάκης Τμήμα Επιστήμης Υπολογιστών Tutorial on Undo, Redo and Undo/Redo
Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)
Phys460.nb 81 ψ n (t) is still the (same) eigenstate of H But for tdependent H. The answer is NO. 5.5.5. Solution for the tdependent Schrodinger s equation If we assume that at time t 0, the electron starts
14 Lesson 2: The Omega Verb - Present Tense
Lesson 2: The Omega Verb - Present Tense Day one I. Word Study and Grammar 1. Most Greek verbs end in in the first person singular. 2. The present tense is formed by adding endings to the present stem.
Α ΛΥΚΕΙΟΥ - ΕΦΑΡΜΟΓΕΣ ΠΛΗΡΟΦΟΡΙΚΗΣ ΜΑΪΟΣ 2019 ΕΝΔΕΙΚΤΙΚΕΣ ΕΡΩΤΗΣΕΙΣ ΚΑΤΑΝΟΗΣΗΣ
Το υλικό αυτό δίνεται στους μαθητές για τη σωστή μελέτη της διδαχθείσας ύλης του μέρους Β. Πρόκειται για ένα συμπαγή κορμό ερωτήσεων και ασκήσεων οι οποίες καλύφθηκαν κατά τη διάρκεια της έως τώρα σχολικής
n Εξαίρεση το title, το οποίο εμφανίζεται στο πλαίσιο του n Τίτλο αρχείου n Οδηγίες που αφορούν στον πλοηγό n Μεταπληροφορίες για το αρχείο
Γιατί χρειάζεται η«αόρατη» επικεφαλίδα (head elemet) των αρχείων HTML; Τι είναι το RSS Feed; Ανασκόπηση Στοιχείων HTML Πόσους τρόπους μας παρέχει η HTML για τη δημιουργία ζεύξεων; Τι μεταδεδομένα μπορούμε
Εκπαιδευτικά Περιβάλλοντα Διαδικτύου
ΑΡΙΣΤΟΤΕΛΕΙΟ ΠΑΝΕΠΙΣΤΗΜΙΟ ΘΕΣΣΑΛΟΝΙΚΗΣ ΑΝΟΙΚΤΑ ΑΚΑΔΗΜΑΪΚΑ ΜΑΘΗΜΑΤΑ Εκπαιδευτικά Περιβάλλοντα Διαδικτύου Ενότητα 6: CSS Θρασύβουλος-Κωνσταντίνος Τσιάτσος Άδειες Χρήσης Το παρόν εκπαιδευτικό υλικό υπόκειται
ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007
Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Όλοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα μικρότεροι του 10000 εκτός αν ορίζεται διαφορετικά στη διατύπωση του προβλήματος. Αν κάπου κάνετε κάποιες υποθέσεις
Volume of a Cuboid. Volume = length x breadth x height. V = l x b x h. The formula for the volume of a cuboid is
Volume of a Cuboid The formula for the volume of a cuboid is Volume = length x breadth x height V = l x b x h Example Work out the volume of this cuboid 10 cm 15 cm V = l x b x h V = 15 x 6 x 10 V = 900cm³
ΣΗΜΑΣΙΟΛΟΓΙΚΟΣ ΙΣΤΟΣ - XML
ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΩΣ ΤΜΗΜΑ ΨΗΦΙΑΚΩΝ ΣΥΣΤΗΜΑΤΩΝ ΣΗΜΑΣΙΟΛΟΓΙΚΟΣ ΙΣΤΟΣ - XML Εργαστήριο 4 Στουγιάννου Ελευθερία estoug@unipi.gr Περιεχόμενα Τέταρτου Εργαστηριακού Μαθήματος XML CSS (CASCADING STYLE SHEETS)
Section 7.6 Double and Half Angle Formulas
09 Section 7. Double and Half Angle Fmulas To derive the double-angles fmulas, we will use the sum of two angles fmulas that we developed in the last section. We will let α θ and β θ: cos(θ) cos(θ + θ)
Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in
Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in : tail in X, head in A nowhere-zero Γ-flow is a Γ-circulation such that
Writing for A class. Describe yourself Topic 1: Write your name, your nationality, your hobby, your pet. Write where you live.
Topic 1: Describe yourself Write your name, your nationality, your hobby, your pet. Write where you live. Χρησιμοποίησε το and. WRITE your paragraph in 40-60 words... 1 Topic 2: Describe your room Χρησιμοποίησε
Finite Field Problems: Solutions
Finite Field Problems: Solutions 1. Let f = x 2 +1 Z 11 [x] and let F = Z 11 [x]/(f), a field. Let Solution: F =11 2 = 121, so F = 121 1 = 120. The possible orders are the divisors of 120. Solution: The
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών
ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ Ψηφιακή Οικονομία Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών Τέλος Ενότητας Χρηματοδότηση Το παρόν εκπαιδευτικό υλικό έχει αναπτυχθεί
Paper Reference. Paper Reference(s) 1776/04 Edexcel GCSE Modern Greek Paper 4 Writing. Thursday 21 May 2009 Afternoon Time: 1 hour 15 minutes
Centre No. Candidate No. Paper Reference(s) 1776/04 Edexcel GCSE Modern Greek Paper 4 Writing Thursday 21 May 2009 Afternoon Time: 1 hour 15 minutes Materials required for examination Nil Paper Reference
Galatia SIL Keyboard Information
Galatia SIL Keyboard Information Keyboard ssignments The main purpose of the keyboards is to provide a wide range of keying options, so many characters can be entered in multiple ways. If you are typing
ΦΥΛΛΟ ΕΡΓΑΣΙΑΣ Α. Διαβάστε τις ειδήσεις και εν συνεχεία σημειώστε. Οπτική γωνία είδησης 1:.
ΦΥΛΛΟ ΕΡΓΑΣΙΑΣ Α 2 ειδήσεις από ελληνικές εφημερίδες: 1. Τα Νέα, 13-4-2010, Σε ανθρώπινο λάθος αποδίδουν τη συντριβή του αεροσκάφους, http://www.tanea.gr/default.asp?pid=2&artid=4569526&ct=2 2. Τα Νέα,
HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:
HOMEWORK 4 Problem a For the fast loading case, we want to derive the relationship between P zz and λ z. We know that the nominal stress is expressed as: P zz = ψ λ z where λ z = λ λ z. Therefore, applying
Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible.
B-Trees Index files can become quite large for large main files Indices on index files are possible 3 rd -level index 2 nd -level index 1 st -level index Main file 1 The 1 st -level index consists of pairs
Concrete Mathematics Exercises from 30 September 2016
Concrete Mathematics Exercises from 30 September 2016 Silvio Capobianco Exercise 1.7 Let H(n) = J(n + 1) J(n). Equation (1.8) tells us that H(2n) = 2, and H(2n+1) = J(2n+2) J(2n+1) = (2J(n+1) 1) (2J(n)+1)
Οδηγίες Αγοράς Ηλεκτρονικού Βιβλίου Instructions for Buying an ebook
Οδηγίες Αγοράς Ηλεκτρονικού Βιβλίου Instructions for Buying an ebook Βήμα 1: Step 1: Βρείτε το βιβλίο που θα θέλατε να αγοράσετε και πατήστε Add to Cart, για να το προσθέσετε στο καλάθι σας. Αυτόματα θα
Inverse trigonometric functions & General Solution of Trigonometric Equations. ------------------ ----------------------------- -----------------
Inverse trigonometric functions & General Solution of Trigonometric Equations. 1. Sin ( ) = a) b) c) d) Ans b. Solution : Method 1. Ans a: 17 > 1 a) is rejected. w.k.t Sin ( sin ) = d is rejected. If sin
ΑΛΛΗΛΕΠΙΔΡΑΣΗ ΑΝΘΡΩΠΟΥ - ΥΠΟΛΟΓΙΣΤΗ. Διδάσκων: Κωνσταντίνος Στεφανίδης
ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ ΣΧΟΛΗ ΘΕΤΙΚΩΝ ΕΠΙΣΤΗΜΩΝ ΤΜΗΜΑ ΕΠΙΣΤΗΜΗΣ ΥΠΟΛΟΓΙΣΤΩΝ ΜΑΘΗΜΑ ΕΠΙΛΟΓΗΣ ΗΥ-464 ΑΛΛΗΛΕΠΙΔΡΑΣΗ ΑΝΘΡΩΠΟΥ - ΥΠΟΛΟΓΙΣΤΗ Διδάσκων: Κωνσταντίνος Στεφανίδης Adobe XD is an all-in-one cross-platform
p n r.01.05.10.15.20.25.30.35.40.45.50.55.60.65.70.75.80.85.90.95
r r Table 4 Biomial Probability Distributio C, r p q This table shows the probability of r successes i idepedet trials, each with probability of success p. p r.01.05.10.15.0.5.30.35.40.45.50.55.60.65.70.75.80.85.90.95
Markup Languages. Γλώσσες Σήμανσης. Ανασκόπηση. Document Content «Περιεχόμενο» Εγγράφων. Γλώσσες Σήμανσης. Documents characterised by:
What is the logical structure of a documet? Markup Laguages Γλώσσες Σήμανσης What is the differece betwee logical structure (λογική δομή), sematics (σημασιολογία) ad presetatio (παρουσίαση) of a documet?
DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0.
DESIGN OF MACHINERY SOLUTION MANUAL -7-1! PROBLEM -7 Statement: Design a double-dwell cam to move a follower from to 25 6, dwell for 12, fall 25 and dwell for the remader The total cycle must take 4 sec
2 Composition. Invertible Mappings
Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan Composition. Invertible Mappings In this section we discuss two procedures for creating new mappings from old ones, namely,