Question:

Help with css external style sheet

by  |  earlier

0 LIKES UnLike

what is the proper way to get a repeat-y image from an external style sheet to show up on a html page? thank you!

 Tags:

   Report

3 ANSWERS


  1. I'm not certain what you're asking.  You need to know how to link or how to set a background image?

    To link your style sheet, type the following somewhere in header of the html file:

    <link rel="stylesheet" type="text/css" href="nameofyoursettings.css">

    Then, in the nameofyoursettings.css file create your background settings:

    elementforwhichyou'resettingbackground {background: url(where/the/image/is.jpg) left top repeat;}


  2. Use:

    tag/class_name/selector_name {

    background: #fff url(Path to image) repeat-y top left scroll;

    }

    If you want it to repeat in center of page then use: center

    and not 'top left'. There are other values to position image before it repeats 'y'.  If you want contents to scroll over image, change 'scroll' to 'fixed' (no quotes).  Change background color from white (#fff) to color of choice.

    Set the styling for the tag or class_name or selector_name of choice.

    Ron

  3. You mean a background image?

    There are several CSS properties associated with background images. You can read up on how to control the background of a web page with CSS at the link below.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions