Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

Online

À la maison Codes sources E-Livres Téléchargements Nous contacter Au sujet de nous

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


Propriétés de fond de CSS
Previous Next



  • Veuillez passer une certaine heure avec ce cours d'instruction si vous voulez donner le fond de votre site Web. Employer un fond clair avec le texte foncé, si vous visez pour un site Web professionnel. Cependant, n'importe quel genre de combinaison de couleur serait acceptable, si vous êtes juste faisant un site Web pour le plaisir.



  • Vous pouvez capable placer la couleur de fond ou l'image de n'importe quel élément de CSS avec l'aide du CSS. En outre, comment le fond d'image est montré, vous avez le contrôle de lui. Vous pouvez choisir de ne faire répéter lui verticalement, horizontalement, ou ni l'une ni l'autre direction. Vous pouvez également choisir d'avoir la position de rouleau de fond comme elle fait normalement ou restez dans un à position fixe. Comment mettre en application toutes ces options, les exemples suivants vous montreront.



  • Pour définir des effets de fond d'un élément, les propriétés de fond de CSS sont employées.




  • Fond de CSS

    Pour indiquer des informations sur la façon montrer la surface de fond sur laquelle le contenu (images, texte, etc.) est rendu, cette notation de propriété de sténographie est employée. Les milieux peuvent être des images et/ou des couleurs. Si une image est indiquée, beaucoup de choix sont disponibles pour indiquer le comportement d'affichage. Dans la même définition de propriété, un fond d'image et la couleur peuvent être indiqués, mais on ne l'exige pas pour avoir tous les deux. Les valeurs seront ignorées, si des propriétés de comportement d'URL sont énumérées sans URL de accompagnement. Bien que cette propriété n'hérite pas, en raison de la valeur « transparente » de fond-couleur de défaut dans les éléments d'enfants, le fond d'un élément de parent brillera à travers. Hors de plusieurs propriétés de sténographie, la propriété de fond est une qui indiquent des valeurs commandant beaucoup d'aspects du comportement d'affichage

    Couleur de fond de CSS

    Comme vous avez vu dans tous des cours d'instruction d'academictutorials, beaucoup de différentes couleurs de fond sont présentes. Sans employer des tables, ces milieux variables ont été obtenus. Au-dessous de sont deux exemples des milieux de CSS.

    <p style="background-color:yellow;">This text has a background color applied.</p>
    O/P :

    This text has a background color applied.

    Fond d'image de CSS

    quand les rouleaux d'utilisateur en bas de votre page peut-être que vous voudriez avoir une image qui demeure fixe. Avec le CSS, ceci peut être fait tout à fait facilement et davantage, incluant :

    • choix si un fond répétera et qui directions pour répéter le po.

    • positionnement de précision
    • faire défiler/images statiques

    Commençons par un fond d'image du défaut CSS.

    p { background-image: url(/images/sunset.jpg); }
    h1{ background-image: url(/images/winter.jpg); }
    O/P :
    p { background-image: url(/images/sunset.jpg); }
    h1{ background-image: url(/images/winter.jpg); }
    This <p> has a background image using a local path to the picture.


    Répétition de fond d'image

    Vous pouvez avoir une répétition de fond d'image horizontalement (x), verticalement (y), dans les deux directions, ou dans ni l'une ni l'autre direction.

    Code de CSS :
    p {
    background-image: url(smallPic.jpg);
    background-repeat: repeat; }
    h1 {
    background-image: url(smallPic.jpg);
    background-repeat: repeat-y; }
    ol {
    background-image: url(smallPic.jpg);
    background-repeat: repeat-x; }
    ul {
    background-image: url(smallPic.jpg);
    background-repeat: no-repeat; }
    Propriétés de fond de CSS

    Vous pouvez commander la couleur de fond d'un élément, placer une image comme fond, répéter un fond d'image verticalement ou horizontalement, et placer une image à une page avec l'aide des propriétés de fond de CSS.

    Appui de navigateur : IE : Internet Explorer, F : Firefox, N : Netscape.

    W3C : Le nombre dans la colonne de « W3C » indique dans quelle recommandation de CSS la propriété est défini (CSS1 ou CSS2)

    Property Description values
    background

    A shorthand property for setting all background properties in one declaration

    background-color
    background-image
    background-repeat
    background-attachment
    background-position
    background-attachment

    Sets whether a background image is fixed or scrolls with the rest of the page

    scroll
    fixed
    background-color Sets the background color of an element color-rgb
    color-hex
    color-name
    transparent
    background-image Sets an image as the background url
    none
    background-position Sets the starting position of a background image top left
    top center
    top right
    center left
    center center
    center right
    bottom left
    bottom center
    bottom right
    x-% y-%
    x-pos y-pos
    background-repeat Sets if/how a background image will be repeated repeat
    repeat-x
    repeat-y
    no-rep



    Previous Next

    Keywords: css code background for friendster, css background codes, css background image, free css background codes, friendster css background codes, css background image code, css background color, css background repeat, css table background opacity, css background position


    HTML Quizes
    HTML Quiz
    XHTML Quiz
    CSS Quiz
    TCP/IP Quiz
    XML Quizes
    XML Quiz
    XSL Quiz
    XSLT Quiz
    DTD Quiz
    Schema Quiz
    XForms Quiz
    XSL-FO Quiz
    XML DOM Quiz
    XLink Quiz
    XQuery Quiz
    XPath Quiz
    XPointer Quiz
    RDF Quiz
    SOAP Quiz
    WSDL Quiz
    RSS Quiz
    WAP Quiz
    Web Services Quiz
    Browser Scripting Quizes
    JavaScript Quiz
    VBScript Quiz
    AJAX Quiz
    DHTML Quiz
    HTML DOM Quiz
    WMLScript Quiz
    E4X Quiz
    Server Scripting Quizes
    ASP Quiz
    PHP Quiz
    PERL Quiz
    SQL Quiz
    ADO Quiz
    .NET (dotnet) Quizes
    Microsoft.Net Quiz
    XML Web Services Quiz
    ASP.Net Quiz
    .Net Mobile Quiz
    C# : C Sharp Quiz
    ADO.NET Quiz
    VB.NET Quiz
    Multimedia Quizes
    SVG Quiz
    Flash Quiz
    Media Quiz
    SMIL Quiz
    Web Building  Quizes
    Web Browsers Quiz
    Web Hosting Quiz
    W3C Quiz
    Web Building Quiz
    Web Quality Quiz
    Web Semantic Quiz
    Web Careers Quiz
    Java Quizes
    Java Quiz
    JSP Quiz
    Servlets Quiz
    Struts Quiz
    EJB Quiz
    JMS Quiz
    JMX Quiz
    Programming Langauges Quizes
    C Quiz
    C++ Quiz
    Visual Basic Quiz
    Data Structures Using C Quiz
    Soft Skills Quizes
    Communication Skills Quiz
    Time Management Quiz
    Project Management Quiz
    Team Work Quiz
    Leadership Skills Quiz
    Corporate Communication Quiz
    Negotiation Skills Quiz

    Privacy Policy
    Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.