I am having problem regarding fixing my php content page with some css. I have a page which is 980px with..I want to put an image with 70 in height and 141 in width. But i want this image to be right align...I currently have the following css but when the page is resize the image does not follow..

#apDiv1 {
	position:absolute;
	float:right;
	left:967px;
	top:56px;
	width:196px;
	height:69px;
	z-index:101;
}

the above css is called in a div with the picture via class..

Any help is very appreciated..

Thnak you!

Try using position relative, float right, no left but right margin

I have a 2600px monitor, 980px central column looks ridiculous
I have also a 200px phone, 980px pushes content offscreen and makes it difficult to access the page
at least consider making the page to current standards, a page in em and % self adjusts to window size and does not need nearly so much 'tweaking' to make it look acceptable

this works

#apDiv1 {
	position:absolute;
	float:right;
	margin-top:15px;
	margin-left:827px;
	padding-right: 10px;
	overflow:hidden;
	z-index:101;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.