/    Sign up×
Community /Pin to ProfileBookmark

Background width outside page area

For the blue background color I placed outside my main page at the right side(the website is robotdukkani.com), I adjusted the width (353 px) so that it would fill the rest of the page, but not more so that it will not cause any scroller at the bottom of the browser to appear to shift the page left right etc…So 353 px is max I can do to fill the page, if it is more, the left right scroller at the bottom of the browser appears. My computer is a laptop which has a wide screen. However when I checked it from another computer, which has a square screen, the 353 px is much more than needed and cause the bottom of the browser window to make the left right scroller which I dont want. How can I make the blue background to adjust its width automatically for the remaining part of the screen to fit exactly for the rest of the area, without causing any left right scroller at the bottom? Please help.

The html is
<div class=”mainarea2″>
<img src=”pictures/mainbackgr.jpg” width=”100%” height=”100%”>
</div>

and the css is
.mainarea2
{
position:absolute;
top:0px;
left:905px;
width:353px;
height:1300px;
}

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@d2coreMay 30.2009 — <img src="pictures/mainbackgr.jpg" width="100%" height="100%">

hey dude can u define any image height width 100%. what its mean. this is not the right way. also put here live example where we can check it.










d2core

www.design2core.com

http://blog.design2core.com
×

Success!

Help @ketanco 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...