/    Sign up×
Community /Pin to ProfileBookmark

background image adjusts

Hi i m new ul designer , i have one doubt, How to make background image adjusts when browser re-adjusts. if any one help me

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@tejasApr 05.2013 — HTML:

<section class="bodySection">

<div id="body-wrapper" class="class="">

<div id="me"></div>

<div id="pattern"></div>

</div>

<div class="clearfix"></div>

</section><!--end of bodySection-->

CSS

html, body, #body-wrapper, .bodySection {height: 100%;}

#body-wrapper{

position: relative;

width:43%;

height: 100%;

}

#body-wrapper #me{

position: absolute;

top: 0;

left: 0;

height: 100%;

width: 100%;

background: url('http://designobvio.us/portfolio/img/Me.jpg') repeat-y;

z-index: 1;

-o-background-size:99% auto;

-webkit-background-size:100% auto;

-moz-background-size:99% auto;

background-size:100% auto;

-webkit-transition: all 0.20s ease-out;

-moz-transition: all 0.20s ease-out;

-o-transition: all 0.20s ease-out;

transition: all 0.20s ease-out;

}

#body-wrapper #pattern{

position: absolute;

top: 0;

left: 0;

height: 100%;

width: 100%;

background: url('http://designobvio.us/portfolio/img/sliderBG.png') repeat;

z-index: 2;

}
×

Success!

Help @madhanraju21 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.19,
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,
)...