Hi guys,
My CSS skill is very limited, I hope to get som advice from anyone of you who could help.
I’ll paste the css code which has the background that works as desired:
The second background which I wanted to accomplish is the entire background with gradient color. When I tried to embed with another image file it’ll overlap bank.png and the rest also. It works only if I applied normal color as in “[B]#D08504
Anyone could help?
Thanks in advance.
body {
margin: 0px;
padding: 0px;
background: [B]#D08504
text-align: justify;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
color: #333333;
}
h1, h2, h3, h4, h5, h6 {
font-family: Georgia, “Times New Roman”, Times, serif;
color: #3399FF;
}
a {
font-weight: bold;
text-decoration: none;
color: #33CCFF;
}
a:hover {
text-decoration: underline;
color: #33CCFF;
}
An element can have only one background image and one background color. If you really need a double background you'll have to overlay the body with a div.[/QUOTE]
You just put a full div inside the body and put your content in that.
<body>
<div>
<p>Boy, we're cookin' with gas now!</p>
</div>
</body>[/QUOTE]
Mmm... I think that's not exactly what I mean.
Perhaps by looking at the actual would give better picture of it.
You could download it fromhttp://dec2hex.googlepages.com/test.rar
[I]I've edited this page for this query purpose[/I]
In the index.html you would see back.png which is the right background that is declared in the body at stylesheet.
And my query was the entire orange background (#D08504), I want this to be gradient color, I thought I have to create a image for this gradient background, but how could I integrate them together?
Sorry for the long message. I hope I could express clearly for your advice.
Thanks.[/QUOTE]
[CODE]body {
margin: 0px;
padding: 0px;
text-align: justify;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
color: #333333;
[COLOR="Red"]background: #D08504 url(images/gradient.png) repeat-x;[/COLOR]
}
#content {
width: 770px;
margin: 0px auto;
padding: 20px 0px 0px 0px;
[COLOR="Red"]background-image: url(images/back.png);
overflow: hidden;[/COLOR]
}[/CODE]
The overflow setting is to force the div to surround the floats.What do you mean by "it became out of shape after the footer" ?[/QUOTE]
[CODE]html, body {
height: 100%;
}[/CODE]
[CODE]#content {
width: 770px;
margin: 0px auto;
padding: [COLOR="Red"]0[/COLOR];
background-image: url(images/back.png);
overflow: hidden;
[COLOR="Red"]min-height: 100%;[/COLOR]
}
[COLOR="Red"]* html #content {
height: 100%;
overflow: visible;
}[/COLOR][/CODE]
[CODE]#footer {
width: 770px;
height: 110px;
margin: [COLOR="Red"]-115px auto 0[/COLOR];
border-top: 1px solid #666666;
background: url(images/back-footer.png) repeat-y center top;
font-size: 9px;
text-align: center;
padding: 2px;
color: #333333;
[COLOR="Red"]position: relative;[/COLOR]
}[/CODE]
To avoid the footer covering any of the content, the two columns can get padding on the bottom of them equal to the footer height plus any gap you want :[CODE]#left {
float: left;
width: 480px;
padding: [COLOR="Red"]20px[/COLOR] 20px [COLOR="Red"]120px[/COLOR] 20px;
}
#right {
float: right;
width: 210px;
padding: [COLOR="Red"]20px[/COLOR] 20px [COLOR="Red"]120px[/COLOR] 20px;
color: #99CCFF;
}[/CODE]
the size of your monitor really has no bearing at all on how a webpage is displayed. However, the resolution you are using will. So, what screen resolution are you using on the 19" monitor.[/QUOTE]
You can always just use a background image on each of;
html {....}
body {....}
Because "body" is child of "html", you might use gradient for html, and positioned image for "body" and still have "background-image" free & available for container, wrapper, etc..
Not sure if this is of any help though (I have not tested any code from this thread)[/QUOTE]
0.1.9 — BETA 5.27