User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,774 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,428 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 611 | Replies: 1
Reply
Join Date: Mar 2008
Posts: 79
Reputation: justinmyoung is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
justinmyoung justinmyoung is offline Offline
Junior Poster in Training

Image position in Firefox vs Safari?

  #1  
Jun 13th, 2008
I'm having difficulty placing an image in a relative position in the same location on two separate browsers: firefox and safari. in firefox, the text seems larger than it does in safari. Is this typical? I'm using a Lucida Grande font. I believe this is why the image is thrown off place in firefox, but can't be sure. Is there a solution to this problem?

Thanks!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,510
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 103
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Image position in Firefox vs Safari?

  #2  
Jun 14th, 2008
Since each browser has its own way of rendering text, you need to do the following:

- Don't expect your page to look exactly the same in all browsers. This is impossible.

- Don't use either absolute or relative positioning. Use containers to position the text and the graphics.

- Place the image, using the location of the img tag within the text, and use the float style to position it left or right.

- Don't expect to center an image within text, because it is impossible to make the text equally wide on both sides. If you need to center an image, make the spaces on both sides clear.

- To keep the layout from falling apart, you might need to use table tags.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 4:46 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC