/    Sign up×
Community /Pin to ProfileBookmark

background img problem

This is what I have I have background-image: url(images/text003.jpg); set as the main wall paper. I need background-image: url(images/pastels.png); to be centered in a table this is suppost to act as a table background only. when I set layer3 as 25% L 50 width it looks great and will validate. The problem is with my browser width accessiblity. Its all over the place. At different width
When I put layer3 at 0% L 100% width is covers the wallpaper from layer2. How do I get it to display properly and also be browser friendly and validate?

#Layer1 {
position:absolute;
width:105%;
height:115px;
z-index:3;
left: 0%;
top: 0%;
background-image: url(images/pastels.png);
#Layer2 {
position:absolute;
width:105%;
height:1050px;
z-index:1;
left: 0%;
top: 18%;
background-image: url(images/text003.jpg);
background-repeat: repeat;
background-color: #E0DFE3;
}
#Layer3 {
position:absolute;
width:100%;
height:943px;
z-index:1;
top: 10%;
left: 0%;
background-repeat: repeat;
background-image: url(images/pastels.png);

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@Rossario123Aug 28.2006 — use this from now on

replace XX with a numerical value

as well use pixels to make the width of the div.

leave left:50%; as is.

<i>
</i>&lt;style type="text/css"&gt;
.MyClassSelector{position:absolute;left:50%;top:XXpx;margin-left:XXpx;z-index:XX;}
&lt;/style&gt;
Copy linkTweet thisAlerts:
@NS_GraphicsauthorAug 28.2006 — The owen hack?

I dont know CSS

Is there a different way or can you explain? I put that in and all my coding became uneditable?
Copy linkTweet thisAlerts:
@Rossario123Aug 28.2006 — that is not the owen hack lol sorry if you missunderstood me

i ment that as a visual example of how to position your div so that it is suitable in al browser resolution and/or browsers.
Copy linkTweet thisAlerts:
@NS_GraphicsauthorAug 28.2006 — O ok thanks a lot.
×

Success!

Help @NS_Graphics 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.9,
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,
)...