[CSS] 1px difference

Associate
Joined
20 Jul 2005
Posts
79
Location
Manchester, UK
Hi all,

I've hit a brick wall with regards to a layout I am coding. The page in question is http://www.waiger.com/temp/.

You'll notice a sort of play/submit button on the right hand. In IE6 and IE7, the button and text box align perfectly. But the submit button is 1 pixel higher in Firefox and Safari.

I was wondering if anybody could possible help with the situation. Thanks in advance.

Danny.
 
Yeah that's what I would have thought.... but if i alter the submit button to have a padding-bottom of 8px, the button moves up one pixel in every browser.

There seems to be a single pixel difference between the 4 browsers and how it positions the controls.
 
Yeah that's what I would have thought.... but if i alter the submit button to have a padding-bottom of 8px, the button moves up one pixel in every browser.

There seems to be a single pixel difference between the 4 browsers and how it positions the controls.

try changing the margin-bottom to 9px and then add the following code, _margin-bottom: 8px;

should make it so it shows proper with 9px for firefox, and then wonderful ie can have its own 8px which only ie reads. not sure if this will fix ie7 but will wait and see
 
I haven't looked at the example code, so I may be barking up the wrong tree here.

Sometimes if you're using odd-values for pixel widths/heights, and percentages elsewhere, FF and IE do the rounding differently and you end up with 1px displacement between the browsers. Generally if i'm using a fixed width/height I try to stick to even values.
 
-10, i don't like stlying your stylesheet like that as i find having your stlying for each class and id together much better as you can see it all in one area, compared to half one place, then another half somewhere else, just doesn't make sense to me atleast
You're using a hack. I'm not. Mine won't suddenly stop working one day, as a number of them did when IE7 came out but we were still having the same issues that the hacks were there for! :)
 
-10, i don't like stlying your stylesheet like that as i find having your stlying for each class and id together much better as you can see it all in one area, compared to half one place, then another half somewhere else, just doesn't make sense to me atleast

it helps you keep all your nice CSS up together - the CSS that I care about (in my root CSS file) will validate - your hacked one might not.

that, coupled with the fact that it's just easier for me to have all my IE6 stuff called last and overwriting where it needs to makes it the best solution (although a bit dirty - don't get me wrong, I'd prefer if IE6 just worked, but it never will).

also, you can't -10 - you're just one person :p
 
very true sic and dj_something, well i guess it just comes down to each persons prefered way of doing. I like to have the hacks with the css so if a problem occurs say on the update from ie6 to ie7 i can just go straight to the part in css having problems, add/remove/modify the code and done.
 
im having similar problems, is the way to solve this is hack? i prefer not to use browser specific css
 
Back
Top Bottom