Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > 1 freaking pixel

1 freaking pixel
Thread Tools
Professional Poster
Join Date: Jan 2000
Location: south
Status: Offline
Reply With Quote
Jun 11, 2003, 11:36 PM
 
I am trying to make a website (using oscommerce) that will most likely be viewed by windows users. I have a dynamic menu thing going on and and for some reason explorer (or safari) renders the box size either one ****ing pixel smaller or larger (depending on your POV).
Example:
Explorer and Safari

I am trying to get that little round end gif to match up with the menu box but it matches in one browser or the other never both. So WTF is going on? Did I screw up the code or something or is this just some crappy difference between the browsers that I can never fix. At this point I have yet to check the site out on a windows box so maybe this question is moot.

Any suggestions?

Thanks
     
Mac Elite
Join Date: Oct 2001
Location: Europe
Status: Offline
Reply With Quote
Jun 12, 2003, 01:44 AM
 
are you using CSS? Tables? what is the url?
     
shmerek  (op)
Professional Poster
Join Date: Jan 2000
Location: south
Status: Offline
Reply With Quote
Jun 12, 2003, 09:42 AM
 
Yes, oscommerce uses CSS for style and tables for layout, I am a bit reluctant with the url because the site is a big mess as of yet but here it is anyways.
(it seems to be down at the time of this posting I might have picked a lemon of a host ****)
     
Mac Elite
Join Date: Sep 2000
Location: Baltimore
Status: Offline
Reply With Quote
Jun 12, 2003, 12:12 PM
 
I've found that, no matter what, there will always be size variations between platforms & browsers. I've given up on designs that require precise alignment of various elements. You just can never be sure it will render right on all machines (don't PCs still render type at 96 dpi while Macs use 72 dpi?).

I wouldn't concentrate so much on getting things to line-up so much as I would tweak your design so it isn't dependant on alignment.

     
shmerek  (op)
Professional Poster
Join Date: Jan 2000
Location: south
Status: Offline
Reply With Quote
Jun 12, 2003, 12:55 PM
 
Does Safari use 72 dpi? It is only the one little element that needs to line up and I could easily toss it. Man sometimes the web sucks, I wish M$ didn't have such a strangle hold on web browsers and it is just going to get worse.
     
Forum Regular
Join Date: Oct 2002
Location: upstairs
Status: Offline
Reply With Quote
Jun 12, 2003, 08:22 PM
 
Yeah, sites that require precise alignment can be a real nightmare. You should be able to fix it though. Your host does apparently suck, it's still down.

Anyways, if it's basic table code it would seem to be an image alignment problem. Use the valign attribute on the cell tag. It's technically not kosher with the W3C but it's worked in the past for me. I ran into this a lot in the past. I began using CSS to get away from it. Tables can become more like riddles, especially when nesting.

As far as the 96 vs 72 I believe that's a non issue if you use CSS and pixel values for size.
---------------------------------------
     
shmerek  (op)
Professional Poster
Join Date: Jan 2000
Location: south
Status: Offline
Reply With Quote
Jun 12, 2003, 09:26 PM
 
Not only is my site down but there whole freaking network is as well, I cannot even connect to any of their urls and the toll free number to call is a freaking answering machine. WTF I have never experienced something like this.
     
shmerek  (op)
Professional Poster
Join Date: Jan 2000
Location: south
Status: Offline
Reply With Quote
Jun 12, 2003, 09:28 PM
 
Originally posted by arclight:
Yeah, sites that require precise alignment can be a real nightmare. You should be able to fix it though. Your host does apparently suck, it's still down.

Anyways, if it's basic table code it would seem to be an image alignment problem. Use the valign attribute on the cell tag. It's technically not kosher with the W3C but it's worked in the past for me. I ran into this a lot in the past. I began using CSS to get away from it. Tables can become more like riddles, especially when nesting.

As far as the 96 vs 72 I believe that's a non issue if you use CSS and pixel values for size.
I was using CSS and absolute positioning in pixels to place the gif.

**** I am pissed off with this ****ing server it has been down all ****ing day

update: The server was shut down by their supplier because somebody used it for a whole wack of spam. ****ers.
(Last edited by shmerek; Jun 12, 2003 at 11:39 PM. )
     
Professional Poster
Join Date: Jan 2001
Location: Manchester,UK
Status: Offline
Reply With Quote
Jun 13, 2003, 07:51 AM
 
The problem here is that IE renders the CSS boxes differentely. It's a well known 'bug' and there is plenty of web resorces on dealing with it.
one here
Try a Google search for IE Box Model Hack to get loads more.
     
shmerek  (op)
Professional Poster
Join Date: Jan 2000
Location: south
Status: Offline
Reply With Quote
Jun 13, 2003, 10:02 AM
 
Originally posted by Mediaman_12:
The problem here is that IE renders the CSS boxes differentely. It's a well known 'bug' and there is plenty of web resorces on dealing with it.
one here
Try a Google search for IE Box Model Hack to get loads more.
Cool, thanks for the links, I will give them a shot when the server finally gets up again.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:42 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2