/    Sign up×
Community /Pin to ProfileBookmark

please look at this link
[url]http://www.sudhakargolakaram.co.in/files/yts.html[/url]

what i need is i want to position the image at the left side and right side 50% from the top from where the content of the page starts not from the top of the browser window

i have set the wrapper to position: relative the image on the left seems to work fine but the image on the right does not appear 50% from the top of the content instead it appears differently in different browsers

please advice how to fix this

thanks

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@onlinetrainingSep 15.2010 — You certainly need to be more specific. For instance, you have many images in your website, so which one are you referring to in the question above?
Copy linkTweet thisAlerts:
@WebJoelSep 16.2010 — I think I understand the request: you want the image in [I]div.left[/I] and the image in [I]#wrapper_outer[/I] to be left-centered and right-centered respectively(?)

I would do this by making the image 'on the left' be the background-image of the element "<html>" and the image 'on the right' be the background-image of "<body>" and using margins, 'center' align the content in the middle.

You should be able to use the "background-position:foo;" to position your background images where you want:

example:


style="background-image: url("images/picture.jpg");

background-attachment: fixed;

[B]background-position: 50% left;[/B]

background-repeat: no-repeat;"

puts the bg image on the left, 50% from the top.

ergo:

[B]background-position: 50% right;[/B]

does the same for the bg image on the right...

-is this what you mean?
×

Success!

Help @sudhakararaog 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.28,
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,
)...