|
| |
|
|
fp2003uk
Posts: 47 Joined: 1/30/2006 Status: offline
|
Firefox magic padding ?? - 2/9/2007 12:11:44
Hi all, Ive just stated in my other thread that my css position problems in firefox are solved, but unfortunately I was wrong. To cut a long story short can someone pleeeeease explain why firefox is chucking about 40px of padding on top of 1 of my content boxes ? I have even gone to the extent of removing all padding and all margins from the entire site but firefox still insists on this imaginary padding. Is there a bug in EW that messes with the code ? My name is now Arrrggghhh Jay, you said that the ew template viewed the same in ie and fox, did you mean "more or less" or "100% exactly the same" ? I require 100% or maybe 99% at a pinch.
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: Firefox magic padding ?? - 2/9/2007 12:28:03
Are you getting too much top padding in FF? If so... this might well not help and might well sound really really weird... but try adding a 1px border in the background colour (so you can't see it) to the top of the offending div. edited 'cos I forgot to specify top padding rather than just padding.
< Message edited by Tailslide -- 2/9/2007 13:39:34 >
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: Firefox magic padding ?? - 2/9/2007 14:27:54
If that doesn't work - can you upload it to the a webserver so we can look at it "live" - that should make it easier to spot what's going wrong.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
fp2003uk
Posts: 47 Joined: 1/30/2006 Status: offline
|
RE: Firefox magic padding ?? - 2/9/2007 16:01:04
Its the css text / font / heading css coding !! Ive just removed the heading (h2) box and put the heading back in with a fixed 12 point arial and the problem is solved ! The css for the nav bar is also wrong because firefox displays the nav bar text differently. In fact all of the text shows various differences between both browsers. So much for web standards then ! I never considered removing the heading h2 thing because I trusted ms to have got it compatible in the first place ! Im now going to carry on building and will keep you updated. I hope what I have said makes sense.
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: Firefox magic padding ?? - 2/9/2007 17:07:23
It's a really bad idea not to use the correct heading tag. I'd definitely put it back in - just remove the padding from it in the stylesheet: h2 {padding-top:0;}
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Kitka
Posts: 2513 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Firefox magic padding ?? - 2/9/2007 19:39:05
Try this: h2 {padding-top:0; margin-top:0;}
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: Firefox magic padding ?? - 2/10/2007 6:21:47
Sorry - I assumed when you said that you'd removed padding from everything that you meant everything on the page not just the stuff in declared rules. All markup items have an innate margin or padding assigned to them - this amount is different in different browsers so I find it easiest to remove them from ALL elements on the page first and then put it back in where required - that way, you're playing with a level playing field. * {margin : 0; padding : 0;} That will remove ALL padding and margins from the page.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: Firefox magic padding ?? - 2/10/2007 9:20:30
The thing I mentioned is an overall override - you then add back in bits of padding you want so you'd add in:
* {padding:0; margin:0;}
h2 {padding:0 0 10px 10px} for example
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: Firefox magic padding ?? - 5/13/2007 15:26:43
It's not just firefox - it's probably everything but IE (just an assumption since I'm looking at it on a mac). Can't diagnose much as I don't have my web developer toolbar on the mac. I'd have a look in Firefox using the web developer toolbar that usually tracks down where issues are - outline all the divs using it and you may find where the line belongs to (whether it's a border etc). You can also edit the CSS using this extention which helps debugging too.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
treetopsranch
Posts: 1005 From: Cottage Grove, OR, USA Status: offline
|
RE: Firefox magic padding ?? - 5/13/2007 21:37:41
I can't see that one pixel line on FF here. However FF drops the text down one line while IE does not.
_____________________________
Don from TreeTops Ranch, Oregon "I've got a taste for quality and luxury"
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: Firefox magic padding ?? - 5/14/2007 2:58:26
Hmmm - weird. Bit too early for me to start figuring this stuff out! One thing you could try though - float both big divs left rather than one left the other right. That way they'll be right up against each other. You'd need to get rid of all those negative margins if you do this but it seems simpler. Also, I'd have one as 50% width and the other as 49% as sometimes IE can't count!
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Crashdaddy
Posts: 10 Joined: 5/13/2007 Status: offline
|
RE: Firefox magic padding ?? - 5/14/2007 22:19:57
You know what? That worked better than I thought it would. Now I've got it in a div and I can move it around. And for some reason, inside that div it seems like the center line (between the columns, not in the picture) seems to have gone away...
|
|
|
|
Crashdaddy
Posts: 10 Joined: 5/13/2007 Status: offline
|
RE: Firefox magic padding ?? - 5/15/2007 17:19:16
Yeah, I'm pretty happy about the results so far, but what I really want to figure out is how to get that picture down further into the text and having the text wrap around it both above and below!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|