Jump to content

Recommended Posts

Can anyone give me some step by stpe guidance as to how to get images files, borders etc in a master page layout as an external template file.

 

Is it linked like:

 

<bodystyle="filename.what" src"/filename.what"></bodystyle>

 

I am not sure what the what should be or the link or how to set up the page ina file even.

 

Can someone give me some guidance please.

Share this post


Link to post
Share on other sites

Sample for you CSS file:

>
.stylename {
background-image: url(../images/imagename.jpg);
background-repeat: no-repeat;
}

Where

.stylename is a class example. It can be #name for an id or an HTML element name.

 

background-image: is the url to the image (this can be tough to get right, might try using absolute path e.g. mydomain/images/imagename.jpg)

 

background-repeat: is how the image is repeated within the block. no-repeat means do not repeat. repeat-x means repeat across the page. repeat-y means repeat down the height of the container.

 

More info here: http://www.w3schools.com/css/css_background.asp

 

 

Share this post


Link to post
Share on other sites

Thanks for this I will give it a go.

 

I had a look at the link and you need to add HTML on each page as well as;

 

<html>

<head>

<style type="text/css">

body {background-image:url('imagename.jpg')

</style>

</head>

<body>

</body>

</html>

 

What would the CSS code be for my banner which is at the top not a backround?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×