Podstrony
- Strona startowa
- Mastering Delphi 6
- Abercrombie Joe Zemsta najlepiej smakuje na zimno
- Gabriel R.A. Scypion Afrykański Starszy. Największy wódz starożytnego Rzymu
- Anne McCaffrey Jezdzcy Smokow Niebiosa Pern
- Carter Stephen L. Elm Harbor 01 WÅ‚adca Ocean Park
- Robert Ludlum Krucjata Bourne'a (2)
- Ania01 Ania z Zielonego Wzgorza
- Cawthorne Nigel Zycie erotyczne wielkich dyktat
- Eddings Dav
- Duenas Maria Krawcowa z Madrytu
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- ugrzesia.htw.pl
[ Pobierz całość w formacie PDF ]
.(Note that the function name is plural.)The arguments to the margin property and margins() method are top, right,bottom and left margins respectively.For example:CSS Syntax/* top=10pt, right=20pt, bottom=30pt, left=40pt */P {margin:10pt 20pt 30pt 40pt;}/* set all P margins to 40 pt */Javascript Accessible Style Sheets 63Javascript-Accessible Style SheetsP {margin:40pt;}JavaScript Syntax/* top=10pt, right=20pt, bottom=30pt, left=40pt */tags.BODY.margins("10pt", "20pt", "30pt", "40pt");/* set all P margins to 40 pt */tags.P.margins("40pt");Adjoining margins of adjacent elements are added together, unless one of theelements has no content, in which case its margins are ignored.For example, ifan element with a bottom margin of 40 points, is followed by aelement with a top margin of 30 points, then the separation between the twoelements is 70 points.However, if the element has content, but theelement is empty, then the margin between them is 40 points.When margin properties are applied to replaced elements (such as antag), they express the minimal distance from the replaced element to any of thecontent of the parent element.The use of negative margins is not recommended because it may have unpre-dictable results.For a working example of setting margins, see the section Block-levelFormatting Overview and Example.PaddingCSS syntax names: padding-top, padding-right, padding-bottom,padding-left, paddingsJavaScript syntax names: paddingTop, paddingRight, paddingBottom,paddingLeft, and paddings()Possible values: length, percentageInitial value: 0Applies to: all elementsInherited: noPercentage values: refer to parent element's width64 Javascript-Accessible Style SheetsStyle Sheet PropertiesThese properties describe how much space to insert between the border of anelement and the content (such as text or image).You can set the padding oneach side individually by specifying values for padding-top/paddingTop,padding-right/paddingRight, padding-left/paddingLeft andpadding-bottom/paddingBottom.In CSS syntax you can use the padding property (note that it is paddingsingular) to set the padding for all four sides at once.In JavaScript syntax youcan use the paddings() method to set the margins for all four sides at once.The arguments to the padding property (CSS syntax) and the paddings()method (JavaScript syntax) are the top, right, bottom and left padding valuesrespectively.CSS Syntax/* top=10pt, right=20pt, bottom=30pt, left=40pt */P {padding:10pt 20pt 30pt 40pt;}/* set the padding on all sides of P to 40 pt */P {padding:40pt;}JavaScript Syntax/* top=10pt, right=20pt, bottom=30pt, left=40pt */tags.P.paddings("10pt", "20pt", "30pt", "40pt")/* set the padding on all sides of P to 40 pt */tags.P.paddings("40pt");Padding values cannot be negative.To specify the color or image that appears in the padding area, you can set thebackground color or background image of the element.For information aboutsetting background color, see the section Background Color.For informationabout setting a background image, see the section Background Image.For a working example of setting paddings, see the section Block-levelFormatting Overview and Example.Border WidthsCSS syntax names: border-top-width, border-bottom-width,border-left-width, border-right-width, border-widthJavascript Accessible Style Sheets 65Javascript-Accessible Style SheetsJavaScript syntax names: borderTopWidth, borderBottomWidth,borderLeftWidth, borderRightWidth, and borderWidths()Possible values: lengthInitial value: noneApplies to: all elementsInherited: noPercentage values: N/AThese properties set the width of a border around an element.You can set the width of the top border by specifying a value for border-top-width/borderTopWidth.You can set the width of the right border byspecifying a value for border-right-width/borderRightWidth.Youcan set the width of the bottom border by specifying a value for border-bottom-width/borderBottomWidth.You can set the width of the bottomborder by specifying a value for border-left-width/ borderLeft-Width.In CSS syntax, you can set all four borders at once by setting the border-width property.In JavaScript syntax you can set all four borders at once byusing the borderWidths() function.The arguments to the border-width property (CSS syntax) and the border-Widths() function (JavaScript syntax) are the top, right, bottom and leftborder widths respectively./* top=1pt, right=2pt, bottom=3pt, left=4pt */P {border-width:1pt 2pt 3pt 4pt;} /* CSS */tags.P.borderWidths("1pt", "2pt", "3pt", "4pt"); /* JavaScript syntax *//* set the border width to 2 pt on all sides */P {border-width:40pt;} /* CSS */tags.P.borderWidths("40pt"); /* JavaScript syntax */For a working example of setting border widths, see the section Block-levelFormatting Overview and Example.66 Javascript-Accessible Style SheetsStyle Sheet PropertiesBorder StyleCSS syntax name: border-styleJavaScript syntax name: borderStylePossible values:, none, solid, double, inset, outset,groove, ridgeInitial value: noneApplies to: all elementsInherited: noPercentage values: N/AThis property sets the style of a border around a block-level element.For the border to be visible however, you must also specify the border width.For details of setting the border width see the section Setting Border Widths,Color, and Style or the section Border Widths.For an example of each of the border values, see:borders.htm StyleSheetExampleBorder ColorCSS name: border-colorJavaScript syntax name:borderColorPossible values:none, colorvalueInitial value: noneApplies to: all elementsInherited: noPercentage values: N/AJavascript Accessible Style Sheets 67Javascript-Accessible Style SheetsThis property sets the color of the border.The color can either be a named color ora 6-digit hexadecimal value indicating a color or an rgb color value.For a list of the named colors, see the section Color Units.For example:CSS SyntaxP {border-color:blue;}BLOCKQUOTE {border-color:#0000FF;}H1 {border-color:rgb(0%, 0%, 100%);}JavaScript Syntaxtags.P.borderColor="blue";tags.BLOCKQUOTE.borderColor="#0000FF";tags.H1
[ Pobierz całość w formacie PDF ]