HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Image positioning problem in different browsers
Post new topic   Reply to topic    HTML Help Forum -> Website Review
View previous topic :: View next topic  
Author Message
iift_sam



Joined: 18 Nov 2009
Posts: 8

PostPosted: Wed Nov 18, 2009 11:26 am     Image positioning problem in different browsers Reply with quote

I'm new to web designing and sorry if the message in posted in the wrong forum. I posted following HTML code:

<div class="weebly_header"><img style="position:absolute; top:8%; left:12%; width:363px; height:22px" src="/files/theme/Logo.jpg" alt="Logo"></div/>


The logo of my site is an image. The image alignment is ok in my computer (IE:7), but changes a bit in google chrome and firefox 3.5. When I do browser compatibility test, then in different versions of IE and Safari, the impage positioning is quite different.

Can someone help?

Thanks!
sticks464



Joined: 31 Dec 2006
Posts: 2625

PostPosted: Wed Nov 18, 2009 11:34 am     Reply with quote

Code:
position:absolute; top:8%; left:12%;

use pixel placement and not percentages.
iift_sam



Joined: 18 Nov 2009
Posts: 8

PostPosted: Wed Nov 18, 2009 11:46 am     Reply with quote

thanks for the feedback sticks464....i tried, but it is still not working....

sticks464 wrote:
Code:
position:absolute; top:8%; left:12%;

use pixel placement and not percentages.
sticks464



Joined: 31 Dec 2006
Posts: 2625

PostPosted: Wed Nov 18, 2009 2:25 pm     Reply with quote

Are you positioning off a relative container or positioning off the body?
iift_sam



Joined: 18 Nov 2009
Posts: 8

PostPosted: Fri Nov 20, 2009 10:54 am     Reply with quote

hey thanks!...i tried relative positioning..and it's working!

sticks464 wrote:
Are you positioning off a relative container or positioning off the body?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> Website Review All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial