/    Sign up×
Community /Pin to ProfileBookmark

How to add image background to the top and at the bottom?

I have the following code as css and would like to add image to the top, bottom of my designed page. I kindly aks you how to add two images as there is currenty white space top and bottom.

Regards and thank you ?

Code is the following:

[code=html]

*
{
margin:0;
padding: 0;
}

#container
{
background-color: #678FC2;
}

#main
{
width: 955px;
margin: 0 auto;
font-size: 80%;
color: #54628a;
background-color: #FFFFFF;
line-height: 1.5em;
text-align: left;
}

body
{
font-family: Arial, Helvetica, sans-serif;
text-align: left;
font-size: 100%;
padding-top: 20px;
padding-bottom: 20px;
background-position: center;
}
[/code]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 12.2007 — Tryhtml {
background:#9cf url(image1.jpg) top center no-repeat;
}
body {
margin-top:100px; /* html image height */
background:#9cf url(image2.jpg) bottom center no-repeat;
}
×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...