SIDEBAR
»
S
I
D
E
B
A
R
«
Design your webpage’s Background using CSS
by sheri

Design your webpage’s Background using CSS

CSS is basically used to add style to your HTML document. Each part of the HTML document can be made attractive by using CSS. It can be made attractive by changing background color, by adding images in the background, use different font styles for different text, different hover style on text and images and a lot more. But providing background and adding style using CSS on your web page is one of the most important things while designing the web page. We must carefully analyze and choose what we can do with the background of our web page.

CSS background properties add different styles to the background of your web page. Most common CSS properties that can be used to define a style for the background of your web page are as follows:

        • background-color

     

        • background-image

     

        • background-repeat

     

        • background-attachment

     

      • background-position

    Background Color

    The background-color property defines the background color of the web page. You can add any color you want so that your web page looks attractive to your audience. This property is added in the body element of the HTML document.
    body {background-color : #ff0000;}
    The above style of defining the color is by defining the hex value of the color. We can do it by some other ways like,

    • HEX value – like “#ff0000”
    • RGB value – like “rgb(255,255,0)”
    • Color name – like “blue”

SIDEBAR
»
S
I
D
E
B
A
R
«
© Copyright cssblaze.com